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.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.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions") translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001077/0.001077, allocations: 108.2 kB / 18.39 MB, free: 4.629 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.001/0.001, allocations: 182.9 kB / 19.33 MB, free: 3.699 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.355/1.355, allocations: 222.9 MB / 243 MB, free: 15.08 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.2095/0.2095, allocations: 44.19 MB / 337.4 MB, free: 2.691 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001233/0.001233, allocations: 63.11 kB / 409.9 MB, free: 26.53 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1337/0.135, allocations: 60.82 MB / 470.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001866/0.1369, allocations: 477.8 kB / 471.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003301/0.1402, allocations: 2.286 MB / 473.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.049e-05/0.1402, allocations: 0 / 473.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.258e-05/0.1403, allocations: 0 / 473.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.463e-06/0.1403, allocations: 0 / 473.4 MB, free: 10.89 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.002659/0.1429, allocations: 1.133 MB / 474.6 MB, free: 9.758 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.43e-05/0.143, allocations: 4 kB / 474.6 MB, free: 9.754 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.13e-05/0.1431, allocations: 0 / 474.6 MB, free: 9.754 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.565e-05/0.1431, allocations: 0 / 474.6 MB, free: 9.754 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.811e-05/0.1431, allocations: 7.984 kB / 474.6 MB, free: 9.746 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.201e-06/0.1431, allocations: 0 / 474.6 MB, free: 9.746 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001436/0.1446, allocations: 0.9834 MB / 475.6 MB, free: 8.762 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.824e-06/0.1446, allocations: 0 / 475.6 MB, free: 8.762 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.992e-05/0.1446, allocations: 4 kB / 475.6 MB, free: 8.758 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005155/0.1451, allocations: 423.3 kB / 476 MB, free: 8.344 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.1451, allocations: 7.984 kB / 476 MB, free: 8.336 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.1452, allocations: 0 / 476 MB, free: 8.336 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.821e-06/0.1452, allocations: 0 / 476 MB, free: 8.336 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.0004117/0.1456, allocations: 428.1 kB / 476.4 MB, free: 7.867 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.645e-05/0.1456, allocations: 8.031 kB / 476.4 MB, free: 7.859 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.506e-05/0.1457, allocations: 4.938 kB / 476.4 MB, free: 7.855 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.443e-05/0.1458, allocations: 164.4 kB / 476.6 MB, free: 7.656 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.315e-05/0.1458, allocations: 4.375 kB / 476.6 MB, free: 7.652 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.056e-05/0.1458, allocations: 4.375 kB / 476.6 MB, free: 7.648 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.893e-05/0.1459, allocations: 30.02 kB / 476.6 MB, free: 7.613 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.354e-06/0.1459, allocations: 0 / 476.6 MB, free: 7.613 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.285e-05/0.1459, allocations: 4 kB / 476.6 MB, free: 7.609 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/0.1459, allocations: 3.938 kB / 476.6 MB, free: 7.605 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.987e-05/0.146, allocations: 3.938 kB / 476.6 MB, free: 7.602 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001548/0.1461, allocations: 149.7 kB / 476.8 MB, free: 7.406 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.834e-05/0.1462, allocations: 18.61 kB / 476.8 MB, free: 7.379 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.674e-05/0.1462, allocations: 8.859 kB / 476.8 MB, free: 7.367 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.736e-06/0.1462, allocations: 0 / 476.8 MB, free: 7.367 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.006e-05/0.1463, allocations: 60.27 kB / 476.9 MB, free: 7.293 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.82e-07/0.1463, allocations: 4 kB / 476.9 MB, free: 7.289 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002094/0.1465, allocations: 67.33 kB / 476.9 MB, free: 7.211 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.554e-05/0.1466, allocations: 81.11 kB / 477 MB, free: 7.113 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.487e-05/0.1466, allocations: 89.86 kB / 477.1 MB, free: 7.016 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.255e-05/0.1466, allocations: 29.83 kB / 477.1 MB, free: 6.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.202e-05/0.1467, allocations: 80.14 kB / 477.2 MB, free: 6.898 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.277e-05/0.1467, allocations: 0 / 477.2 MB, free: 6.898 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.9e-05/0.1467, allocations: 13.72 kB / 477.2 MB, free: 6.879 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001297/0.1469, allocations: 314.8 kB / 477.5 MB, free: 6.562 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.06e-05/0.1469, allocations: 0 / 477.5 MB, free: 6.562 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.28e-06/0.1469, allocations: 0 / 477.5 MB, free: 6.562 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.251e-05/0.147, allocations: 64.25 kB / 477.6 MB, free: 6.484 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.147, allocations: 4.062 kB / 477.6 MB, free: 6.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.93e-05/0.1471, allocations: 63.34 kB / 477.7 MB, free: 6.406 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.815e-05/0.1471, allocations: 37.08 kB / 477.7 MB, free: 6.367 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.1471, allocations: 0 / 477.7 MB, free: 6.367 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.47e-05/0.1471, allocations: 4 kB / 477.7 MB, free: 6.363 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.535e-06/0.1471, allocations: 3.984 kB / 477.7 MB, free: 6.359 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.531e-06/0.1472, allocations: 0 / 477.7 MB, free: 6.359 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.701e-05/0.1472, allocations: 4 kB / 477.7 MB, free: 6.355 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.702e-06/0.1472, allocations: 0 / 477.7 MB, free: 6.355 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 9.561e-05/0.1473, allocations: 139.6 kB / 477.8 MB, free: 6.203 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.397e-06/0.1473, allocations: 3.938 kB / 477.8 MB, free: 6.199 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.708e-06/0.1473, allocations: 7.078 kB / 477.9 MB, free: 6.191 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.223e-06/0.1473, allocations: 0 / 477.9 MB, free: 6.191 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.1473, allocations: 0 / 477.9 MB, free: 6.191 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.1473, allocations: 3.938 kB / 477.9 MB, free: 6.188 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001101/0.1475, allocations: 153.6 kB / 478 MB, free: 5.988 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.1475, allocations: 0 / 478 MB, free: 5.988 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.1475, allocations: 3.938 kB / 478 MB, free: 5.984 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/0.1475, allocations: 3.938 kB / 478 MB, free: 5.98 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.733e-06/0.1475, allocations: 4 kB / 478 MB, free: 5.977 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.1475, allocations: 0 / 478 MB, free: 5.977 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/0.1475, allocations: 8 kB / 478 MB, free: 5.969 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001017/0.1476, allocations: 102.6 kB / 478.1 MB, free: 5.844 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.421e-05/0.1477, allocations: 77.11 kB / 478.2 MB, free: 5.75 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.459e-05/0.1477, allocations: 7.938 kB / 478.2 MB, free: 5.742 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.185e-06/0.1477, allocations: 0 / 478.2 MB, free: 5.742 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.653e-05/0.1477, allocations: 4.031 kB / 478.2 MB, free: 5.738 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.947e-06/0.1477, allocations: 4 kB / 478.2 MB, free: 5.734 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.215e-05/0.1478, allocations: 75.28 kB / 478.3 MB, free: 5.66 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1478, allocations: 0 / 478.3 MB, free: 5.66 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004155/0.1482, allocations: 144 kB / 478.4 MB, free: 5.52 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.0006815/0.1489, allocations: 357.1 kB / 478.8 MB, free: 5.168 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001411/0.149, allocations: 71.33 kB / 478.8 MB, free: 5.086 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.149, allocations: 0 / 478.8 MB, free: 5.086 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.727e-05/0.1491, allocations: 55.41 kB / 478.9 MB, free: 5.02 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001243/0.1492, allocations: 0 / 478.9 MB, free: 5.02 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001916/0.1494, allocations: 77.06 kB / 479 MB, free: 4.918 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003265/0.1498, allocations: 0.6729 MB / 479.6 MB, free: 4.219 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.783e-06/0.1498, allocations: 0 / 479.6 MB, free: 4.219 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.765e-05/0.1498, allocations: 11.44 kB / 479.7 MB, free: 4.207 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1498, allocations: 0 / 479.7 MB, free: 4.207 MB / 350.1 MB Notification: Performance of Templates: time 0.007982/0.1578, allocations: 4.302 MB / 484 MB, free: 15.9 MB / 366.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.makefile (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 & ./ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) 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) Reference file matches