Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001257/0.001257, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001398/0.001398, allocations: 209.3 kB / 23.73 MB, free: 4.523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.417/1.417, allocations: 230.6 MB / 257.5 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2335/0.2335, allocations: 46.97 MB / 360.9 MB, free: 4.035 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexFunctions,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_ComplexMath_TestComplexFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexFunctions,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_ComplexMath_TestComplexFunctions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002041/0.002041, allocations: 67.89 kB / 0.4961 GB, free: 7.758 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3175/0.3195, allocations: 66.03 MB / 0.5606 GB, free: 4.25 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001605/0.3211, allocations: 479.8 kB / 0.561 GB, free: 3.781 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00357/0.3247, allocations: 2.287 MB / 0.5632 GB, free: 1.477 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.636e-05/0.3247, allocations: 3.938 kB / 0.5633 GB, free: 1.473 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.585e-05/0.3247, allocations: 0 / 0.5633 GB, free: 1.473 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.681e-06/0.3247, allocations: 0 / 0.5633 GB, free: 1.473 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/ComplexMath.mo:4:3-189:23:writable] Warning: Pure function 'ModelicaTest.ComplexMath.ComplexFunctions' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.002754/0.3275, allocations: 1.105 MB / 0.5643 GB, free: 376 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.35e-05/0.3275, allocations: 3.984 kB / 0.5643 GB, free: 372 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.254e-05/0.3276, allocations: 4 kB / 0.5643 GB, free: 368 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.813e-05/0.3276, allocations: 4 kB / 0.5643 GB, free: 364 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.82e-05/0.3276, allocations: 3.984 kB / 0.5643 GB, free: 360 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.061e-06/0.3276, allocations: 0 / 0.5643 GB, free: 360 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001654/0.3293, allocations: 1.007 MB / 0.5653 GB, free: 15.34 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.147e-05/0.3293, allocations: 0 / 0.5653 GB, free: 15.34 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.553e-05/0.3293, allocations: 0 / 0.5653 GB, free: 15.34 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007101/0.33, allocations: 437 kB / 0.5657 GB, free: 14.92 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.9e-06/0.33, allocations: 0 / 0.5657 GB, free: 14.92 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.993e-06/0.33, allocations: 4 kB / 0.5658 GB, free: 14.91 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.013e-06/0.33, allocations: 0 / 0.5658 GB, free: 14.91 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0006156/0.3307, allocations: 367.2 kB / 0.5661 GB, free: 14.52 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.948e-05/0.3307, allocations: 8.031 kB / 0.5661 GB, free: 14.51 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.624e-05/0.3307, allocations: 34.69 kB / 0.5661 GB, free: 14.47 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.323e-05/0.3308, allocations: 4.922 kB / 0.5661 GB, free: 14.46 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001029/0.3309, allocations: 106.5 kB / 0.5662 GB, free: 14.34 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.416e-05/0.3309, allocations: 384 / 0.5662 GB, free: 14.34 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.29e-05/0.3309, allocations: 4.312 kB / 0.5663 GB, free: 14.33 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001359/0.331, allocations: 59.53 kB / 0.5663 GB, free: 14.26 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.3311, allocations: 3.938 kB / 0.5663 GB, free: 14.26 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.746e-06/0.3311, allocations: 4 kB / 0.5663 GB, free: 14.25 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.192e-06/0.3311, allocations: 0 / 0.5663 GB, free: 14.25 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.325e-05/0.3311, allocations: 33.7 kB / 0.5663 GB, free: 14.21 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001721/0.3313, allocations: 116.8 kB / 0.5665 GB, free: 14.06 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.411e-05/0.3314, allocations: 44.31 kB / 0.5665 GB, free: 14 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.172e-05/0.3314, allocations: 34.5 kB / 0.5665 GB, free: 13.96 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.606e-06/0.3314, allocations: 0 / 0.5665 GB, free: 13.96 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.304e-05/0.3315, allocations: 68.27 kB / 0.5666 GB, free: 13.88 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 8.02e-07/0.3315, allocations: 0 / 0.5666 GB, free: 13.88 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002501/0.3317, allocations: 122.8 kB / 0.5667 GB, free: 13.73 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.409e-05/0.3318, allocations: 77.11 kB / 0.5668 GB, free: 13.64 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.16e-05/0.3319, allocations: 97.81 kB / 0.5669 GB, free: 13.53 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.756e-05/0.3319, allocations: 25.7 kB / 0.5669 GB, free: 13.5 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.043e-05/0.3319, allocations: 84.12 kB / 0.567 GB, free: 13.41 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.017e-05/0.332, allocations: 4 kB / 0.567 GB, free: 13.41 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.304e-05/0.332, allocations: 13.7 kB / 0.567 GB, free: 13.39 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001641/0.3322, allocations: 310.8 kB / 0.5673 GB, free: 13.08 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.325e-05/0.3322, allocations: 33.64 kB / 0.5673 GB, free: 13.04 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.94e-05/0.3322, allocations: 25.7 kB / 0.5674 GB, free: 13.01 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.887e-05/0.3323, allocations: 68.45 kB / 0.5674 GB, free: 12.93 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.3323, allocations: 0 / 0.5674 GB, free: 12.93 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.847e-05/0.3324, allocations: 89.09 kB / 0.5675 GB, free: 12.82 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.877e-05/0.3324, allocations: 33.64 kB / 0.5675 GB, free: 12.78 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.3324, allocations: 0 / 0.5675 GB, free: 12.78 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.576e-05/0.3324, allocations: 4 kB / 0.5675 GB, free: 12.78 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.82e-07/0.3324, allocations: 0 / 0.5675 GB, free: 12.78 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.59e-06/0.3324, allocations: 0 / 0.5675 GB, free: 12.78 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.671e-05/0.3325, allocations: 0 / 0.5675 GB, free: 12.78 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.342e-06/0.3325, allocations: 0 / 0.5675 GB, free: 12.78 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001355/0.3326, allocations: 155.4 kB / 0.5677 GB, free: 12.61 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.045e-05/0.3326, allocations: 3.938 kB / 0.5677 GB, free: 12.61 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.215e-05/0.3326, allocations: 3 kB / 0.5677 GB, free: 12.6 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.372e-06/0.3326, allocations: 0 / 0.5677 GB, free: 12.6 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.3326, allocations: 0 / 0.5677 GB, free: 12.6 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.083e-06/0.3326, allocations: 0 / 0.5677 GB, free: 12.6 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001012/0.3327, allocations: 116.8 kB / 0.5678 GB, free: 12.45 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.3327, allocations: 4 kB / 0.5678 GB, free: 12.44 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.21e-07/0.3327, allocations: 0 / 0.5678 GB, free: 12.44 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.989e-06/0.3327, allocations: 7.922 kB / 0.5678 GB, free: 12.43 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.024e-05/0.3327, allocations: 4 kB / 0.5678 GB, free: 12.43 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.3327, allocations: 4 kB / 0.5678 GB, free: 12.43 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.3327, allocations: 3.938 kB / 0.5678 GB, free: 12.42 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000127/0.3329, allocations: 116.5 kB / 0.5679 GB, free: 12.28 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.731e-06/0.3329, allocations: 3.938 kB / 0.5679 GB, free: 12.27 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.255e-05/0.3329, allocations: 0 / 0.5679 GB, free: 12.27 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.116e-05/0.3329, allocations: 4 kB / 0.568 GB, free: 12.27 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.548e-05/0.3329, allocations: 0 / 0.568 GB, free: 12.27 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.679e-06/0.3329, allocations: 4 kB / 0.568 GB, free: 12.27 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.497e-05/0.333, allocations: 79.22 kB / 0.568 GB, free: 12.19 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.333, allocations: 0 / 0.568 GB, free: 12.19 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004697/0.3334, allocations: 163.6 kB / 0.5682 GB, free: 12.03 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001076/0.3345, allocations: 0.9326 MB / 0.5691 GB, free: 11.06 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001262/0.3346, allocations: 106.8 kB / 0.5692 GB, free: 10.93 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.652e-06/0.3346, allocations: 0 / 0.5692 GB, free: 10.93 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.235e-05/0.3347, allocations: 89.03 kB / 0.5693 GB, free: 10.82 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001272/0.3348, allocations: 7.938 kB / 0.5693 GB, free: 10.82 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004074/0.3352, allocations: 211.9 kB / 0.5695 GB, free: 10.56 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.503e-05/0.3353, allocations: 55.36 kB / 0.5695 GB, free: 10.49 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.491e-06/0.3353, allocations: 0 / 0.5695 GB, free: 10.49 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.608e-05/0.3353, allocations: 11.38 kB / 0.5696 GB, free: 10.48 MB / 414.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3353, allocations: 4.125 kB / 0.5696 GB, free: 10.47 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03487/0.3702, allocations: 6.223 MB / 0.5756 GB, free: 4.379 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.33/11.7, allocations: 3.875 kB / 0.5756 GB, free: 4.379 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_4_1_0_ModelicaTest_ComplexMath_TestComplexFunctions.fmu > ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/ComplexMath/TestComplexFunctions/TestComplexFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.611552599992137]