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.001102/0.001102, allocations: 97.89 kB / 18.01 MB, free: 5.602 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.001472/0.001472, allocations: 182.1 kB / 18.91 MB, free: 4.738 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.366/1.366, allocations: 223.3 MB / 243 MB, free: 14.33 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.2/0.2, allocations: 44.24 MB / 338.3 MB, free: 2.398 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000344/0.000344, allocations: 11.94 kB / 411 MB, free: 27.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1178/0.1182, allocations: 61.93 MB / 472.9 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.0006522/0.1189, allocations: 193.4 kB / 473.1 MB, free: 13.11 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003276/0.1222, allocations: 2.314 MB / 475.4 MB, free: 10.78 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.091e-05/0.1222, allocations: 0 / 475.4 MB, free: 10.78 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.216e-05/0.1222, allocations: 0 / 475.4 MB, free: 10.78 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.749e-06/0.1222, allocations: 0 / 475.4 MB, free: 10.78 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.002425/0.1247, allocations: 1.012 MB / 476.4 MB, free: 9.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.105e-05/0.1247, allocations: 0 / 476.4 MB, free: 9.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.842e-05/0.1247, allocations: 0 / 476.4 MB, free: 9.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.642e-05/0.1248, allocations: 0 / 476.4 MB, free: 9.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.17e-05/0.1248, allocations: 4 kB / 476.4 MB, free: 9.766 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.641e-06/0.1248, allocations: 0 / 476.4 MB, free: 9.766 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001551/0.1264, allocations: 0.9638 MB / 477.4 MB, free: 8.801 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.265e-06/0.1264, allocations: 0 / 477.4 MB, free: 8.801 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.299e-05/0.1264, allocations: 25.7 kB / 477.4 MB, free: 8.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004925/0.1269, allocations: 267.5 kB / 477.7 MB, free: 8.508 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.127, allocations: 3.938 kB / 477.7 MB, free: 8.504 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.366e-06/0.127, allocations: 3.984 kB / 477.7 MB, free: 8.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.187e-06/0.127, allocations: 0 / 477.7 MB, free: 8.5 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.0004583/0.1274, allocations: 421.2 kB / 478.1 MB, free: 8.035 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.519e-05/0.1275, allocations: 8.031 kB / 478.1 MB, free: 8.027 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.45e-05/0.1275, allocations: 4.938 kB / 478.1 MB, free: 8.023 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.371e-05/0.1276, allocations: 160.4 kB / 478.3 MB, free: 7.828 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.396e-05/0.1276, allocations: 384 / 478.3 MB, free: 7.828 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.746e-06/0.1277, allocations: 384 / 478.3 MB, free: 7.828 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.62e-05/0.1278, allocations: 50 kB / 478.3 MB, free: 7.773 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.502e-06/0.1278, allocations: 3.938 kB / 478.3 MB, free: 7.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.716e-06/0.1278, allocations: 0 / 478.3 MB, free: 7.77 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.578e-06/0.1278, allocations: 0 / 478.3 MB, free: 7.77 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.134e-05/0.1278, allocations: 0 / 478.3 MB, free: 7.77 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001304/0.128, allocations: 149.7 kB / 478.5 MB, free: 7.574 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.636e-05/0.128, allocations: 14.58 kB / 478.5 MB, free: 7.551 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.659e-05/0.128, allocations: 12.84 kB / 478.5 MB, free: 7.535 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.466e-06/0.128, allocations: 0 / 478.5 MB, free: 7.535 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.976e-05/0.1281, allocations: 68.27 kB / 478.6 MB, free: 7.453 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 5.671e-06/0.1281, allocations: 3.984 kB / 478.6 MB, free: 7.449 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001679/0.1283, allocations: 63.34 kB / 478.6 MB, free: 7.375 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.082e-05/0.1283, allocations: 77.11 kB / 478.7 MB, free: 7.281 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.875e-05/0.1284, allocations: 93.84 kB / 478.8 MB, free: 7.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.415e-05/0.1284, allocations: 25.83 kB / 478.8 MB, free: 7.148 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.913e-05/0.1284, allocations: 84.14 kB / 478.9 MB, free: 7.062 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.778e-05/0.1285, allocations: 4 kB / 478.9 MB, free: 7.059 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.319e-05/0.1285, allocations: 13.72 kB / 478.9 MB, free: 7.039 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001011/0.1286, allocations: 310.8 kB / 479.2 MB, free: 6.727 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.356e-06/0.1286, allocations: 0 / 479.2 MB, free: 6.727 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.589e-06/0.1286, allocations: 0 / 479.2 MB, free: 6.727 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.133e-05/0.1287, allocations: 64.2 kB / 479.3 MB, free: 6.648 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.1287, allocations: 64 / 479.3 MB, free: 6.648 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.851e-05/0.1288, allocations: 71.39 kB / 479.4 MB, free: 6.566 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.356e-05/0.1288, allocations: 33.64 kB / 479.4 MB, free: 6.527 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-06/0.1288, allocations: 0 / 479.4 MB, free: 6.527 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.237e-05/0.1289, allocations: 0 / 479.4 MB, free: 6.527 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.605e-06/0.1289, allocations: 4 kB / 479.4 MB, free: 6.523 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.661e-06/0.1289, allocations: 0 / 479.4 MB, free: 6.523 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.723e-05/0.1289, allocations: 288 / 479.4 MB, free: 6.523 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.073e-06/0.1289, allocations: 0 / 479.4 MB, free: 6.523 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.27e-05/0.129, allocations: 139.6 kB / 479.5 MB, free: 6.371 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.849e-06/0.129, allocations: 7.922 kB / 479.5 MB, free: 6.363 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.751e-05/0.129, allocations: 11.02 kB / 479.5 MB, free: 6.352 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.1291, allocations: 0 / 479.5 MB, free: 6.352 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.419e-06/0.1291, allocations: 0 / 479.5 MB, free: 6.352 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.1291, allocations: 0 / 479.5 MB, free: 6.352 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.938e-05/0.1292, allocations: 149.6 kB / 479.7 MB, free: 6.156 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.1292, allocations: 0 / 479.7 MB, free: 6.156 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.51e-07/0.1292, allocations: 0 / 479.7 MB, free: 6.156 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.524e-06/0.1292, allocations: 7.922 kB / 479.7 MB, free: 6.148 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.422e-06/0.1292, allocations: 7.875 kB / 479.7 MB, free: 6.141 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.1292, allocations: 8 kB / 479.7 MB, free: 6.133 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.1292, allocations: 0 / 479.7 MB, free: 6.133 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000108/0.1293, allocations: 94.75 kB / 479.8 MB, free: 6.016 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.551e-05/0.1294, allocations: 81.09 kB / 479.9 MB, free: 5.918 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.677e-05/0.1294, allocations: 7.938 kB / 479.9 MB, free: 5.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.638e-06/0.1294, allocations: 0 / 479.9 MB, free: 5.91 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.62e-05/0.1294, allocations: 0 / 479.9 MB, free: 5.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.627e-06/0.1294, allocations: 4.031 kB / 479.9 MB, free: 5.906 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.033e-05/0.1295, allocations: 75.28 kB / 480 MB, free: 5.832 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1295, allocations: 0 / 480 MB, free: 5.832 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004717/0.13, allocations: 136 kB / 480.1 MB, free: 5.699 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.0006887/0.1307, allocations: 370.8 kB / 480.5 MB, free: 5.34 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.147e-05/0.1308, allocations: 67.33 kB / 480.5 MB, free: 5.262 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1308, allocations: 0 / 480.5 MB, free: 5.262 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.027e-05/0.1308, allocations: 55.41 kB / 480.6 MB, free: 5.195 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001216/0.1309, allocations: 0.5 kB / 480.6 MB, free: 5.195 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00019/0.1311, allocations: 100.6 kB / 480.7 MB, free: 5.062 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002161/0.1314, allocations: 0.6731 MB / 481.4 MB, free: 4.363 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.443e-05/0.1314, allocations: 11.44 kB / 481.4 MB, free: 4.352 MB / 350.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1314, allocations: 0 / 481.4 MB, free: 4.352 MB / 350.1 MB Notification: Performance of Templates: time 0.006289/0.1377, allocations: 3.614 MB / 485 MB, free: 0.7344 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/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