Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.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.001586/0.001586, allocations: 109.4 kB / 20.43 MB, free: 1.473 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.002/0.002, allocations: 213.7 kB / 23.74 MB, free: 4.688 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.501/1.501, allocations: 230.6 MB / 257.5 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.224/0.224, allocations: 44.92 MB / 358.8 MB, free: 6.273 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.TestComplexOperations,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_ComplexMath_TestComplexOperations",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexOperations,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_ComplexMath_TestComplexOperations",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00206/0.00206, allocations: 71.89 kB / 0.4931 GB, free: 10.73 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3071/0.3091, allocations: 65.48 MB / 0.557 GB, free: 7.48 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001473/0.3106, allocations: 477 kB / 0.5575 GB, free: 7.129 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003669/0.3143, allocations: 2.448 MB / 0.5598 GB, free: 4.809 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.689e-05/0.3143, allocations: 0 / 0.5598 GB, free: 4.809 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.043e-05/0.3143, allocations: 0 / 0.5598 GB, free: 4.809 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.3e-06/0.3143, allocations: 0 / 0.5598 GB, free: 4.809 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.002803/0.3171, allocations: 1.164 MB / 0.561 GB, free: 3.645 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.455e-05/0.3172, allocations: 0 / 0.561 GB, free: 3.645 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.342e-05/0.3172, allocations: 4 kB / 0.561 GB, free: 3.641 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.592e-05/0.3172, allocations: 7.984 kB / 0.561 GB, free: 3.633 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.73e-05/0.3172, allocations: 0 / 0.561 GB, free: 3.633 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.64e-06/0.3172, allocations: 0 / 0.561 GB, free: 3.633 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001664/0.3189, allocations: 1.038 MB / 0.562 GB, free: 2.594 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.434e-06/0.3189, allocations: 0 / 0.562 GB, free: 2.594 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.807e-05/0.3189, allocations: 0 / 0.562 GB, free: 2.594 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006328/0.3196, allocations: 452.9 kB / 0.5624 GB, free: 2.152 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.3196, allocations: 4 kB / 0.5624 GB, free: 2.148 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.3196, allocations: 0 / 0.5624 GB, free: 2.148 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.919e-06/0.3196, allocations: 4 kB / 0.5625 GB, free: 2.145 MB / 398.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.0004355/0.32, allocations: 367.2 kB / 0.5628 GB, free: 1.75 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.432e-05/0.32, allocations: 8.031 kB / 0.5628 GB, free: 1.742 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.637e-05/0.3201, allocations: 38.69 kB / 0.5628 GB, free: 1.695 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.439e-05/0.3201, allocations: 4.922 kB / 0.5629 GB, free: 1.691 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.874e-05/0.3202, allocations: 102.5 kB / 0.5629 GB, free: 1.566 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.005e-05/0.3202, allocations: 4.375 kB / 0.563 GB, free: 1.562 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.242e-06/0.3202, allocations: 384 / 0.563 GB, free: 1.562 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.209e-05/0.3203, allocations: 33.83 kB / 0.563 GB, free: 1.523 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.153e-06/0.3203, allocations: 4 kB / 0.563 GB, free: 1.52 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.433e-06/0.3203, allocations: 0 / 0.563 GB, free: 1.52 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.837e-06/0.3203, allocations: 0 / 0.563 GB, free: 1.52 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.852e-05/0.3203, allocations: 7.938 kB / 0.563 GB, free: 1.512 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001442/0.3205, allocations: 124.8 kB / 0.5631 GB, free: 1.348 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.588e-05/0.3205, allocations: 14.58 kB / 0.5631 GB, free: 1.324 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.399e-05/0.3205, allocations: 4.859 kB / 0.5631 GB, free: 1.316 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.534e-06/0.3206, allocations: 4 kB / 0.5631 GB, free: 1.312 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.265e-05/0.3206, allocations: 68.2 kB / 0.5632 GB, free: 1.23 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.92e-07/0.3206, allocations: 0 / 0.5632 GB, free: 1.23 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001686/0.3208, allocations: 67.33 kB / 0.5633 GB, free: 1.152 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.354e-05/0.3208, allocations: 81.11 kB / 0.5633 GB, free: 1.055 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.997e-05/0.3209, allocations: 93.81 kB / 0.5634 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.479e-05/0.3209, allocations: 25.7 kB / 0.5635 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.447e-05/0.3209, allocations: 80.14 kB / 0.5635 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.505e-05/0.321, allocations: 4.125 kB / 0.5635 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.985e-05/0.321, allocations: 13.72 kB / 0.5636 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001408/0.3211, allocations: 310.8 kB / 0.5638 GB, free: 0.5039 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.012e-05/0.3211, allocations: 0 / 0.5638 GB, free: 0.5039 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.594e-06/0.3211, allocations: 4 kB / 0.5639 GB, free: 0.5 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.4e-05/0.3212, allocations: 64.25 kB / 0.5639 GB, free: 432 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.3212, allocations: 0 / 0.5639 GB, free: 432 kB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.285e-05/0.3213, allocations: 67.41 kB / 0.564 GB, free: 352 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.607e-05/0.3213, allocations: 37.64 kB / 0.564 GB, free: 308 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.567e-06/0.3213, allocations: 0 / 0.564 GB, free: 308 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.609e-05/0.3213, allocations: 0 / 0.564 GB, free: 308 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.358e-06/0.3213, allocations: 3.984 kB / 0.564 GB, free: 304 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.498e-06/0.3214, allocations: 0 / 0.564 GB, free: 304 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.4e-05/0.3214, allocations: 0 / 0.564 GB, free: 304 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.37e-06/0.3214, allocations: 0 / 0.564 GB, free: 304 kB / 398.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.0001019/0.3215, allocations: 143.5 kB / 0.5642 GB, free: 144 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.098e-05/0.3215, allocations: 7.969 kB / 0.5642 GB, free: 136 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.726e-05/0.3215, allocations: 3 kB / 0.5642 GB, free: 132 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-06/0.3215, allocations: 0 / 0.5642 GB, free: 132 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.3215, allocations: 4 kB / 0.5642 GB, free: 128 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.063e-06/0.3215, allocations: 0 / 0.5642 GB, free: 128 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001088/0.3216, allocations: 116.8 kB / 0.5643 GB, free: 15.97 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.42e-07/0.3216, allocations: 0 / 0.5643 GB, free: 15.97 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.3216, allocations: 0 / 0.5643 GB, free: 15.97 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-06/0.3216, allocations: 3.938 kB / 0.5643 GB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.135e-06/0.3216, allocations: 4 kB / 0.5643 GB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.52e-07/0.3216, allocations: 0 / 0.5643 GB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.3216, allocations: 4 kB / 0.5643 GB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001166/0.3217, allocations: 94.77 kB / 0.5644 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.915e-06/0.3218, allocations: 7.922 kB / 0.5644 GB, free: 15.83 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.11e-05/0.3218, allocations: 0 / 0.5644 GB, free: 15.83 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.195e-06/0.3218, allocations: 0 / 0.5644 GB, free: 15.83 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.017e-06/0.3218, allocations: 0 / 0.5644 GB, free: 15.83 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.218e-06/0.3218, allocations: 8 kB / 0.5644 GB, free: 15.82 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.246e-05/0.3218, allocations: 79.31 kB / 0.5645 GB, free: 15.75 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3218, allocations: 3.938 kB / 0.5645 GB, free: 15.74 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004544/0.3223, allocations: 159.5 kB / 0.5646 GB, free: 15.59 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.001068/0.3233, allocations: 0.9106 MB / 0.5655 GB, free: 14.64 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 9.905e-05/0.3234, allocations: 59.41 kB / 0.5656 GB, free: 14.57 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.3234, allocations: 0 / 0.5656 GB, free: 14.57 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.295e-05/0.3235, allocations: 63.45 kB / 0.5656 GB, free: 14.5 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000123/0.3236, allocations: 0 / 0.5656 GB, free: 14.5 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003997/0.324, allocations: 186.2 kB / 0.5658 GB, free: 14.28 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003433/0.3244, allocations: 0.6729 MB / 0.5665 GB, free: 13.58 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.603e-06/0.3244, allocations: 0 / 0.5665 GB, free: 13.58 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.598e-05/0.3244, allocations: 15.38 kB / 0.5665 GB, free: 13.56 MB / 414.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3244, allocations: 0 / 0.5665 GB, free: 13.56 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03147/0.3559, allocations: 5.781 MB / 0.5721 GB, free: 7.906 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.22/11.58, allocations: 9.562 kB / 0.5721 GB, free: 7.902 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_4_0_0_ModelicaTest_ComplexMath_TestComplexOperations.fmu > ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/ComplexMath/TestComplexOperations/TestComplexOperations.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.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.503652309002064]