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.001107/0.001107, allocations: 108.8 kB / 17.21 MB, free: 6.27 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.001064/0.001064, allocations: 194 kB / 18.12 MB, free: 5.363 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.368/1.368, allocations: 222.9 MB / 241.8 MB, free: 15.57 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.2969/0.2969, allocations: 44.16 MB / 336.1 MB, free: 2.949 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001221/0.001221, allocations: 61.09 kB / 407.7 MB, free: 27.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1163/0.1176, allocations: 60.83 MB / 468.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001752/0.1194, allocations: 0.5176 MB / 469 MB, free: 14.34 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003281/0.1227, allocations: 2.348 MB / 471.4 MB, free: 11.97 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.37e-05/0.1227, allocations: 0 / 471.4 MB, free: 11.97 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.202e-05/0.1227, allocations: 0 / 471.4 MB, free: 11.97 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.88e-06/0.1228, allocations: 0 / 471.4 MB, free: 11.97 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.002264/0.125, allocations: 1.038 MB / 472.4 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 2.912e-05/0.1251, allocations: 0 / 472.4 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.168e-05/0.1251, allocations: 4 kB / 472.4 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.375e-05/0.1251, allocations: 0 / 472.4 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.707e-05/0.1252, allocations: 0 / 472.4 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.831e-06/0.1252, allocations: 0 / 472.4 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001343/0.1265, allocations: 0.9638 MB / 473.4 MB, free: 9.965 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.366e-06/0.1265, allocations: 0 / 473.4 MB, free: 9.965 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.205e-05/0.1266, allocations: 11.94 kB / 473.4 MB, free: 9.953 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005407/0.1271, allocations: 419.4 kB / 473.8 MB, free: 9.543 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.1271, allocations: 0 / 473.8 MB, free: 9.543 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.22e-07/0.1271, allocations: 0 / 473.8 MB, free: 9.543 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.979e-06/0.1271, allocations: 4 kB / 473.8 MB, free: 9.539 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.0004112/0.1276, allocations: 429.2 kB / 474.2 MB, free: 9.066 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.785e-05/0.1276, allocations: 8.031 kB / 474.2 MB, free: 9.059 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.62e-05/0.1277, allocations: 4.938 kB / 474.2 MB, free: 9.055 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.761e-05/0.1278, allocations: 164.4 kB / 474.4 MB, free: 8.855 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.238e-06/0.1278, allocations: 4.375 kB / 474.4 MB, free: 8.852 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.057e-06/0.1278, allocations: 4.375 kB / 474.4 MB, free: 8.848 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.892e-05/0.1279, allocations: 30.02 kB / 474.4 MB, free: 8.812 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.221e-06/0.1279, allocations: 0 / 474.4 MB, free: 8.812 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.737e-06/0.1279, allocations: 0 / 474.4 MB, free: 8.812 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.117e-06/0.1279, allocations: 0 / 474.4 MB, free: 8.812 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.925e-05/0.1279, allocations: 4 kB / 474.4 MB, free: 8.809 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001412/0.1281, allocations: 153.6 kB / 474.6 MB, free: 8.609 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.073e-05/0.1281, allocations: 26.55 kB / 474.6 MB, free: 8.574 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.48e-05/0.1281, allocations: 4.859 kB / 474.6 MB, free: 8.566 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.656e-06/0.1282, allocations: 0 / 474.6 MB, free: 8.566 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.359e-05/0.1282, allocations: 64.19 kB / 474.7 MB, free: 8.488 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 7.71e-07/0.1282, allocations: 0 / 474.7 MB, free: 8.488 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001712/0.1284, allocations: 67.45 kB / 474.7 MB, free: 8.41 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.785e-05/0.1285, allocations: 81.05 kB / 474.8 MB, free: 8.312 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.472e-05/0.1285, allocations: 97.98 kB / 474.9 MB, free: 8.207 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.023e-05/0.1285, allocations: 25.7 kB / 474.9 MB, free: 8.176 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.377e-05/0.1285, allocations: 80.14 kB / 475 MB, free: 8.094 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.583e-05/0.1286, allocations: 0 / 475 MB, free: 8.094 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.471e-05/0.1286, allocations: 9.719 kB / 475 MB, free: 8.078 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001135/0.1287, allocations: 322.8 kB / 475.4 MB, free: 7.754 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.318e-06/0.1287, allocations: 0 / 475.4 MB, free: 7.754 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.789e-06/0.1287, allocations: 0 / 475.4 MB, free: 7.754 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.038e-05/0.1288, allocations: 64.33 kB / 475.4 MB, free: 7.676 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.1288, allocations: 0 / 475.4 MB, free: 7.676 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.561e-05/0.1289, allocations: 63.34 kB / 475.5 MB, free: 7.602 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.478e-05/0.1289, allocations: 37.62 kB / 475.5 MB, free: 7.559 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.129, allocations: 0 / 475.5 MB, free: 7.559 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.191e-05/0.129, allocations: 0 / 475.5 MB, free: 7.559 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.52e-07/0.129, allocations: 0 / 475.5 MB, free: 7.559 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.35e-06/0.129, allocations: 7.984 kB / 475.5 MB, free: 7.551 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.536e-05/0.129, allocations: 288 / 475.5 MB, free: 7.551 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.242e-06/0.129, allocations: 3.938 kB / 475.5 MB, free: 7.547 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 7.511e-05/0.1291, allocations: 143.6 kB / 475.7 MB, free: 7.391 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.338e-06/0.1291, allocations: 3.938 kB / 475.7 MB, free: 7.387 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.187e-05/0.1291, allocations: 7.078 kB / 475.7 MB, free: 7.379 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-06/0.1291, allocations: 0 / 475.7 MB, free: 7.379 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.1291, allocations: 0 / 475.7 MB, free: 7.379 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.1292, allocations: 3.984 kB / 475.7 MB, free: 7.375 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001019/0.1293, allocations: 149.6 kB / 475.8 MB, free: 7.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.21e-07/0.1293, allocations: 0 / 475.8 MB, free: 7.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.2e-07/0.1293, allocations: 0 / 475.8 MB, free: 7.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.614e-06/0.1293, allocations: 7.938 kB / 475.8 MB, free: 7.172 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.77e-06/0.1293, allocations: 0 / 475.8 MB, free: 7.172 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.82e-07/0.1293, allocations: 0 / 475.8 MB, free: 7.172 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.1293, allocations: 0 / 475.8 MB, free: 7.172 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001055/0.1294, allocations: 102.7 kB / 475.9 MB, free: 7.047 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.305e-05/0.1295, allocations: 77.11 kB / 476 MB, free: 6.953 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.336e-05/0.1295, allocations: 3.938 kB / 476 MB, free: 6.949 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.346e-06/0.1295, allocations: 7.938 kB / 476 MB, free: 6.941 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.276e-05/0.1295, allocations: 8.016 kB / 476 MB, free: 6.934 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.706e-06/0.1295, allocations: 0 / 476 MB, free: 6.934 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.731e-05/0.1295, allocations: 79.28 kB / 476.1 MB, free: 6.855 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1296, allocations: 0 / 476.1 MB, free: 6.855 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004246/0.13, allocations: 136 kB / 476.2 MB, free: 6.723 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.0006817/0.1307, allocations: 368.7 kB / 476.6 MB, free: 6.359 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.468e-05/0.1308, allocations: 59.41 kB / 476.7 MB, free: 6.289 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.1308, allocations: 4 kB / 476.7 MB, free: 6.285 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.806e-05/0.1308, allocations: 51.41 kB / 476.7 MB, free: 6.223 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001211/0.1309, allocations: 8.125 kB / 476.7 MB, free: 6.215 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001779/0.1311, allocations: 78.62 kB / 476.8 MB, free: 6.109 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002354/0.1314, allocations: 0.6731 MB / 477.5 MB, free: 5.41 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.809e-06/0.1314, allocations: 0 / 477.5 MB, free: 5.41 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.063e-05/0.1314, allocations: 7.438 kB / 477.5 MB, free: 5.402 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1314, allocations: 0 / 477.5 MB, free: 5.402 MB / 350.1 MB Notification: Performance of Templates: time 0.007212/0.1386, allocations: 4.284 MB / 481.8 MB, free: 1.117 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