Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexFunctions") translateModel(ModelicaTest.ComplexMath.TestComplexFunctions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexFunctions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001291/0.001291, allocations: 175.2 kB / 16.72 MB, free: 5.051 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.377/1.377, allocations: 205.4 MB / 222.9 MB, free: 9.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007072/0.0007072, allocations: 90.36 kB / 271.2 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2975/0.2975, allocations: 43.56 MB / 363.1 MB, free: 52.2 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003206/0.0003206, allocations: 15.98 kB / 432 MB, free: 5.844 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.101/0.1013, allocations: 58.84 MB / 490.8 MB, free: 10.91 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.0005086/0.1019, allocations: 212.5 kB / 491 MB, free: 10.71 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.00269/0.1046, allocations: 2.175 MB / 493.2 MB, free: 8.512 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.656e-05/0.1046, allocations: 0 / 493.2 MB, free: 8.512 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.063e-05/0.1046, allocations: 0 / 493.2 MB, free: 8.512 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 6.081e-06/0.1046, allocations: 0 / 493.2 MB, free: 8.512 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00192/0.1065, allocations: 0.9039 MB / 494.1 MB, free: 7.605 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 2.715e-05/0.1066, allocations: 0 / 494.1 MB, free: 7.605 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.216e-05/0.1066, allocations: 0 / 494.1 MB, free: 7.605 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.361e-05/0.1066, allocations: 3.938 kB / 494.1 MB, free: 7.602 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.12e-05/0.1067, allocations: 0 / 494.1 MB, free: 7.602 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.929e-06/0.1067, allocations: 0 / 494.1 MB, free: 7.602 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00121/0.1079, allocations: 0.9053 MB / 495 MB, free: 6.695 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 6.302e-06/0.1079, allocations: 0 / 495 MB, free: 6.695 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 2.858e-05/0.108, allocations: 25.7 kB / 495 MB, free: 6.664 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003119/0.1083, allocations: 259.5 kB / 495.3 MB, free: 6.41 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.606e-06/0.1083, allocations: 0 / 495.3 MB, free: 6.41 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.422e-06/0.1083, allocations: 0 / 495.3 MB, free: 6.41 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.667e-06/0.1083, allocations: 0 / 495.3 MB, free: 6.41 MB / 378.7 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.0003585/0.1087, allocations: 425.2 kB / 495.7 MB, free: 5.941 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.025e-05/0.1087, allocations: 12.03 kB / 495.7 MB, free: 5.93 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.107e-05/0.1087, allocations: 4.938 kB / 495.7 MB, free: 5.926 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.614e-05/0.1088, allocations: 160.4 kB / 495.9 MB, free: 5.73 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.21e-05/0.1089, allocations: 384 / 495.9 MB, free: 5.73 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.272e-06/0.1089, allocations: 4.312 kB / 495.9 MB, free: 5.727 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.075e-05/0.109, allocations: 38.02 kB / 495.9 MB, free: 5.684 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.502e-06/0.109, allocations: 0 / 495.9 MB, free: 5.684 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.554e-06/0.109, allocations: 0 / 495.9 MB, free: 5.684 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.827e-06/0.109, allocations: 0 / 495.9 MB, free: 5.684 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.564e-05/0.109, allocations: 3.984 kB / 495.9 MB, free: 5.68 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001095/0.1091, allocations: 149.7 kB / 496.1 MB, free: 5.484 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.926e-05/0.1092, allocations: 18.58 kB / 496.1 MB, free: 5.457 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.183e-05/0.1092, allocations: 12.73 kB / 496.1 MB, free: 5.441 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.567e-06/0.1092, allocations: 0 / 496.1 MB, free: 5.441 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.18e-05/0.1093, allocations: 68.27 kB / 496.2 MB, free: 5.359 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 9.32e-07/0.1093, allocations: 0 / 496.2 MB, free: 5.359 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001489/0.1094, allocations: 71.3 kB / 496.2 MB, free: 5.277 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.359e-05/0.1095, allocations: 77.11 kB / 496.3 MB, free: 5.184 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.743e-05/0.1095, allocations: 89.86 kB / 496.4 MB, free: 5.086 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.108e-05/0.1095, allocations: 25.7 kB / 496.4 MB, free: 5.055 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.931e-05/0.1096, allocations: 84.12 kB / 496.5 MB, free: 4.969 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.24e-05/0.1096, allocations: 0 / 496.5 MB, free: 4.969 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.743e-06/0.1096, allocations: 0 / 496.5 MB, free: 4.969 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000104/0.1097, allocations: 318.8 kB / 496.8 MB, free: 4.648 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.596e-06/0.1097, allocations: 4.062 kB / 496.8 MB, free: 4.645 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.44e-06/0.1097, allocations: 7.984 kB / 496.8 MB, free: 4.637 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.203e-05/0.1098, allocations: 60.27 kB / 496.9 MB, free: 4.562 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.1098, allocations: 0 / 496.9 MB, free: 4.562 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.903e-05/0.1099, allocations: 59.41 kB / 496.9 MB, free: 4.492 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.701e-05/0.1099, allocations: 36.92 kB / 497 MB, free: 4.453 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.296e-06/0.1099, allocations: 0 / 497 MB, free: 4.453 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.658e-06/0.1099, allocations: 3.984 kB / 497 MB, free: 4.449 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.324e-06/0.1099, allocations: 0 / 497 MB, free: 4.449 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.707e-06/0.1099, allocations: 8.031 kB / 497 MB, free: 4.441 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.813e-05/0.11, allocations: 15.98 kB / 497 MB, free: 4.426 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.41e-06/0.11, allocations: 0 / 497 MB, free: 4.426 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.019e-05/0.1101, allocations: 135.8 kB / 497.1 MB, free: 4.277 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.053e-06/0.1101, allocations: 7.938 kB / 497.1 MB, free: 4.27 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.597e-05/0.1101, allocations: 3.125 kB / 497.1 MB, free: 4.266 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.72e-07/0.1101, allocations: 0 / 497.1 MB, free: 4.266 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.835e-06/0.1101, allocations: 0 / 497.1 MB, free: 4.266 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.783e-06/0.1101, allocations: 0 / 497.1 MB, free: 4.266 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.086e-05/0.1102, allocations: 149.7 kB / 497.3 MB, free: 4.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.1102, allocations: 4 kB / 497.3 MB, free: 4.066 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.91e-07/0.1102, allocations: 0 / 497.3 MB, free: 4.066 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.1102, allocations: 3.938 kB / 497.3 MB, free: 4.062 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.59e-06/0.1102, allocations: 0 / 497.3 MB, free: 4.062 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.41e-07/0.1102, allocations: 0 / 497.3 MB, free: 4.062 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.1102, allocations: 0 / 497.3 MB, free: 4.062 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.279e-05/0.1103, allocations: 90.83 kB / 497.4 MB, free: 3.949 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.136e-05/0.1104, allocations: 85.08 kB / 497.5 MB, free: 3.848 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.131e-05/0.1104, allocations: 3.938 kB / 497.5 MB, free: 3.844 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.478e-06/0.1104, allocations: 4 kB / 497.5 MB, free: 3.84 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.448e-06/0.1104, allocations: 0 / 497.5 MB, free: 3.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.372e-06/0.1104, allocations: 7.938 kB / 497.5 MB, free: 3.832 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.695e-05/0.1105, allocations: 83.2 kB / 497.6 MB, free: 3.75 MB / 378.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1105, allocations: 0 / 497.6 MB, free: 3.75 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003867/0.1109, allocations: 140 kB / 497.7 MB, free: 3.613 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006326/0.1115, allocations: 354.8 kB / 498 MB, free: 3.262 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 7.891e-05/0.1116, allocations: 59.41 kB / 498.1 MB, free: 3.191 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.1116, allocations: 0 / 498.1 MB, free: 3.191 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 2.87e-05/0.1116, allocations: 59.47 kB / 498.2 MB, free: 3.121 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001147/0.1118, allocations: 7.984 kB / 498.2 MB, free: 3.113 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001742/0.1119, allocations: 104.4 kB / 498.3 MB, free: 2.98 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002621/0.1122, allocations: 0.6692 MB / 498.9 MB, free: 2.285 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.458e-06/0.1122, allocations: 7.438 kB / 499 MB, free: 2.277 MB / 378.7 MB Notification: Performance of SimCode: time 2.11e-07/0.1122, allocations: 0 / 499 MB, free: 2.277 MB / 378.7 MB Notification: Performance of Templates: time 0.1646/0.2769, allocations: 3.612 MB / 0.4908 GB, free: 40.72 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexFunctions.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexFunctions.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexFunctions.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexFunctions --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/ComplexMath/TestComplexFunctions/TestComplexFunctions.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches