Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001693/0.001693, allocations: 112.2 kB / 21.22 MB, free: 0.7305 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.001449/0.001449, allocations: 212.2 kB / 24.53 MB, free: 4.07 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.484/1.484, allocations: 230.6 MB / 258.3 MB, free: 8.012 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.2378/0.2378, allocations: 44.92 MB / 359.6 MB, free: 6.281 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.TestComplexFunctions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_ComplexMath_TestComplexFunctions",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexFunctions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_ComplexMath_TestComplexFunctions",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.002044/0.002044, allocations: 65.47 kB / 0.4938 GB, free: 10.75 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3229/0.3249, allocations: 65.47 MB / 0.5578 GB, free: 7.527 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001633/0.3266, allocations: 480.5 kB / 0.5582 GB, free: 7.172 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003726/0.3303, allocations: 2.45 MB / 0.5606 GB, free: 4.848 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.361e-05/0.3303, allocations: 0 / 0.5606 GB, free: 4.848 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 9.327e-06/0.3303, allocations: 3.938 kB / 0.5606 GB, free: 4.844 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.099e-06/0.3303, allocations: 0 / 0.5606 GB, free: 4.844 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.002726/0.3331, allocations: 1.156 MB / 0.5617 GB, free: 3.688 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.761e-05/0.3331, allocations: 7.938 kB / 0.5618 GB, free: 3.68 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.342e-05/0.3331, allocations: 3.984 kB / 0.5618 GB, free: 3.676 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.358e-05/0.3332, allocations: 0 / 0.5618 GB, free: 3.676 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.776e-05/0.3332, allocations: 0 / 0.5618 GB, free: 3.676 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.929e-06/0.3332, allocations: 0 / 0.5618 GB, free: 3.676 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001692/0.3349, allocations: 1.042 MB / 0.5628 GB, free: 2.633 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.223e-06/0.3349, allocations: 0 / 0.5628 GB, free: 2.633 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.833e-05/0.3349, allocations: 0 / 0.5628 GB, free: 2.633 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006291/0.3355, allocations: 457 kB / 0.5632 GB, free: 2.188 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.3355, allocations: 0 / 0.5632 GB, free: 2.188 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3355, allocations: 0 / 0.5632 GB, free: 2.188 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.28e-06/0.3355, allocations: 0 / 0.5632 GB, free: 2.188 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.0004599/0.336, allocations: 370 kB / 0.5636 GB, free: 1.793 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.543e-05/0.336, allocations: 8.031 kB / 0.5636 GB, free: 1.785 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.569e-05/0.336, allocations: 8.188 kB / 0.5636 GB, free: 1.777 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.857e-05/0.3361, allocations: 34.73 kB / 0.5636 GB, free: 1.734 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.546e-05/0.3361, allocations: 12.88 kB / 0.5636 GB, free: 1.723 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.432e-05/0.3362, allocations: 102.5 kB / 0.5637 GB, free: 1.598 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.871e-06/0.3362, allocations: 384 / 0.5637 GB, free: 1.598 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.087e-05/0.3362, allocations: 4.375 kB / 0.5637 GB, free: 1.594 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.485e-05/0.3363, allocations: 33.58 kB / 0.5638 GB, free: 1.555 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.602e-06/0.3363, allocations: 0 / 0.5638 GB, free: 1.555 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.674e-06/0.3363, allocations: 0 / 0.5638 GB, free: 1.555 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-06/0.3363, allocations: 4 kB / 0.5638 GB, free: 1.551 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.923e-05/0.3363, allocations: 4 kB / 0.5638 GB, free: 1.547 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001298/0.3365, allocations: 116.8 kB / 0.5639 GB, free: 1.391 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.616e-05/0.3365, allocations: 22.61 kB / 0.5639 GB, free: 1.359 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.452e-05/0.3365, allocations: 4.859 kB / 0.5639 GB, free: 1.352 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.45e-06/0.3365, allocations: 3.938 kB / 0.5639 GB, free: 1.348 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.921e-05/0.3366, allocations: 60.2 kB / 0.564 GB, free: 1.273 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 7.92e-07/0.3366, allocations: 4 kB / 0.564 GB, free: 1.27 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001675/0.3367, allocations: 63.45 kB / 0.564 GB, free: 1.195 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.167e-05/0.3368, allocations: 81.11 kB / 0.5641 GB, free: 1.098 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.458e-05/0.3368, allocations: 97.81 kB / 0.5642 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.563e-05/0.3369, allocations: 25.7 kB / 0.5642 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.102e-05/0.3369, allocations: 80.14 kB / 0.5643 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.559e-05/0.3369, allocations: 0 / 0.5643 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.683e-05/0.3369, allocations: 9.719 kB / 0.5643 GB, free: 0.8633 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000135/0.3371, allocations: 322.9 kB / 0.5646 GB, free: 0.5391 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.468e-06/0.3371, allocations: 0 / 0.5646 GB, free: 0.5391 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.003e-06/0.3371, allocations: 3.984 kB / 0.5646 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.259e-05/0.3371, allocations: 68.2 kB / 0.5647 GB, free: 464 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.323e-06/0.3371, allocations: 0 / 0.5647 GB, free: 464 kB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.278e-05/0.3372, allocations: 63.34 kB / 0.5647 GB, free: 388 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.016e-05/0.3372, allocations: 29.7 kB / 0.5648 GB, free: 352 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.637e-06/0.3373, allocations: 0 / 0.5648 GB, free: 352 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.577e-05/0.3373, allocations: 8.078 kB / 0.5648 GB, free: 344 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.454e-06/0.3373, allocations: 4 kB / 0.5648 GB, free: 340 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.118e-06/0.3373, allocations: 0 / 0.5648 GB, free: 340 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.324e-05/0.3373, allocations: 0 / 0.5648 GB, free: 340 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.21e-06/0.3373, allocations: 0 / 0.5648 GB, free: 340 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.3374, allocations: 139.5 kB / 0.5649 GB, free: 184 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.137e-05/0.3374, allocations: 7.938 kB / 0.5649 GB, free: 176 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.667e-06/0.3374, allocations: 3 kB / 0.5649 GB, free: 172 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-06/0.3374, allocations: 0 / 0.5649 GB, free: 172 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.115e-06/0.3374, allocations: 4 kB / 0.5649 GB, free: 168 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.764e-06/0.3374, allocations: 0 / 0.5649 GB, free: 168 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.935e-05/0.3375, allocations: 120.8 kB / 0.565 GB, free: 4 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.82e-07/0.3375, allocations: 3.938 kB / 0.5651 GB, free: 0 / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.013e-05/0.3375, allocations: 4.047 kB / 0.5651 GB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.232e-06/0.3375, allocations: 3.938 kB / 0.5651 GB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.871e-05/0.3376, allocations: 0 / 0.5651 GB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.31e-07/0.3376, allocations: 0 / 0.5651 GB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.3376, allocations: 0 / 0.5651 GB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001065/0.3377, allocations: 98.83 kB / 0.5652 GB, free: 15.87 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.711e-06/0.3377, allocations: 3.938 kB / 0.5652 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.024e-05/0.3377, allocations: 4 kB / 0.5652 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.275e-06/0.3377, allocations: 0 / 0.5652 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.143e-05/0.3377, allocations: 3.984 kB / 0.5652 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.465e-06/0.3377, allocations: 0 / 0.5652 GB, free: 15.86 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.042e-05/0.3377, allocations: 75.28 kB / 0.5652 GB, free: 15.78 MB / 414.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3377, allocations: 0 / 0.5652 GB, free: 15.78 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004449/0.3382, allocations: 163.5 kB / 0.5654 GB, free: 15.62 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.001053/0.3392, allocations: 0.9127 MB / 0.5663 GB, free: 14.68 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001124/0.3394, allocations: 63.41 kB / 0.5663 GB, free: 14.61 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.704e-06/0.3394, allocations: 0 / 0.5663 GB, free: 14.61 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.238e-05/0.3394, allocations: 59.39 kB / 0.5664 GB, free: 14.54 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001214/0.3395, allocations: 0 / 0.5664 GB, free: 14.54 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003976/0.3399, allocations: 194.2 kB / 0.5666 GB, free: 14.3 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003147/0.3402, allocations: 0.669 MB / 0.5672 GB, free: 13.61 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.093e-06/0.3402, allocations: 3.984 kB / 0.5672 GB, free: 13.61 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.474e-05/0.3403, allocations: 11.44 kB / 0.5673 GB, free: 13.59 MB / 414.1 MB Notification: Performance of SimCode: time 3.4e-07/0.3403, allocations: 0 / 0.5673 GB, free: 13.59 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02721/0.3675, allocations: 5.809 MB / 0.5729 GB, free: 7.922 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.57/11.94, allocations: 14.61 kB / 0.5729 GB, free: 7.914 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_ComplexMath_TestComplexFunctions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_ComplexMath_TestComplexFunctions.fmu > ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/ComplexMath/TestComplexFunctions/TestComplexFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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.925549131992739]