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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations") translateModel(ModelicaTest.ComplexMath.TestComplexOperations,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009759/0.0009758, allocations: 95.67 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001234/0.001234, allocations: 168.7 kB / 18.25 MB, free: 5.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.49/1.49, allocations: 223.3 MB / 242.3 MB, free: 14.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2155/0.2155, allocations: 44.25 MB / 337.7 MB, free: 2.398 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003474/0.0003476, allocations: 6.969 kB / 410.3 MB, free: 27.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1378/0.1382, allocations: 61.92 MB / 472.2 MB, free: 13.31 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.0006603/0.1389, allocations: 201.2 kB / 472.4 MB, free: 13.11 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003509/0.1424, allocations: 2.307 MB / 474.7 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.187e-05/0.1424, allocations: 0 / 474.7 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.256e-05/0.1425, allocations: 0 / 474.7 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.921e-06/0.1425, allocations: 0 / 474.7 MB, free: 10.79 MB / 350.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.002558/0.145, allocations: 1.022 MB / 475.8 MB, free: 9.766 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.113e-05/0.1451, allocations: 0 / 475.8 MB, free: 9.766 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.397e-05/0.1451, allocations: 0 / 475.8 MB, free: 9.766 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.726e-05/0.1451, allocations: 4 kB / 475.8 MB, free: 9.762 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.301e-05/0.1452, allocations: 0 / 475.8 MB, free: 9.762 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.921e-06/0.1452, allocations: 4 kB / 475.8 MB, free: 9.758 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001657/0.1469, allocations: 0.9677 MB / 476.7 MB, free: 8.789 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.995e-06/0.1469, allocations: 0 / 476.7 MB, free: 8.789 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.146e-05/0.1469, allocations: 25.7 kB / 476.8 MB, free: 8.758 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007498/0.1477, allocations: 415.4 kB / 477.2 MB, free: 8.352 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.1477, allocations: 0 / 477.2 MB, free: 8.352 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.1477, allocations: 0 / 477.2 MB, free: 8.352 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.268e-06/0.1477, allocations: 0 / 477.2 MB, free: 8.352 MB / 350.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.0004871/0.1482, allocations: 431.5 kB / 477.6 MB, free: 7.879 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.884e-05/0.1482, allocations: 8.031 kB / 477.6 MB, free: 7.871 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.232e-05/0.1483, allocations: 4.938 kB / 477.6 MB, free: 7.867 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.78e-05/0.1484, allocations: 160.4 kB / 477.8 MB, free: 7.672 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.194e-05/0.1484, allocations: 384 / 477.8 MB, free: 7.672 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.055e-06/0.1484, allocations: 4.375 kB / 477.8 MB, free: 7.668 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.848e-05/0.1485, allocations: 41.94 kB / 477.8 MB, free: 7.621 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.713e-06/0.1485, allocations: 0 / 477.8 MB, free: 7.621 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.003e-05/0.1485, allocations: 3.984 kB / 477.8 MB, free: 7.617 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.771e-06/0.1486, allocations: 8 kB / 477.8 MB, free: 7.609 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.764e-05/0.1486, allocations: 3.938 kB / 477.8 MB, free: 7.605 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001671/0.1488, allocations: 141.7 kB / 478 MB, free: 7.418 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.5e-05/0.1488, allocations: 22.61 kB / 478 MB, free: 7.387 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.811e-05/0.1488, allocations: 4.859 kB / 478 MB, free: 7.379 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.395e-06/0.1488, allocations: 3.938 kB / 478 MB, free: 7.375 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.05e-05/0.1489, allocations: 64.19 kB / 478.1 MB, free: 7.297 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.162e-06/0.1489, allocations: 8.062 kB / 478.1 MB, free: 7.289 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002141/0.1491, allocations: 55.41 kB / 478.1 MB, free: 7.223 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.706e-05/0.1492, allocations: 81.11 kB / 478.2 MB, free: 7.125 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.266e-05/0.1493, allocations: 93.86 kB / 478.3 MB, free: 7.023 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.535e-05/0.1493, allocations: 25.7 kB / 478.3 MB, free: 6.992 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.185e-05/0.1493, allocations: 80.14 kB / 478.4 MB, free: 6.91 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.338e-05/0.1494, allocations: 0 / 478.4 MB, free: 6.91 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.086e-05/0.1494, allocations: 13.7 kB / 478.4 MB, free: 6.891 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001446/0.1496, allocations: 315 kB / 478.7 MB, free: 6.574 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.224e-05/0.1496, allocations: 4 kB / 478.7 MB, free: 6.57 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.814e-06/0.1496, allocations: 3.938 kB / 478.7 MB, free: 6.566 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.394e-05/0.1497, allocations: 60.27 kB / 478.8 MB, free: 6.492 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.1497, allocations: 0 / 478.8 MB, free: 6.492 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.896e-05/0.1497, allocations: 67.39 kB / 478.8 MB, free: 6.414 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.338e-05/0.1498, allocations: 33.64 kB / 478.9 MB, free: 6.375 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-06/0.1498, allocations: 0 / 478.9 MB, free: 6.375 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.132e-05/0.1498, allocations: 4.094 kB / 478.9 MB, free: 6.371 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.22e-07/0.1498, allocations: 0 / 478.9 MB, free: 6.371 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.032e-06/0.1498, allocations: 3.984 kB / 478.9 MB, free: 6.367 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.773e-05/0.1499, allocations: 8.219 kB / 478.9 MB, free: 6.359 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.011e-06/0.1499, allocations: 0 / 478.9 MB, free: 6.359 MB / 350.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.0001006/0.15, allocations: 131.5 kB / 479 MB, free: 6.215 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.869e-06/0.15, allocations: 7.938 kB / 479 MB, free: 6.207 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.56e-05/0.15, allocations: 11.06 kB / 479 MB, free: 6.195 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.15, allocations: 3.938 kB / 479 MB, free: 6.191 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.15, allocations: 4 kB / 479 MB, free: 6.188 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.064e-06/0.15, allocations: 0 / 479 MB, free: 6.188 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001114/0.1502, allocations: 149.6 kB / 479.2 MB, free: 5.992 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.1502, allocations: 0 / 479.2 MB, free: 5.992 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.395e-06/0.1502, allocations: 4 kB / 479.2 MB, free: 5.988 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.1502, allocations: 7.875 kB / 479.2 MB, free: 5.98 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.406e-06/0.1502, allocations: 0 / 479.2 MB, free: 5.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.1502, allocations: 0 / 479.2 MB, free: 5.98 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.1502, allocations: 3.984 kB / 479.2 MB, free: 5.977 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000103/0.1503, allocations: 94.75 kB / 479.3 MB, free: 5.859 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.364e-05/0.1504, allocations: 77.11 kB / 479.4 MB, free: 5.766 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.763e-05/0.1504, allocations: 11.92 kB / 479.4 MB, free: 5.754 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.03e-05/0.1504, allocations: 0 / 479.4 MB, free: 5.754 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.055e-05/0.1504, allocations: 4 kB / 479.4 MB, free: 5.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.715e-06/0.1504, allocations: 0 / 479.4 MB, free: 5.75 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.74e-05/0.1505, allocations: 75.28 kB / 479.5 MB, free: 5.676 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1505, allocations: 0 / 479.5 MB, free: 5.676 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004987/0.151, allocations: 136 kB / 479.6 MB, free: 5.543 MB / 350.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.0007316/0.1517, allocations: 361.4 kB / 479.9 MB, free: 5.188 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.781e-05/0.1518, allocations: 67.41 kB / 480 MB, free: 5.109 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.1518, allocations: 0 / 480 MB, free: 5.109 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.407e-05/0.1519, allocations: 59.39 kB / 480.1 MB, free: 5.039 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001197/0.152, allocations: 0 / 480.1 MB, free: 5.039 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001667/0.1522, allocations: 74.7 kB / 480.1 MB, free: 4.938 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002317/0.1524, allocations: 0.6731 MB / 480.8 MB, free: 4.238 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.051e-06/0.1524, allocations: 0 / 480.8 MB, free: 4.238 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.252e-05/0.1524, allocations: 11.55 kB / 480.8 MB, free: 4.227 MB / 350.1 MB Notification: Performance of SimCode: time 2.01e-07/0.1524, allocations: 4 kB / 480.8 MB, free: 4.223 MB / 350.1 MB Notification: Performance of Templates: time 0.007916/0.1604, allocations: 4.273 MB / 485.1 MB, free: 15.95 MB / 366.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.makefile (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 & ./ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/ComplexMath/TestComplexOperations/TestComplexOperations.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches