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.001472/0.001472, allocations: 107.3 kB / 18.4 MB, free: 4.699 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.001636/0.001636, allocations: 192 kB / 19.34 MB, free: 3.766 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.37/1.37, allocations: 222.9 MB / 243 MB, free: 15.2 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.2101/0.2101, allocations: 44.18 MB / 337.4 MB, free: 2.723 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001514/0.001515, allocations: 62.03 kB / 409.9 MB, free: 26.56 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1358/0.1373, allocations: 60.83 MB / 470.7 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001775/0.1392, allocations: 458.8 kB / 471.2 MB, free: 13.22 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003341/0.1425, allocations: 2.29 MB / 473.4 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.565e-05/0.1426, allocations: 0 / 473.4 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.687e-05/0.1426, allocations: 0 / 473.4 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.412e-06/0.1426, allocations: 7.938 kB / 473.4 MB, free: 10.91 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.002739/0.1454, allocations: 1.124 MB / 474.6 MB, free: 9.781 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.259e-05/0.1454, allocations: 4 kB / 474.6 MB, free: 9.777 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.013e-05/0.1455, allocations: 4 kB / 474.6 MB, free: 9.773 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.807e-05/0.1455, allocations: 0 / 474.6 MB, free: 9.773 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.401e-05/0.1455, allocations: 0 / 474.6 MB, free: 9.773 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.662e-06/0.1455, allocations: 4 kB / 474.6 MB, free: 9.77 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001518/0.1471, allocations: 0.9911 MB / 475.6 MB, free: 8.777 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.121e-05/0.1471, allocations: 0 / 475.6 MB, free: 8.777 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.595e-05/0.1471, allocations: 3.938 kB / 475.6 MB, free: 8.773 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006155/0.1477, allocations: 419.4 kB / 476 MB, free: 8.363 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.1478, allocations: 0 / 476 MB, free: 8.363 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.829e-06/0.1478, allocations: 0 / 476 MB, free: 8.363 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.214e-06/0.1478, allocations: 3.938 kB / 476 MB, free: 8.359 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.0004747/0.1483, allocations: 433.2 kB / 476.4 MB, free: 7.883 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.072e-05/0.1483, allocations: 12.03 kB / 476.4 MB, free: 7.871 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.274e-05/0.1484, allocations: 0.9375 kB / 476.4 MB, free: 7.871 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001212/0.1485, allocations: 160.4 kB / 476.6 MB, free: 7.676 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.487e-05/0.1485, allocations: 384 / 476.6 MB, free: 7.676 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.267e-05/0.1485, allocations: 384 / 476.6 MB, free: 7.676 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001185/0.1487, allocations: 38 kB / 476.6 MB, free: 7.633 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.1487, allocations: 0 / 476.6 MB, free: 7.633 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.098e-05/0.1487, allocations: 0 / 476.6 MB, free: 7.633 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-06/0.1487, allocations: 0 / 476.6 MB, free: 7.633 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.252e-05/0.1487, allocations: 8 kB / 476.6 MB, free: 7.625 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001699/0.1489, allocations: 145.7 kB / 476.8 MB, free: 7.434 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.29e-05/0.149, allocations: 22.52 kB / 476.8 MB, free: 7.402 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.669e-05/0.149, allocations: 8.953 kB / 476.8 MB, free: 7.391 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.019e-05/0.149, allocations: 0 / 476.8 MB, free: 7.391 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.231e-05/0.1491, allocations: 64.19 kB / 476.9 MB, free: 7.312 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 2.535e-06/0.1491, allocations: 4 kB / 476.9 MB, free: 7.309 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002246/0.1493, allocations: 63.34 kB / 476.9 MB, free: 7.234 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.556e-05/0.1494, allocations: 77.11 kB / 477 MB, free: 7.141 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.114e-05/0.1495, allocations: 93.86 kB / 477.1 MB, free: 7.039 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.146e-05/0.1495, allocations: 25.7 kB / 477.1 MB, free: 7.008 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.164e-05/0.1495, allocations: 80.14 kB / 477.2 MB, free: 6.926 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.06e-05/0.1496, allocations: 11.92 kB / 477.2 MB, free: 6.914 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.118e-05/0.1496, allocations: 9.719 kB / 477.2 MB, free: 6.898 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001449/0.1497, allocations: 315 kB / 477.5 MB, free: 6.582 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.292e-05/0.1498, allocations: 4 kB / 477.5 MB, free: 6.578 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.031e-06/0.1498, allocations: 0 / 477.5 MB, free: 6.578 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.329e-05/0.1498, allocations: 64.27 kB / 477.6 MB, free: 6.5 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.1499, allocations: 0 / 477.6 MB, free: 6.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.901e-05/0.1499, allocations: 67.33 kB / 477.7 MB, free: 6.422 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.617e-05/0.15, allocations: 33.64 kB / 477.7 MB, free: 6.383 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.6e-06/0.15, allocations: 0 / 477.7 MB, free: 6.383 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.683e-05/0.15, allocations: 96 / 477.7 MB, free: 6.383 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.052e-06/0.15, allocations: 7.938 kB / 477.7 MB, free: 6.375 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.003e-06/0.15, allocations: 0 / 477.7 MB, free: 6.375 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.967e-05/0.1501, allocations: 4 kB / 477.7 MB, free: 6.371 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.255e-06/0.1501, allocations: 0 / 477.7 MB, free: 6.371 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.0001025/0.1502, allocations: 131.5 kB / 477.8 MB, free: 6.227 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.445e-05/0.1502, allocations: 11.92 kB / 477.8 MB, free: 6.215 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.457e-05/0.1502, allocations: 7.078 kB / 477.9 MB, free: 6.207 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.1502, allocations: 3.984 kB / 477.9 MB, free: 6.203 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.1502, allocations: 0 / 477.9 MB, free: 6.203 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.84e-06/0.1502, allocations: 4 kB / 477.9 MB, free: 6.199 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001254/0.1504, allocations: 149.6 kB / 478 MB, free: 6.004 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.1504, allocations: 0 / 478 MB, free: 6.004 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.294e-06/0.1504, allocations: 4 kB / 478 MB, free: 6 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.669e-06/0.1504, allocations: 7.922 kB / 478 MB, free: 5.992 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.536e-06/0.1504, allocations: 0 / 478 MB, free: 5.992 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.81e-07/0.1504, allocations: 0 / 478 MB, free: 5.992 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.62e-07/0.1504, allocations: 0 / 478 MB, free: 5.992 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001142/0.1505, allocations: 98.69 kB / 478.1 MB, free: 5.871 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.58e-05/0.1506, allocations: 81.09 kB / 478.2 MB, free: 5.773 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.678e-05/0.1506, allocations: 3.938 kB / 478.2 MB, free: 5.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.326e-06/0.1506, allocations: 0 / 478.2 MB, free: 5.77 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.957e-05/0.1507, allocations: 4 kB / 478.2 MB, free: 5.766 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.769e-06/0.1507, allocations: 4 kB / 478.2 MB, free: 5.762 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.036e-05/0.1507, allocations: 75.28 kB / 478.3 MB, free: 5.688 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1507, allocations: 0 / 478.3 MB, free: 5.688 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004588/0.1512, allocations: 144 kB / 478.4 MB, free: 5.547 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.0007099/0.1519, allocations: 374.4 kB / 478.8 MB, free: 5.184 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001059/0.152, allocations: 59.41 kB / 478.8 MB, free: 5.113 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.152, allocations: 0 / 478.8 MB, free: 5.113 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.161e-05/0.1521, allocations: 59.39 kB / 478.9 MB, free: 5.043 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001253/0.1522, allocations: 4 kB / 478.9 MB, free: 5.039 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001712/0.1524, allocations: 76.88 kB / 479 MB, free: 4.938 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002721/0.1527, allocations: 0.6729 MB / 479.7 MB, free: 4.238 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.262e-06/0.1527, allocations: 0 / 479.7 MB, free: 4.238 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.157e-05/0.1527, allocations: 7.438 kB / 479.7 MB, free: 4.23 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1527, allocations: 4.125 kB / 479.7 MB, free: 4.227 MB / 350.1 MB Notification: Performance of Templates: time 0.007955/0.1606, allocations: 4.291 MB / 484 MB, free: 15.93 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 cvode -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