Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.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) 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(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2") [: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.002526/0.002531, allocations: 186.7 kB / 8.152 MB, free: 0.8438 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.729/1.729, allocations: 205.2 MB / 213.7 MB, free: 8.578 MB / 178.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001243/0.001243, allocations: 90.23 kB / 261.7 MB, free: 5.145 MB / 210.8 MB Notification: Performance of FrontEnd - loaded program: time 8.065e-06/8.165e-06, allocations: 0 / 314.3 MB, free: 2.449 MB / 258.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09559/0.09562, allocations: 47.57 MB / 361.8 MB, free: 2.758 MB / 306.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2736/0.3693, allocations: 74.96 MB / 436.8 MB, free: 12.75 MB / 322.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002092/0.3695, allocations: 64.62 kB / 436.9 MB, free: 12.72 MB / 322.8 MB Notification: Performance of FrontEnd: time 0.01075/0.3803, allocations: 2.628 MB / 439.5 MB, free: 10.57 MB / 322.8 MB Notification: Performance of Transformations before backend: time 1.941e-05/0.3804, allocations: 11.83 kB / 439.5 MB, free: 10.56 MB / 322.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0006113/0.381, allocations: 445.9 kB / 439.9 MB, free: 10.1 MB / 322.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.295e-05/0.3811, allocations: 8.031 kB / 439.9 MB, free: 10.09 MB / 322.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.001e-05/0.3811, allocations: 23.72 kB / 440 MB, free: 10.07 MB / 322.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000307/0.3815, allocations: 223.3 kB / 440.2 MB, free: 9.824 MB / 322.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.674e-05/0.3815, allocations: 8 kB / 440.2 MB, free: 9.816 MB / 322.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.575e-05/0.3816, allocations: 16 kB / 440.2 MB, free: 9.801 MB / 322.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004421/0.382, allocations: 140.7 kB / 440.3 MB, free: 9.715 MB / 322.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004801/0.3825, allocations: 238.5 kB / 440.6 MB, free: 9.512 MB / 322.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.452e-05/0.3825, allocations: 0 / 440.6 MB, free: 9.512 MB / 322.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.066e-05/0.3826, allocations: 3.438 kB / 440.6 MB, free: 9.512 MB / 322.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.067e-05/0.3826, allocations: 8 kB / 440.6 MB, free: 9.504 MB / 322.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001294/0.3839, allocations: 0.9044 MB / 441.5 MB, free: 8.66 MB / 322.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003124/0.3843, allocations: 132.8 kB / 441.6 MB, free: 8.559 MB / 322.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001457/0.3844, allocations: 59.17 kB / 441.7 MB, free: 8.52 MB / 322.8 MB Notification: Performance of preOpt evalFunc (simulation): time 2.47e-05/0.3845, allocations: 5.219 kB / 441.7 MB, free: 8.516 MB / 322.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002034/0.3847, allocations: 105.2 kB / 441.8 MB, free: 8.426 MB / 322.8 MB Notification: Performance of pre-optimization done (n=23): time 3.246e-06/0.3847, allocations: 4 kB / 441.8 MB, free: 8.422 MB / 322.8 MB Notification: Performance of matching and sorting (n=23): time 0.0003904/0.3851, allocations: 141 kB / 441.9 MB, free: 8.301 MB / 322.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.158e-05/0.3851, allocations: 59.39 kB / 442 MB, free: 8.23 MB / 322.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001311/0.3853, allocations: 139.7 kB / 442.1 MB, free: 8.102 MB / 322.8 MB Notification: Performance of collectPreVariables (initialization): time 3.701e-05/0.3853, allocations: 33.64 kB / 442.1 MB, free: 8.066 MB / 322.8 MB Notification: Performance of collectInitialEqns (initialization): time 8.372e-05/0.3854, allocations: 205.4 kB / 442.3 MB, free: 7.871 MB / 322.8 MB Notification: Performance of collectInitialBindings (initialization): time 5.335e-05/0.3855, allocations: 53.58 kB / 442.4 MB, free: 7.828 MB / 322.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.425e-05/0.3855, allocations: 0 / 442.4 MB, free: 7.828 MB / 322.8 MB Notification: Performance of setup shared object (initialization): time 6.44e-05/0.3856, allocations: 326.2 kB / 442.7 MB, free: 7.504 MB / 322.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000151/0.3857, allocations: 55.28 kB / 442.8 MB, free: 7.469 MB / 322.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001858/0.3859, allocations: 123.8 kB / 442.9 MB, free: 7.344 MB / 322.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001624/0.3861, allocations: 59.61 kB / 443 MB, free: 7.305 MB / 322.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.3861, allocations: 0 / 443 MB, free: 7.305 MB / 322.8 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004572/0.3866, allocations: 211.2 kB / 443.2 MB, free: 7.129 MB / 322.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.757e-05/0.3866, allocations: 12.61 kB / 443.2 MB, free: 7.117 MB / 322.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-06/0.3866, allocations: 2.719 kB / 443.2 MB, free: 7.117 MB / 322.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.067e-05/0.3867, allocations: 7.938 kB / 443.2 MB, free: 7.109 MB / 322.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002441/0.3869, allocations: 35.48 kB / 443.2 MB, free: 7.078 MB / 322.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.357e-06/0.3869, allocations: 4 kB / 443.2 MB, free: 7.074 MB / 322.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001805/0.3871, allocations: 8.781 kB / 443.2 MB, free: 7.066 MB / 322.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.747e-05/0.3872, allocations: 15.98 kB / 443.2 MB, free: 7.051 MB / 322.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,$whenCondition2,$whenCondition1,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,initialStep.active,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,step.active,transition2.enableFire,$PRE.timer.entryTime,timer.entryTime,greaterEqual.y,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * 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.765e-05/0.3873, allocations: 48.23 kB / 443.3 MB, free: 7 MB / 322.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.813e-05/0.3873, allocations: 14.78 kB / 443.3 MB, free: 6.988 MB / 322.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004399/0.3878, allocations: 163.8 kB / 443.5 MB, free: 6.859 MB / 322.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/0.3878, allocations: 4 kB / 443.5 MB, free: 6.855 MB / 322.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.3878, allocations: 0 / 443.5 MB, free: 6.855 MB / 322.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.3878, allocations: 3.938 kB / 443.5 MB, free: 6.852 MB / 322.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001409/0.3893, allocations: 0.527 MB / 444 MB, free: 6.344 MB / 322.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.294e-06/0.3893, allocations: 3.094 kB / 444 MB, free: 6.344 MB / 322.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002157/0.3895, allocations: 19.8 kB / 444 MB, free: 6.328 MB / 322.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.022e-05/0.3896, allocations: 0 / 444 MB, free: 6.328 MB / 322.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.77e-05/0.3896, allocations: 0 / 444 MB, free: 6.328 MB / 322.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.164e-06/0.3896, allocations: 4 kB / 444 MB, free: 6.324 MB / 322.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.29e-06/0.3897, allocations: 1.625 kB / 444 MB, free: 6.324 MB / 322.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006195/0.3903, allocations: 260.5 kB / 444.3 MB, free: 6.086 MB / 322.8 MB Notification: Performance of postOpt removeConstants (simulation): time 6.267e-05/0.3904, allocations: 88.92 kB / 444.4 MB, free: 5.98 MB / 322.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.219e-05/0.3905, allocations: 0 / 444.4 MB, free: 5.98 MB / 322.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002738/0.3908, allocations: 4 kB / 444.4 MB, free: 5.977 MB / 322.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001401/0.3909, allocations: 19.95 kB / 444.4 MB, free: 5.957 MB / 322.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.92e-05/0.391, allocations: 11.81 kB / 444.4 MB, free: 5.949 MB / 322.8 MB Notification: Performance of sort global known variables: time 0.0001189/0.3911, allocations: 90.88 kB / 444.5 MB, free: 5.867 MB / 322.8 MB Notification: Performance of remove unused functions: time 0.0007828/0.3919, allocations: 47.64 kB / 444.5 MB, free: 5.824 MB / 322.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 19 (step.active,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.newActive,initialStep.oldActive,initialStep.active,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.enableFire,timer.entryTime,greaterEqual.y,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0002713/0.3922, allocations: 107.2 kB / 444.6 MB, free: 5.711 MB / 322.8 MB Notification: Performance of simCode: created initialization part: time 0.0007215/0.393, allocations: 161.8 kB / 444.8 MB, free: 5.594 MB / 322.8 MB Notification: Performance of simCode: created event and clocks part: time 4.529e-06/0.393, allocations: 0 / 444.8 MB, free: 5.594 MB / 322.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0002522/0.3933, allocations: 70.75 kB / 444.9 MB, free: 5.543 MB / 322.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004867/0.3938, allocations: 13.89 kB / 444.9 MB, free: 5.535 MB / 322.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001171/0.3949, allocations: 256.4 kB / 445.1 MB, free: 5.281 MB / 322.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005363/0.3955, allocations: 0.7615 MB / 445.9 MB, free: 4.496 MB / 322.8 MB Notification: Performance of SimCode: time 1.373e-06/0.3956, allocations: 0 / 445.9 MB, free: 4.496 MB / 322.8 MB Notification: Performance of Templates: time 0.008225/0.4038, allocations: 2.358 MB / 448.3 MB, free: 2.242 MB / 322.8 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","../files/Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches