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.001194/0.001194, allocations: 104.1 kB / 17.64 MB, free: 5.48 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.001272/0.001272, allocations: 192 kB / 18.55 MB, free: 4.566 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.33/1.33, allocations: 222.9 MB / 242.3 MB, free: 15.19 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.2097/0.2097, allocations: 44.18 MB / 336.6 MB, free: 2.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001412/0.001412, allocations: 60.25 kB / 408.4 MB, free: 27.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.134/0.1355, allocations: 60.83 MB / 469.2 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.002189/0.1377, allocations: 479.5 kB / 469.7 MB, free: 13.92 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003861/0.1416, allocations: 2.286 MB / 472 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.154e-05/0.1417, allocations: 0 / 472 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.592e-05/0.1417, allocations: 0 / 472 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.28e-06/0.1417, allocations: 4 kB / 472 MB, free: 11.62 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.00324/0.145, allocations: 1.124 MB / 473.1 MB, free: 10.49 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.388e-05/0.1451, allocations: 0 / 473.1 MB, free: 10.49 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.348e-05/0.1451, allocations: 0 / 473.1 MB, free: 10.49 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.325e-05/0.1452, allocations: 4 kB / 473.1 MB, free: 10.49 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.127e-05/0.1452, allocations: 0 / 473.1 MB, free: 10.49 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.895e-06/0.1452, allocations: 0 / 473.1 MB, free: 10.49 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002491/0.1477, allocations: 0.96 MB / 474.1 MB, free: 9.527 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.159e-05/0.1478, allocations: 4 kB / 474.1 MB, free: 9.523 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.025e-05/0.1478, allocations: 3.938 kB / 474.1 MB, free: 9.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001248/0.1491, allocations: 427.3 kB / 474.5 MB, free: 9.102 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.702e-06/0.1491, allocations: 0 / 474.5 MB, free: 9.102 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.1491, allocations: 0 / 474.5 MB, free: 9.102 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.247e-06/0.1491, allocations: 0 / 474.5 MB, free: 9.102 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.0007161/0.1498, allocations: 429.2 kB / 474.9 MB, free: 8.629 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.342e-05/0.1499, allocations: 12.03 kB / 474.9 MB, free: 8.617 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.713e-05/0.15, allocations: 4.922 kB / 474.9 MB, free: 8.613 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001182/0.1501, allocations: 160.4 kB / 475.1 MB, free: 8.418 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.403e-05/0.1501, allocations: 4.375 kB / 475.1 MB, free: 8.414 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.718e-06/0.1501, allocations: 384 / 475.1 MB, free: 8.414 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001151/0.1502, allocations: 34.02 kB / 475.1 MB, free: 8.375 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.457e-06/0.1503, allocations: 0 / 475.1 MB, free: 8.375 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.203e-05/0.1503, allocations: 0 / 475.1 MB, free: 8.375 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.502e-06/0.1503, allocations: 3.938 kB / 475.1 MB, free: 8.371 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.151e-05/0.1503, allocations: 7.922 kB / 475.2 MB, free: 8.363 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001709/0.1505, allocations: 149.7 kB / 475.3 MB, free: 8.168 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.951e-05/0.1506, allocations: 18.58 kB / 475.3 MB, free: 8.141 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.113e-05/0.1506, allocations: 4.953 kB / 475.3 MB, free: 8.133 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.036e-05/0.1506, allocations: 4 kB / 475.3 MB, free: 8.129 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.182e-05/0.1507, allocations: 60.2 kB / 475.4 MB, free: 8.055 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.372e-06/0.1507, allocations: 0 / 475.4 MB, free: 8.055 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.000214/0.1509, allocations: 71.33 kB / 475.5 MB, free: 7.973 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.392e-05/0.151, allocations: 77.11 kB / 475.5 MB, free: 7.879 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.157e-05/0.151, allocations: 93.98 kB / 475.6 MB, free: 7.777 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.422e-05/0.151, allocations: 25.7 kB / 475.6 MB, free: 7.746 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.689e-05/0.1511, allocations: 80.14 kB / 475.7 MB, free: 7.664 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.714e-05/0.1511, allocations: 4 kB / 475.7 MB, free: 7.66 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.056e-05/0.1512, allocations: 9.719 kB / 475.7 MB, free: 7.645 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001199/0.1513, allocations: 314.8 kB / 476 MB, free: 7.328 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.407e-05/0.1513, allocations: 4 kB / 476 MB, free: 7.324 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.632e-06/0.1513, allocations: 4 kB / 476.1 MB, free: 7.32 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.991e-05/0.1514, allocations: 64.33 kB / 476.1 MB, free: 7.242 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.1514, allocations: 3.938 kB / 476.1 MB, free: 7.238 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.224e-05/0.1515, allocations: 55.41 kB / 476.2 MB, free: 7.172 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.026e-05/0.1515, allocations: 41.62 kB / 476.2 MB, free: 7.125 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.1515, allocations: 0 / 476.2 MB, free: 7.125 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.414e-05/0.1516, allocations: 0 / 476.2 MB, free: 7.125 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.91e-07/0.1516, allocations: 0 / 476.2 MB, free: 7.125 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.1516, allocations: 0 / 476.2 MB, free: 7.125 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.869e-05/0.1516, allocations: 288 / 476.2 MB, free: 7.125 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.186e-06/0.1516, allocations: 8.031 kB / 476.2 MB, free: 7.117 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.0001065/0.1517, allocations: 139.5 kB / 476.4 MB, free: 6.965 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.284e-05/0.1518, allocations: 7.938 kB / 476.4 MB, free: 6.957 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.412e-05/0.1518, allocations: 7.078 kB / 476.4 MB, free: 6.949 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.1518, allocations: 4 kB / 476.4 MB, free: 6.945 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.436e-06/0.1518, allocations: 3.984 kB / 476.4 MB, free: 6.941 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.1518, allocations: 0 / 476.4 MB, free: 6.941 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001143/0.1519, allocations: 145.6 kB / 476.5 MB, free: 6.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.1519, allocations: 0 / 476.5 MB, free: 6.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.253e-06/0.1519, allocations: 7.938 kB / 476.5 MB, free: 6.742 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.849e-06/0.152, allocations: 7.938 kB / 476.5 MB, free: 6.734 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.616e-06/0.152, allocations: 0 / 476.5 MB, free: 6.734 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.152, allocations: 0 / 476.5 MB, free: 6.734 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.152, allocations: 3.938 kB / 476.5 MB, free: 6.73 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001126/0.1521, allocations: 94.73 kB / 476.6 MB, free: 6.613 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.133e-05/0.1521, allocations: 77.11 kB / 476.7 MB, free: 6.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.415e-05/0.1522, allocations: 3.938 kB / 476.7 MB, free: 6.516 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.201e-05/0.1522, allocations: 8.016 kB / 476.7 MB, free: 6.508 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.26e-05/0.1522, allocations: 0 / 476.7 MB, free: 6.508 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.786e-06/0.1522, allocations: 4 kB / 476.7 MB, free: 6.504 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.991e-05/0.1522, allocations: 75.28 kB / 476.8 MB, free: 6.43 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1523, allocations: 0 / 476.8 MB, free: 6.43 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000587/0.1528, allocations: 140 kB / 476.9 MB, free: 6.293 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.0009237/0.1538, allocations: 367.2 kB / 477.3 MB, free: 5.934 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001268/0.1539, allocations: 59.34 kB / 477.4 MB, free: 5.863 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.59e-06/0.1539, allocations: 4 kB / 477.4 MB, free: 5.859 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.33e-05/0.154, allocations: 63.47 kB / 477.4 MB, free: 5.785 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001344/0.1541, allocations: 2.344 kB / 477.4 MB, free: 5.785 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002871/0.1544, allocations: 80.92 kB / 477.5 MB, free: 5.68 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003052/0.1547, allocations: 0.6729 MB / 478.2 MB, free: 4.98 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.143e-05/0.1548, allocations: 3.938 kB / 478.2 MB, free: 4.977 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.42e-05/0.1548, allocations: 7.438 kB / 478.2 MB, free: 4.969 MB / 350.1 MB Notification: Performance of SimCode: time 6.22e-07/0.1548, allocations: 0 / 478.2 MB, free: 4.969 MB / 350.1 MB Notification: Performance of Templates: time 0.008815/0.1636, allocations: 4.297 MB / 482.5 MB, free: 0.6719 MB / 350.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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/ComplexMath/TestComplexFunctions/TestComplexFunctions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches