Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.ComplexMath.TestComplexFunctions.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002333/0.002332, allocations: 172.2 kB / 8.149 MB, free: 2.223 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.823/1.823, allocations: 205.2 MB / 213.8 MB, free: 13.94 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001347/0.001347, allocations: 98.42 kB / 261.8 MB, free: 13.63 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2663/0.2663, allocations: 43.49 MB / 353.2 MB, free: 2.047 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.446e-06/8.616e-06, allocations: 0 / 417.7 MB, free: 40.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2872/0.2872, allocations: 58.83 MB / 476.5 MB, free: 5.086 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1612/0.4485, allocations: 87.95 MB / 0.5512 GB, free: 11.12 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000239/0.4488, allocations: 59.48 kB / 0.5513 GB, free: 11.07 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.06332/0.5121, allocations: 14.63 MB / 0.5656 GB, free: 12.43 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.534e-06/0.5122, allocations: 0 / 0.5656 GB, free: 12.43 MB / 410.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.0009125/0.5131, allocations: 475.7 kB / 0.566 GB, free: 11.91 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.796e-05/0.5132, allocations: 12.02 kB / 0.5661 GB, free: 11.9 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.898e-05/0.5132, allocations: 4 kB / 0.5661 GB, free: 11.89 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001255/0.5134, allocations: 159.1 kB / 0.5662 GB, free: 11.7 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.963e-05/0.5134, allocations: 4 kB / 0.5662 GB, free: 11.7 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.628e-06/0.5134, allocations: 3.938 kB / 0.5662 GB, free: 11.69 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.753e-05/0.5135, allocations: 0 / 0.5662 GB, free: 11.69 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.937e-05/0.5136, allocations: 29.7 kB / 0.5662 GB, free: 11.66 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/0.5136, allocations: 3.984 kB / 0.5663 GB, free: 11.65 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.282e-05/0.5136, allocations: 3.906 kB / 0.5663 GB, free: 11.65 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.019e-06/0.5136, allocations: 0 / 0.5663 GB, free: 11.65 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001625/0.5138, allocations: 126.2 kB / 0.5664 GB, free: 11.49 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.217e-05/0.5139, allocations: 30.55 kB / 0.5664 GB, free: 11.45 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.95e-05/0.5139, allocations: 5.297 kB / 0.5664 GB, free: 11.44 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.746e-06/0.5139, allocations: 0 / 0.5664 GB, free: 11.44 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.203e-05/0.514, allocations: 60.2 kB / 0.5665 GB, free: 11.37 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 2.214e-06/0.514, allocations: 0 / 0.5665 GB, free: 11.37 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001621/0.5142, allocations: 29.77 kB / 0.5665 GB, free: 11.33 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.466e-05/0.5142, allocations: 77.11 kB / 0.5666 GB, free: 11.24 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.889e-05/0.5143, allocations: 89 kB / 0.5667 GB, free: 11.14 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.605e-05/0.5143, allocations: 29.73 kB / 0.5667 GB, free: 11.11 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001277/0.5145, allocations: 154.5 kB / 0.5668 GB, free: 10.96 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.055e-05/0.5145, allocations: 7.906 kB / 0.5668 GB, free: 10.95 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.835e-06/0.5145, allocations: 0 / 0.5668 GB, free: 10.95 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001416/0.5147, allocations: 314.8 kB / 0.5671 GB, free: 10.63 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.036e-05/0.5147, allocations: 0 / 0.5671 GB, free: 10.63 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.215e-05/0.5147, allocations: 4 kB / 0.5671 GB, free: 10.63 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.84e-05/0.5147, allocations: 0 / 0.5671 GB, free: 10.63 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.5148, allocations: 4.062 kB / 0.5671 GB, free: 10.62 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.376e-05/0.5148, allocations: 33.64 kB / 0.5672 GB, free: 10.59 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.898e-05/0.5149, allocations: 7.281 kB / 0.5672 GB, free: 10.58 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.5149, allocations: 0 / 0.5672 GB, free: 10.58 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.878e-05/0.5149, allocations: 4 kB / 0.5672 GB, free: 10.58 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.402e-06/0.5149, allocations: 0 / 0.5672 GB, free: 10.58 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.226e-06/0.5149, allocations: 3.984 kB / 0.5672 GB, free: 10.57 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.719e-05/0.515, allocations: 0 / 0.5672 GB, free: 10.57 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.079e-05/0.515, allocations: 3.906 kB / 0.5672 GB, free: 10.57 MB / 410.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 () * 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 8.596e-05/0.5151, allocations: 59.42 kB / 0.5673 GB, free: 10.5 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.164e-05/0.5151, allocations: 4 kB / 0.5673 GB, free: 10.5 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.888e-05/0.5151, allocations: 3 kB / 0.5673 GB, free: 10.49 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.5151, allocations: 0 / 0.5673 GB, free: 10.49 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.5152, allocations: 0 / 0.5673 GB, free: 10.49 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.5152, allocations: 0 / 0.5673 GB, free: 10.49 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001161/0.5153, allocations: 126.2 kB / 0.5674 GB, free: 10.33 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.028e-06/0.5153, allocations: 7.984 kB / 0.5674 GB, free: 10.32 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.996e-06/0.5153, allocations: 4 kB / 0.5674 GB, free: 10.32 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.5153, allocations: 0 / 0.5674 GB, free: 10.32 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.124e-05/0.5154, allocations: 0 / 0.5674 GB, free: 10.32 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.5154, allocations: 7.938 kB / 0.5674 GB, free: 10.31 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.5154, allocations: 0 / 0.5674 GB, free: 10.31 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 9.695e-05/0.5155, allocations: 61.08 kB / 0.5675 GB, free: 10.23 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.315e-05/0.5155, allocations: 85 kB / 0.5675 GB, free: 10.13 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.704e-05/0.5156, allocations: 0 / 0.5675 GB, free: 10.13 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.366e-05/0.5156, allocations: 0 / 0.5675 GB, free: 10.13 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.109e-05/0.5156, allocations: 4 kB / 0.5675 GB, free: 10.12 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.939e-06/0.5156, allocations: 4.031 kB / 0.5675 GB, free: 10.12 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.167e-05/0.5157, allocations: 79.28 kB / 0.5676 GB, free: 10.04 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002336/0.5159, allocations: 8 kB / 0.5676 GB, free: 10.04 MB / 410.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) * 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.0001692/0.5161, allocations: 96.34 kB / 0.5677 GB, free: 9.934 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 9.351e-05/0.5162, allocations: 29.7 kB / 0.5678 GB, free: 9.898 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.5162, allocations: 0 / 0.5678 GB, free: 9.898 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 2.65e-05/0.5163, allocations: 25.7 kB / 0.5678 GB, free: 9.867 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001229/0.5164, allocations: 12.06 kB / 0.5678 GB, free: 9.855 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001913/0.5166, allocations: 73.7 kB / 0.5679 GB, free: 9.754 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003223/0.517, allocations: 0.6802 MB / 0.5685 GB, free: 9.047 MB / 410.7 MB Notification: Performance of SimCode: time 9.72e-07/0.517, allocations: 0 / 0.5685 GB, free: 9.047 MB / 410.7 MB Notification: Performance of Templates: time 0.00208/0.5191, allocations: 363.3 kB / 0.5689 GB, free: 8.691 MB / 410.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