Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Actions2.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Modelica_StateGraph2 with version 2.0.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica_StateGraph2 2.0.3/package.mo) Running command: "" <> buildModelFMU(Modelica_StateGraph2.Examples.BasicStateGraphs.Actions2,fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2_Examples_BasicStateGraphs_Actions2",fmuType="me",version="2.0",platforms={"static"}) [: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 loadModel(Modelica_StateGraph2): time 2.029/2.029, allocations: 208.4 MB / 215.7 MB, free: 20 kB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1842/2.214, allocations: 53.39 MB / 269.1 MB, free: 10.53 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2663/2.48, allocations: 47.78 MB / 316.9 MB, free: 15.14 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1347/2.615, allocations: 71.29 MB / 388.2 MB, free: 7.742 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001985/2.615, allocations: 47.98 kB / 388.2 MB, free: 7.695 MB / 330.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica_StateGraph2 2.0.3/package.mo:12150:5-12156:3:writable] Warning: Usage of non-standard operator (not specified in the Modelica specification): Connections.uniqueRoot. Functionality might be partially supported but is not guaranteed. Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 0.0447/2.66, allocations: 8.416 MB / 396.7 MB, free: 15.21 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.919e-05/2.66, allocations: 8 kB / 396.7 MB, free: 15.2 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003641/2.66, allocations: 75.16 kB / 396.7 MB, free: 15.12 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001769/2.662, allocations: 437.5 kB / 397.2 MB, free: 14.66 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.93e-05/2.662, allocations: 35.89 kB / 397.2 MB, free: 14.62 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001949/2.662, allocations: 40 kB / 397.2 MB, free: 14.59 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00185/2.664, allocations: 459.9 kB / 397.7 MB, free: 14.14 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001937/2.666, allocations: 0.6944 MB / 398.4 MB, free: 13.37 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.847e-05/2.666, allocations: 0 / 398.4 MB, free: 13.37 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.384e-05/2.666, allocations: 4 kB / 398.4 MB, free: 13.37 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.857e-05/2.666, allocations: 29.3 kB / 398.4 MB, free: 13.34 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005449/2.672, allocations: 2.964 MB / 401.4 MB, free: 10.14 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009705/2.673, allocations: 0.6332 MB / 402 MB, free: 9.402 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003159/2.673, allocations: 113.7 kB / 402.1 MB, free: 9.289 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001545/2.673, allocations: 101.1 kB / 402.2 MB, free: 9.172 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004211/2.674, allocations: 169.8 kB / 402.4 MB, free: 8.992 MB / 346.7 MB Notification: Performance of pre-optimization done (n=46): time 3.136e-06/2.674, allocations: 0 / 402.4 MB, free: 8.992 MB / 346.7 MB Notification: Performance of matching and sorting (n=46): time 0.0009051/2.675, allocations: 265.5 kB / 402.6 MB, free: 8.727 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001426/2.675, allocations: 195.9 kB / 402.8 MB, free: 8.492 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006183/2.675, allocations: 322.8 kB / 403.2 MB, free: 8.172 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001095/2.676, allocations: 41.69 kB / 403.2 MB, free: 8.125 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003028/2.676, allocations: 264.2 kB / 403.5 MB, free: 7.859 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001816/2.676, allocations: 94.91 kB / 403.5 MB, free: 7.766 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.853e-05/2.676, allocations: 3.938 kB / 403.6 MB, free: 7.762 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000189/2.676, allocations: 354.8 kB / 403.9 MB, free: 7.406 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003895/2.677, allocations: 121.5 kB / 404 MB, free: 7.285 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006374/2.677, allocations: 391 kB / 404.4 MB, free: 6.785 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005959/2.678, allocations: 182 kB / 404.6 MB, free: 6.609 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.714e-06/2.678, allocations: 0 / 404.6 MB, free: 6.609 MB / 346.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001471/2.68, allocations: 0.4961 MB / 405.1 MB, free: 6.109 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.536e-05/2.68, allocations: 8 kB / 405.1 MB, free: 6.102 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.008e-05/2.68, allocations: 8 kB / 405.1 MB, free: 6.094 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.69e-05/2.68, allocations: 15.91 kB / 405.1 MB, free: 6.078 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002426/2.68, allocations: 47.78 kB / 405.2 MB, free: 6.031 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.619e-05/2.68, allocations: 19.92 kB / 405.2 MB, free: 6.012 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006148/2.681, allocations: 28.36 kB / 405.2 MB, free: 5.984 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.607e-05/2.681, allocations: 36 kB / 405.2 MB, free: 5.949 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 93 ($PRE.T1.enableFire,$PRE.T2.enableFire,$PRE.T3.enableFire,$PRE.T4.enableFire,$PRE.T5.enableFire,$PRE.initialStep.oldActive,initialStep.oldActive,$PRE.step2.oldActive,step2.oldActive,$PRE.step3.oldActive,step3.oldActive,$PRE.step4.oldActive,step4.oldActive,$PRE.step1.oldActive,step1.oldActive,initialStep.node.resume,initialStep.node.suspend,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.initialStep.newActive,initialStep.newActive,initialStep.inport_fire,initialStep.outport_fire,T1.fire,T1.enableFire,$PRE.T1.t_start,T1.t_start,$PRE.step2.newActive,step2.newActive,step2.inport_fire,step2.outport_fire,T2.fire,T2.enableFire,$PRE.T2.t_start,T2.t_start,$PRE.step3.newActive,step3.newActive,step3.inport_fire,step3.outport_fire,T3.fire,T3.enableFire,$PRE.T3.t_start,T3.t_start,$PRE.step4.newActive,step4.newActive,step4.inport_fire,step4.outport_fire,T4.fire,T4.enableFire,$PRE.T4.t_start,T4.t_start,T5.fire,T5.enableFire,$PRE.T5.t_start,T5.t_start,$PRE.step1.newActive,step1.newActive,step1.inport_fire,step1.outport_fire,$PRE.risingEdge.u,risingEdge.u,set1.u[1],set1.u[2],$PRE.set1.y,set1.y,set1.firstActiveIndex,$PRE.fallingEdge.not_u,fallingEdge.not_u,set1.expr[1],set1.expr[2],T5.condition,T4.condition,T3.condition,T2.condition,T1.condition,T5.outPort.checkOneDelayedTransitionPerLoop,step1.outPort[1].checkOneDelayedTransitionPerLoop,step1.inPort[1].checkUnaryConnection,T4.outPort.checkOneDelayedTransitionPerLoop,step4.outPort[1].checkOneDelayedTransitionPerLoop,step4.inPort[1].checkUnaryConnection,T2.outPort.checkOneDelayedTransitionPerLoop,step3.outPort[1].checkOneDelayedTransitionPerLoop,initialStep.inPort[1].checkUnaryConnection,T3.outPort.checkOneDelayedTransitionPerLoop,initialStep.outPort[1].checkOneDelayedTransitionPerLoop,step3.inPort[1].checkUnaryConnection,T1.outPort.checkOneDelayedTransitionPerLoop,step2.outPort[1].checkOneDelayedTransitionPerLoop,step2.inPort[1].checkUnaryConnection) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (93): * Single equations (assignments): 93 * 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 0.0002752/2.681, allocations: 176.6 kB / 405.4 MB, free: 5.77 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001115/2.681, allocations: 43.44 kB / 405.4 MB, free: 5.727 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009906/2.682, allocations: 285.8 kB / 405.7 MB, free: 5.434 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.201e-05/2.682, allocations: 7.984 kB / 405.7 MB, free: 5.426 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.056e-05/2.682, allocations: 4 kB / 405.7 MB, free: 5.422 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.153e-05/2.682, allocations: 3.984 kB / 405.7 MB, free: 5.418 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002334/2.685, allocations: 0.8504 MB / 406.6 MB, free: 4.52 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.861e-06/2.685, allocations: 0 / 406.6 MB, free: 4.52 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.275e-05/2.685, allocations: 11.92 kB / 406.6 MB, free: 4.508 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.263e-05/2.685, allocations: 4 kB / 406.6 MB, free: 4.504 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.451e-05/2.685, allocations: 7.984 kB / 406.6 MB, free: 4.496 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.795e-06/2.685, allocations: 8 kB / 406.6 MB, free: 4.488 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/2.685, allocations: 0 / 406.6 MB, free: 4.488 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008401/2.686, allocations: 370.5 kB / 407 MB, free: 4.109 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009775/2.687, allocations: 0.7453 MB / 407.7 MB, free: 3.344 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002431/2.687, allocations: 136.6 kB / 407.9 MB, free: 3.191 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.349e-05/2.687, allocations: 8 kB / 407.9 MB, free: 3.184 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004624/2.687, allocations: 23.97 kB / 407.9 MB, free: 3.16 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001683/2.688, allocations: 43.92 kB / 407.9 MB, free: 3.117 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.885e-05/2.688, allocations: 19.94 kB / 408 MB, free: 3.098 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.000302/2.688, allocations: 191.1 kB / 408.1 MB, free: 2.91 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001616/2.69, allocations: 87.91 kB / 408.2 MB, free: 2.824 MB / 346.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: 46 (initialStep.inport_fire,initialStep.outport_fire,T1.enableFire,step2.outport_fire,T2.enableFire,step3.outport_fire,T4.enableFire,step4.outport_fire,T5.enableFire,T3.enableFire,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,initialStep.newActive,initialStep.oldActive,T1.fire,T1.t_start,step2.newActive,step2.oldActive,step2.inport_fire,T2.fire,T2.t_start,step3.newActive,step3.oldActive,step3.inport_fire,T3.fire,T3.t_start,step4.newActive,step4.oldActive,step4.inport_fire,T4.fire,T4.t_start,T5.fire,T5.t_start,step1.newActive,step1.oldActive,step1.inport_fire,step1.outport_fire,risingEdge.u,set1.u[1],set1.u[2],set1.y,set1.firstActiveIndex,fallingEdge.not_u) * Number of discrete states: 8 (step1.newActive,step4.newActive,step3.newActive,fallingEdge.not_u,step2.newActive,initialStep.newActive,risingEdge.u,set1.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * 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.0003264/2.69, allocations: 130.3 kB / 408.4 MB, free: 2.688 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001019/2.691, allocations: 366.2 kB / 408.7 MB, free: 2.332 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.057e-06/2.691, allocations: 0 / 408.7 MB, free: 2.332 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004067/2.691, allocations: 143.6 kB / 408.9 MB, free: 2.191 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004352/2.692, allocations: 33.08 kB / 408.9 MB, free: 2.16 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001948/2.694, allocations: 0.5994 MB / 409.5 MB, free: 1.535 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008372/2.695, allocations: 0.9455 MB / 410.4 MB, free: 0.5664 MB / 346.7 MB Notification: Performance of SimCode: time 1.253e-06/2.695, allocations: 0 / 410.4 MB, free: 0.5664 MB / 346.7 MB