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.001466/0.001466, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.002778/0.002778, allocations: 205.2 kB / 24.52 MB, free: 4.156 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.582/1.582, allocations: 230.6 MB / 258.3 MB, free: 8.035 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.2322/0.2322, allocations: 44.91 MB / 359.6 MB, free: 6.297 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexOperations,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_ComplexMath_TestComplexOperations",fmuType="cs",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.00202/0.00202, allocations: 65.62 kB / 0.4938 GB, free: 10.77 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3188/0.3209, allocations: 65.48 MB / 0.5578 GB, free: 7.539 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001541/0.3224, allocations: 480.2 kB / 0.5582 GB, free: 7.184 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003886/0.3263, allocations: 2.456 MB / 0.5606 GB, free: 4.863 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.449e-05/0.3263, allocations: 0 / 0.5606 GB, free: 4.863 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.005e-05/0.3263, allocations: 0 / 0.5606 GB, free: 4.863 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.082e-06/0.3263, allocations: 0 / 0.5606 GB, free: 4.863 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.003177/0.3295, allocations: 1.156 MB / 0.5617 GB, free: 3.707 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.801e-05/0.3296, allocations: 7.922 kB / 0.5618 GB, free: 3.699 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.305e-05/0.3296, allocations: 0 / 0.5618 GB, free: 3.699 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.905e-05/0.3296, allocations: 8 kB / 0.5618 GB, free: 3.691 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.344e-05/0.3296, allocations: 0 / 0.5618 GB, free: 3.691 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.62e-06/0.3297, allocations: 0 / 0.5618 GB, free: 3.691 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001982/0.3316, allocations: 1.03 MB / 0.5628 GB, free: 2.66 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.005e-05/0.3316, allocations: 0 / 0.5628 GB, free: 2.66 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.95e-05/0.3317, allocations: 4 kB / 0.5628 GB, free: 2.656 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008306/0.3325, allocations: 452.9 kB / 0.5632 GB, free: 2.215 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.3325, allocations: 0 / 0.5632 GB, free: 2.215 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.3325, allocations: 0 / 0.5632 GB, free: 2.215 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.855e-06/0.3325, allocations: 7.984 kB / 0.5632 GB, free: 2.207 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.0005069/0.333, allocations: 367.2 kB / 0.5636 GB, free: 1.812 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.541e-05/0.3331, allocations: 12.03 kB / 0.5636 GB, free: 1.801 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.751e-05/0.3331, allocations: 192 / 0.5636 GB, free: 1.801 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.922e-05/0.3331, allocations: 38.69 kB / 0.5636 GB, free: 1.754 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.686e-05/0.3331, allocations: 0.9375 kB / 0.5636 GB, free: 1.754 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.858e-05/0.3332, allocations: 102.5 kB / 0.5637 GB, free: 1.629 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.696e-06/0.3332, allocations: 4.375 kB / 0.5637 GB, free: 1.625 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.042e-05/0.3333, allocations: 384 / 0.5637 GB, free: 1.625 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.5e-05/0.3333, allocations: 41.58 kB / 0.5638 GB, free: 1.578 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.695e-06/0.3334, allocations: 0 / 0.5638 GB, free: 1.578 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.698e-06/0.3334, allocations: 7.984 kB / 0.5638 GB, free: 1.57 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.98e-06/0.3334, allocations: 0 / 0.5638 GB, free: 1.57 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.907e-05/0.3334, allocations: 0 / 0.5638 GB, free: 1.57 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001405/0.3335, allocations: 116.8 kB / 0.5639 GB, free: 1.414 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.397e-05/0.3336, allocations: 18.61 kB / 0.5639 GB, free: 1.387 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.891e-05/0.3336, allocations: 12.86 kB / 0.5639 GB, free: 1.371 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.892e-06/0.3336, allocations: 3.938 kB / 0.5639 GB, free: 1.367 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.917e-05/0.3337, allocations: 64.27 kB / 0.564 GB, free: 1.289 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.3337, allocations: 0 / 0.564 GB, free: 1.289 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002033/0.3339, allocations: 63.39 kB / 0.564 GB, free: 1.215 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.797e-05/0.3339, allocations: 77.11 kB / 0.5641 GB, free: 1.121 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.537e-05/0.334, allocations: 93.81 kB / 0.5642 GB, free: 1.02 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.508e-05/0.334, allocations: 25.7 kB / 0.5642 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.896e-05/0.334, allocations: 88.27 kB / 0.5643 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.065e-05/0.3341, allocations: 3.938 kB / 0.5643 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.037e-05/0.3341, allocations: 13.72 kB / 0.5643 GB, free: 0.875 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001445/0.3342, allocations: 310.8 kB / 0.5646 GB, free: 0.5625 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.273e-05/0.3342, allocations: 3.984 kB / 0.5646 GB, free: 0.5586 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.711e-06/0.3342, allocations: 0 / 0.5646 GB, free: 0.5586 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.551e-05/0.3343, allocations: 64.2 kB / 0.5647 GB, free: 492 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.3343, allocations: 4.062 kB / 0.5647 GB, free: 488 kB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.938e-05/0.3344, allocations: 67.34 kB / 0.5647 GB, free: 408 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.805e-05/0.3344, allocations: 40.19 kB / 0.5648 GB, free: 364 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.469e-06/0.3344, allocations: 0 / 0.5648 GB, free: 364 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.382e-05/0.3344, allocations: 0 / 0.5648 GB, free: 364 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.91e-07/0.3344, allocations: 0 / 0.5648 GB, free: 364 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.468e-06/0.3345, allocations: 0 / 0.5648 GB, free: 364 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.601e-05/0.3345, allocations: 0 / 0.5648 GB, free: 364 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.052e-06/0.3345, allocations: 0 / 0.5648 GB, free: 364 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.0001018/0.3346, allocations: 147.5 kB / 0.5649 GB, free: 200 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.001e-05/0.3346, allocations: 3.938 kB / 0.5649 GB, free: 196 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.055e-05/0.3346, allocations: 3 kB / 0.5649 GB, free: 192 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.272e-06/0.3346, allocations: 0 / 0.5649 GB, free: 192 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.3346, allocations: 0 / 0.5649 GB, free: 192 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.3346, allocations: 7.984 kB / 0.5649 GB, free: 184 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001025/0.3347, allocations: 116.8 kB / 0.5651 GB, free: 24 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.3347, allocations: 0 / 0.5651 GB, free: 24 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.568e-06/0.3347, allocations: 7.875 kB / 0.5651 GB, free: 16 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.112e-06/0.3347, allocations: 0 / 0.5651 GB, free: 16 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.362e-05/0.3347, allocations: 4 kB / 0.5651 GB, free: 12 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.385e-06/0.3347, allocations: 8 kB / 0.5651 GB, free: 4 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.3347, allocations: 0 / 0.5651 GB, free: 4 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001289/0.3349, allocations: 90.83 kB / 0.5652 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.281e-06/0.3349, allocations: 3.938 kB / 0.5652 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.038e-05/0.3349, allocations: 0 / 0.5652 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.666e-06/0.3349, allocations: 0 / 0.5652 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.087e-06/0.3349, allocations: 0 / 0.5652 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.512e-06/0.3349, allocations: 12.02 kB / 0.5652 GB, free: 15.88 MB / 414.1 MB Notification: Performance of sorting global known variables: time 9.431e-05/0.335, allocations: 75.28 kB / 0.5652 GB, free: 15.8 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.335, allocations: 0 / 0.5652 GB, free: 15.8 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005014/0.3355, allocations: 151.5 kB / 0.5654 GB, free: 15.65 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.001075/0.3366, allocations: 0.9164 MB / 0.5663 GB, free: 14.7 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001102/0.3367, allocations: 59.39 kB / 0.5663 GB, free: 14.63 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.3367, allocations: 4.062 kB / 0.5663 GB, free: 14.63 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.117e-05/0.3367, allocations: 59.41 kB / 0.5664 GB, free: 14.56 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001248/0.3369, allocations: 0 / 0.5664 GB, free: 14.56 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004556/0.3373, allocations: 190.1 kB / 0.5666 GB, free: 14.33 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003233/0.3376, allocations: 0.6768 MB / 0.5672 GB, free: 13.63 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.77e-06/0.3376, allocations: 0 / 0.5672 GB, free: 13.63 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.689e-05/0.3377, allocations: 11.38 kB / 0.5673 GB, free: 13.62 MB / 414.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3377, allocations: 0 / 0.5673 GB, free: 13.62 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02716/0.3648, allocations: 5.805 MB / 0.5729 GB, free: 7.949 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.51/11.88, allocations: 11.92 kB / 0.5729 GB, free: 7.938 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_ComplexMath_TestComplexOperations_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 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.mat","/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.922883136023302]