Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.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.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal") translateModel(ModelicaTest.Utilities.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal") [: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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008925/0.0008926, allocations: 188 kB / 7.801 MB, free: 2.441 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.009/1.009, allocations: 205.2 MB / 213.4 MB, free: 13.92 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.0007684/0.0007684, allocations: 99.11 kB / 261.4 MB, free: 13.54 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.1486/0.1486, allocations: 43.5 MB / 352.8 MB, free: 1.965 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.37e-06/5.39e-06, allocations: 4 kB / 417.7 MB, free: 40.56 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2281/0.2281, allocations: 58.84 MB / 476.5 MB, free: 5.301 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1002/0.3283, allocations: 83.92 MB / 0.5473 GB, free: 15.12 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001837/0.3286, allocations: 55.97 kB / 0.5474 GB, free: 15.07 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.003826/0.3324, allocations: 1.349 MB / 0.5487 GB, free: 13.72 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.539e-06/0.3324, allocations: 4 kB / 0.5487 GB, free: 13.71 MB / 394.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.000234/0.3327, allocations: 364 kB / 0.5491 GB, free: 13.31 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.259e-05/0.3327, allocations: 8.031 kB / 0.5491 GB, free: 13.3 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.359e-05/0.3327, allocations: 0 / 0.5491 GB, free: 13.3 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.18e-05/0.3328, allocations: 163.1 kB / 0.5492 GB, free: 13.1 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.014e-05/0.3328, allocations: 0 / 0.5492 GB, free: 13.1 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.614e-06/0.3328, allocations: 4 kB / 0.5492 GB, free: 13.1 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 3.087e-05/0.3329, allocations: 0 / 0.5492 GB, free: 13.1 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.159e-05/0.3329, allocations: 25.7 kB / 0.5492 GB, free: 13.07 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.352e-06/0.3329, allocations: 4 kB / 0.5493 GB, free: 13.06 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.135e-06/0.333, allocations: 7.906 kB / 0.5493 GB, free: 13.05 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.777e-06/0.333, allocations: 0 / 0.5493 GB, free: 13.05 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.653e-05/0.3331, allocations: 122.2 kB / 0.5494 GB, free: 12.9 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.089e-05/0.3331, allocations: 26.5 kB / 0.5494 GB, free: 12.86 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.533e-05/0.3331, allocations: 8.953 kB / 0.5494 GB, free: 12.85 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.46e-06/0.3331, allocations: 0 / 0.5494 GB, free: 12.85 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.419e-05/0.3332, allocations: 60.27 kB / 0.5495 GB, free: 12.78 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 8.61e-07/0.3332, allocations: 0 / 0.5495 GB, free: 12.78 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.000126/0.3333, allocations: 29.7 kB / 0.5495 GB, free: 12.74 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.06e-05/0.3334, allocations: 77.11 kB / 0.5496 GB, free: 12.65 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.137e-05/0.3334, allocations: 85 kB / 0.5496 GB, free: 12.56 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.02e-05/0.3334, allocations: 25.7 kB / 0.5497 GB, free: 12.53 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.309e-05/0.3334, allocations: 80.14 kB / 0.5498 GB, free: 12.45 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.598e-05/0.3335, allocations: 7.906 kB / 0.5498 GB, free: 12.44 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.933e-06/0.3335, allocations: 0 / 0.5498 GB, free: 12.44 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001018/0.3336, allocations: 322.9 kB / 0.5501 GB, free: 12.11 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.3e-06/0.3336, allocations: 0 / 0.5501 GB, free: 12.11 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.129e-06/0.3336, allocations: 0 / 0.5501 GB, free: 12.11 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.8e-05/0.3336, allocations: 7.938 kB / 0.5501 GB, free: 12.11 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.3336, allocations: 0 / 0.5501 GB, free: 12.11 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.426e-05/0.3337, allocations: 32.77 kB / 0.5501 GB, free: 12.07 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.017e-06/0.3337, allocations: 4 kB / 0.5501 GB, free: 12.07 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.549e-06/0.3337, allocations: 0 / 0.5501 GB, free: 12.07 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.165e-05/0.3337, allocations: 4.094 kB / 0.5501 GB, free: 12.06 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.084e-06/0.3338, allocations: 4 kB / 0.5501 GB, free: 12.06 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.156e-06/0.3338, allocations: 0 / 0.5501 GB, free: 12.06 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.818e-06/0.3338, allocations: 0 / 0.5501 GB, free: 12.06 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.047e-06/0.3338, allocations: 7.891 kB / 0.5501 GB, free: 12.05 MB / 394.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 7.965e-05/0.3339, allocations: 126.7 kB / 0.5502 GB, free: 11.91 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.526e-06/0.3339, allocations: 4 kB / 0.5502 GB, free: 11.91 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.203e-05/0.3339, allocations: 6.984 kB / 0.5503 GB, free: 11.9 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.02e-07/0.3339, allocations: 0 / 0.5503 GB, free: 11.9 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.3339, allocations: 0 / 0.5503 GB, free: 11.9 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.455e-06/0.3339, allocations: 7.938 kB / 0.5503 GB, free: 11.89 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.155e-05/0.334, allocations: 130.1 kB / 0.5504 GB, free: 11.73 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.82e-07/0.334, allocations: 0 / 0.5504 GB, free: 11.73 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.11e-07/0.334, allocations: 4 kB / 0.5504 GB, free: 11.72 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.072e-06/0.334, allocations: 0 / 0.5504 GB, free: 11.72 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.52e-06/0.334, allocations: 0 / 0.5504 GB, free: 11.72 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.02e-07/0.334, allocations: 0 / 0.5504 GB, free: 11.72 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.334, allocations: 3.938 kB / 0.5504 GB, free: 11.72 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 7.686e-05/0.3341, allocations: 65.05 kB / 0.5505 GB, free: 11.64 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.906e-05/0.3342, allocations: 85.09 kB / 0.5505 GB, free: 11.54 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.151e-05/0.3342, allocations: 0 / 0.5505 GB, free: 11.54 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.444e-06/0.3342, allocations: 0 / 0.5505 GB, free: 11.54 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.364e-05/0.3342, allocations: 4 kB / 0.5505 GB, free: 11.53 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.244e-06/0.3342, allocations: 0 / 0.5505 GB, free: 11.53 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.081e-05/0.3343, allocations: 75.28 kB / 0.5506 GB, free: 11.46 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000209/0.3345, allocations: 35.92 kB / 0.5506 GB, free: 11.42 MB / 394.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.0004001/0.3349, allocations: 243 kB / 0.5509 GB, free: 11.2 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 6.235e-05/0.3349, allocations: 41.62 kB / 0.5509 GB, free: 11.15 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.335, allocations: 0 / 0.5509 GB, free: 11.15 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 1.72e-05/0.335, allocations: 29.7 kB / 0.5509 GB, free: 11.11 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.114e-05/0.3351, allocations: 4.125 kB / 0.551 GB, free: 11.11 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001071/0.3352, allocations: 40.08 kB / 0.551 GB, free: 11.05 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002236/0.3354, allocations: 0.688 MB / 0.5517 GB, free: 10.33 MB / 394.7 MB Notification: Performance of SimCode: time 2.4e-07/0.3354, allocations: 0 / 0.5517 GB, free: 10.33 MB / 394.7 MB Notification: Performance of Templates: time 0.002465/0.3379, allocations: 0.7711 MB / 0.5524 GB, free: 9.562 MB / 394.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.sim & ./ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestInternal/TestInternal.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestInternal.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches