Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.Actions3.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.Actions3,fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2_Examples_BasicStateGraphs_Actions3",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.004/2.004, allocations: 208.4 MB / 215.7 MB, free: 16 kB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1379/2.142, allocations: 53.4 MB / 269.1 MB, free: 10.5 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2506/2.392, allocations: 47.76 MB / 316.9 MB, free: 15.13 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1455/2.538, allocations: 71.4 MB / 388.3 MB, free: 7.621 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000172/2.538, allocations: 47.98 kB / 388.3 MB, free: 7.574 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: 178 * Number of variables: 178 Notification: Performance of Generate backend data structure: time 0.04066/2.579, allocations: 8.521 MB / 396.9 MB, free: 14.97 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.854e-05/2.579, allocations: 11.94 kB / 396.9 MB, free: 14.96 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002171/2.579, allocations: 75.16 kB / 396.9 MB, free: 14.88 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00135/2.581, allocations: 445.4 kB / 397.4 MB, free: 14.41 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.585e-05/2.581, allocations: 28 kB / 397.4 MB, free: 14.38 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001286/2.581, allocations: 47.98 kB / 397.5 MB, free: 14.34 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001567/2.582, allocations: 459.9 kB / 397.9 MB, free: 13.89 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001859/2.584, allocations: 0.7022 MB / 398.6 MB, free: 13.11 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.491e-05/2.584, allocations: 7.938 kB / 398.6 MB, free: 13.11 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000102/2.585, allocations: 7.906 kB / 398.6 MB, free: 13.1 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.723e-05/2.585, allocations: 25.31 kB / 398.6 MB, free: 13.07 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00556/2.59, allocations: 3.07 MB / 401.7 MB, free: 9.754 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009029/2.591, allocations: 0.632 MB / 402.4 MB, free: 9.02 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003052/2.591, allocations: 100.9 kB / 402.4 MB, free: 8.918 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001349/2.592, allocations: 85.09 kB / 402.5 MB, free: 8.816 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004087/2.592, allocations: 169.9 kB / 402.7 MB, free: 8.637 MB / 346.7 MB Notification: Performance of pre-optimization done (n=45): time 4.118e-06/2.592, allocations: 0 / 402.7 MB, free: 8.637 MB / 346.7 MB Notification: Performance of matching and sorting (n=45): time 0.0008865/2.593, allocations: 269.8 kB / 403 MB, free: 8.367 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001438/2.593, allocations: 199.9 kB / 403.2 MB, free: 8.129 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006126/2.594, allocations: 330.8 kB / 403.5 MB, free: 7.797 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.617e-05/2.594, allocations: 37.7 kB / 403.5 MB, free: 7.754 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000294/2.594, allocations: 264.1 kB / 403.8 MB, free: 7.492 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001358/2.594, allocations: 94.86 kB / 403.9 MB, free: 7.398 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.597e-05/2.594, allocations: 4 kB / 403.9 MB, free: 7.395 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001908/2.595, allocations: 350.8 kB / 404.2 MB, free: 7.043 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003633/2.595, allocations: 117.5 kB / 404.3 MB, free: 6.93 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006443/2.596, allocations: 385.1 kB / 404.7 MB, free: 6.43 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005807/2.596, allocations: 181.3 kB / 404.9 MB, free: 6.25 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.083e-06/2.596, allocations: 0 / 404.9 MB, free: 6.25 MB / 346.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001411/2.598, allocations: 495 kB / 405.4 MB, free: 5.758 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.134e-05/2.598, allocations: 4 kB / 405.4 MB, free: 5.754 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.854e-05/2.598, allocations: 12.09 kB / 405.4 MB, free: 5.742 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.627e-05/2.598, allocations: 12 kB / 405.4 MB, free: 5.73 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000293/2.598, allocations: 59.78 kB / 405.5 MB, free: 5.672 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.249e-05/2.598, allocations: 15.94 kB / 405.5 MB, free: 5.656 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005838/2.599, allocations: 35.86 kB / 405.5 MB, free: 5.621 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.414e-05/2.599, allocations: 36 kB / 405.5 MB, free: 5.586 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 91 ($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,$PRE.add1.y,add1.y,initialStep.node.resume,initialStep.node.suspend,$whenCondition7,$whenCondition6,$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.enableFire,$PRE.T2.t_start,T2.t_start,T2.firePort,$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.enableFire,$PRE.T5.t_start,T5.t_start,T5.firePort,$PRE.step1.newActive,step1.newActive,step1.inport_fire,step1.outport_fire,$PRE.set1.y,set1.y,set1.firstActiveIndex,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 (91): * Single equations (assignments): 91 * 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.0002589/2.599, allocations: 172.6 kB / 405.7 MB, free: 5.406 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001014/2.599, allocations: 39.52 kB / 405.7 MB, free: 5.367 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009466/2.6, allocations: 285.8 kB / 406 MB, free: 5.082 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.191e-05/2.6, allocations: 4 kB / 406 MB, free: 5.078 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.124e-06/2.6, allocations: 4 kB / 406 MB, free: 5.074 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.216e-05/2.6, allocations: 4.047 kB / 406 MB, free: 5.07 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002355/2.603, allocations: 0.8589 MB / 406.9 MB, free: 4.164 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.778e-06/2.603, allocations: 4 kB / 406.9 MB, free: 4.16 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.616e-05/2.603, allocations: 19.86 kB / 406.9 MB, free: 4.141 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.716e-06/2.603, allocations: 4 kB / 406.9 MB, free: 4.137 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.698e-05/2.603, allocations: 0 / 406.9 MB, free: 4.137 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.519e-06/2.603, allocations: 7.938 kB / 406.9 MB, free: 4.129 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.095e-06/2.603, allocations: 4 kB / 406.9 MB, free: 4.125 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008465/2.604, allocations: 366.4 kB / 407.3 MB, free: 3.75 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009594/2.605, allocations: 0.7376 MB / 408 MB, free: 2.992 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002429/2.605, allocations: 136.6 kB / 408.2 MB, free: 2.84 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.341e-05/2.605, allocations: 4 kB / 408.2 MB, free: 2.836 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004447/2.605, allocations: 35.86 kB / 408.2 MB, free: 2.801 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001664/2.606, allocations: 39.92 kB / 408.2 MB, free: 2.762 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.534e-05/2.606, allocations: 16 kB / 408.3 MB, free: 2.746 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0003039/2.606, allocations: 187.1 kB / 408.4 MB, free: 2.566 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001662/2.608, allocations: 95.98 kB / 408.5 MB, free: 2.473 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: 45 (initialStep.inport_fire,initialStep.outport_fire,T1.enableFire,step2.outport_fire,T2.firePort,T2.enableFire,step3.outport_fire,T4.enableFire,step4.outport_fire,T5.firePort,T5.enableFire,T3.enableFire,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,initialStep.newActive,initialStep.oldActive,T1.fire,T1.t_start,step2.newActive,step2.oldActive,step2.inport_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.t_start,step1.newActive,step1.oldActive,step1.inport_fire,step1.outport_fire,add1.y,set1.y,set1.firstActiveIndex) * Number of discrete states: 7 (step1.newActive,step4.newActive,step3.newActive,step2.newActive,initialStep.newActive,set1.y,add1.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 11 * 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.0002989/2.608, allocations: 126.3 kB / 408.7 MB, free: 2.34 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0009496/2.609, allocations: 354.9 kB / 409 MB, free: 1.996 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/2.609, allocations: 0 / 409 MB, free: 1.996 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003273/2.609, allocations: 131.9 kB / 409.1 MB, free: 1.867 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003819/2.61, allocations: 33.2 kB / 409.2 MB, free: 1.836 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001772/2.612, allocations: 0.6054 MB / 409.8 MB, free: 1.203 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007954/2.612, allocations: 0.9456 MB / 410.7 MB, free: 236 kB / 346.7 MB Notification: Performance of SimCode: time 9.42e-07/2.612, allocations: 0 / 410.7 MB, free: 236 kB / 346.7 MB