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.001331/0.001331, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.001436/0.001436, allocations: 211.8 kB / 24.51 MB, free: 3.914 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.521/1.521, allocations: 230.6 MB / 258.3 MB, free: 7.785 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.233/0.233, allocations: 44.93 MB / 359.6 MB, free: 6.051 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.002653/0.002653, allocations: 67.89 kB / 0.4938 GB, free: 10.57 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3452/0.3479, allocations: 65.48 MB / 0.5577 GB, free: 7.344 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001512/0.3494, allocations: 470.9 kB / 0.5581 GB, free: 7 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003503/0.3529, allocations: 2.284 MB / 0.5604 GB, free: 4.805 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.145e-05/0.3529, allocations: 4 kB / 0.5604 GB, free: 4.801 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 9.398e-06/0.3529, allocations: 0 / 0.5604 GB, free: 4.801 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.65e-06/0.3529, allocations: 0 / 0.5604 GB, free: 4.801 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.002913/0.3558, allocations: 1.109 MB / 0.5615 GB, free: 3.691 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.243e-05/0.3559, allocations: 15.97 kB / 0.5615 GB, free: 3.676 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.099e-05/0.3559, allocations: 0 / 0.5615 GB, free: 3.676 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.289e-05/0.3559, allocations: 7.938 kB / 0.5615 GB, free: 3.668 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.346e-05/0.356, allocations: 0 / 0.5615 GB, free: 3.668 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.641e-06/0.356, allocations: 0 / 0.5615 GB, free: 3.668 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001716/0.3577, allocations: 0.999 MB / 0.5625 GB, free: 2.668 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.508e-06/0.3577, allocations: 4 kB / 0.5625 GB, free: 2.664 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.321e-05/0.3577, allocations: 0 / 0.5625 GB, free: 2.664 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006472/0.3584, allocations: 440.9 kB / 0.5629 GB, free: 2.234 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.3584, allocations: 3.938 kB / 0.5629 GB, free: 2.23 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.3584, allocations: 0 / 0.5629 GB, free: 2.23 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.629e-06/0.3584, allocations: 0 / 0.5629 GB, free: 2.23 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.0004341/0.3588, allocations: 371.2 kB / 0.5632 GB, free: 1.832 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.814e-05/0.3588, allocations: 12.03 kB / 0.5633 GB, free: 1.82 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.252e-05/0.3589, allocations: 192 / 0.5633 GB, free: 1.82 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.799e-05/0.3589, allocations: 38.73 kB / 0.5633 GB, free: 1.773 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.107e-05/0.3589, allocations: 0.9375 kB / 0.5633 GB, free: 1.773 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.941e-05/0.359, allocations: 110.5 kB / 0.5634 GB, free: 1.641 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.087e-06/0.359, allocations: 384 / 0.5634 GB, free: 1.641 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.961e-06/0.359, allocations: 384 / 0.5634 GB, free: 1.641 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.038e-05/0.3591, allocations: 59.34 kB / 0.5635 GB, free: 1.57 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.833e-06/0.3591, allocations: 0 / 0.5635 GB, free: 1.57 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.142e-06/0.3591, allocations: 4 kB / 0.5635 GB, free: 1.566 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.637e-06/0.3591, allocations: 0 / 0.5635 GB, free: 1.566 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.257e-05/0.3591, allocations: 29.64 kB / 0.5635 GB, free: 1.531 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001316/0.3593, allocations: 124.8 kB / 0.5636 GB, free: 1.367 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.715e-05/0.3593, allocations: 44.31 kB / 0.5637 GB, free: 1.309 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.426e-05/0.3594, allocations: 30.56 kB / 0.5637 GB, free: 1.27 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.427e-06/0.3594, allocations: 3.938 kB / 0.5637 GB, free: 1.266 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.426e-05/0.3594, allocations: 56.27 kB / 0.5637 GB, free: 1.195 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.002e-06/0.3594, allocations: 4.062 kB / 0.5637 GB, free: 1.191 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001949/0.3596, allocations: 122.7 kB / 0.5639 GB, free: 1.047 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.203e-05/0.3597, allocations: 85.17 kB / 0.5639 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.799e-05/0.3597, allocations: 93.81 kB / 0.564 GB, free: 0.8438 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.548e-05/0.3597, allocations: 25.7 kB / 0.5641 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.016e-05/0.3598, allocations: 80.14 kB / 0.5641 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.268e-05/0.3598, allocations: 0 / 0.5641 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.078e-05/0.3598, allocations: 17.7 kB / 0.5641 GB, free: 0.707 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001377/0.36, allocations: 314.8 kB / 0.5644 GB, free: 400 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.486e-05/0.36, allocations: 33.64 kB / 0.5645 GB, free: 360 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.665e-05/0.36, allocations: 25.7 kB / 0.5645 GB, free: 328 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.179e-05/0.3601, allocations: 60.33 kB / 0.5646 GB, free: 252 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.3601, allocations: 4 kB / 0.5646 GB, free: 248 kB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.576e-05/0.3602, allocations: 101 kB / 0.5647 GB, free: 128 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.06e-05/0.3602, allocations: 29.7 kB / 0.5647 GB, free: 92 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.3602, allocations: 0 / 0.5647 GB, free: 92 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.166e-05/0.3602, allocations: 0 / 0.5647 GB, free: 92 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.81e-07/0.3602, allocations: 0 / 0.5647 GB, free: 92 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.068e-06/0.3602, allocations: 4 kB / 0.5647 GB, free: 88 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.385e-05/0.3602, allocations: 0 / 0.5647 GB, free: 88 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.731e-06/0.3602, allocations: 0 / 0.5647 GB, free: 88 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.0001212/0.3603, allocations: 147.5 kB / 0.5648 GB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.026e-05/0.3604, allocations: 3.938 kB / 0.5648 GB, free: 15.92 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.182e-05/0.3604, allocations: 3 kB / 0.5648 GB, free: 15.92 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-06/0.3604, allocations: 0 / 0.5648 GB, free: 15.92 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.3604, allocations: 0 / 0.5648 GB, free: 15.92 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.874e-06/0.3604, allocations: 0 / 0.5648 GB, free: 15.92 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001053/0.3605, allocations: 120.8 kB / 0.565 GB, free: 15.76 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.72e-07/0.3605, allocations: 0 / 0.565 GB, free: 15.76 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.615e-06/0.3605, allocations: 3.938 kB / 0.565 GB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.679e-06/0.3605, allocations: 3.984 kB / 0.565 GB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.792e-06/0.3605, allocations: 0 / 0.565 GB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.3605, allocations: 8 kB / 0.565 GB, free: 15.74 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.3605, allocations: 4 kB / 0.565 GB, free: 15.74 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001276/0.3606, allocations: 120.5 kB / 0.5651 GB, free: 15.59 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.797e-06/0.3606, allocations: 7.922 kB / 0.5651 GB, free: 15.58 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.05e-05/0.3606, allocations: 0 / 0.5651 GB, free: 15.58 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.216e-06/0.3607, allocations: 0 / 0.5651 GB, free: 15.58 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.563e-05/0.3607, allocations: 4 kB / 0.5651 GB, free: 15.58 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.655e-06/0.3607, allocations: 0 / 0.5651 GB, free: 15.58 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.287e-05/0.3607, allocations: 75.28 kB / 0.5652 GB, free: 15.5 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3607, allocations: 0 / 0.5652 GB, free: 15.5 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004832/0.3612, allocations: 159.5 kB / 0.5653 GB, free: 15.35 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.001117/0.3623, allocations: 0.9442 MB / 0.5662 GB, free: 14.37 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001195/0.3624, allocations: 114.8 kB / 0.5664 GB, free: 14.23 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.3624, allocations: 0 / 0.5664 GB, free: 14.23 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.692e-05/0.3625, allocations: 85.09 kB / 0.5664 GB, free: 14.13 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001202/0.3626, allocations: 0 / 0.5664 GB, free: 14.13 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004091/0.363, allocations: 211.9 kB / 0.5666 GB, free: 13.88 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.346e-05/0.3631, allocations: 55.36 kB / 0.5667 GB, free: 13.8 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.889e-06/0.3631, allocations: 0 / 0.5667 GB, free: 13.8 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.407e-05/0.3631, allocations: 11.44 kB / 0.5667 GB, free: 13.79 MB / 414.1 MB Notification: Performance of SimCode: time 3.6e-07/0.3631, allocations: 128 / 0.5667 GB, free: 13.79 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02777/0.3908, allocations: 5.861 MB / 0.5724 GB, free: 8.07 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.68/12.07, allocations: 10.47 kB / 0.5724 GB, free: 8.062 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: 15.05340386799071]