Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_StateGraph2_Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant3.conf.json Using package Modelica_StateGraph2 with version 2.1.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica_StateGraph2.Examples.BasicStateGraphs.FirstExample_Variant3,fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2_Examples_BasicStateGraphs_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.01005/0.01005, allocations: 171 kB / 15.11 MB, free: 5.93 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.049/2.049, allocations: 223.3 MB / 239.1 MB, free: 1.719 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001107/0.001107, allocations: 104.6 kB / 290.3 MB, free: 13.87 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.107/0.107, allocations: 13.58 MB / 355 MB, free: 13.14 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004953/0.0004954, allocations: 15.94 kB / 419.3 MB, free: 87.36 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1058, allocations: 53.72 MB / 473 MB, free: 34.38 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4708/0.5766, allocations: 77.13 MB / 0.5372 GB, free: 16.48 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001787/0.5769, allocations: 47.25 kB / 0.5373 GB, free: 16.48 MB / 362.7 MB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo:12183:5-12189: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: Performance of FrontEnd - DAE generated: time 0.02447/0.6014, allocations: 5.285 MB / 0.5424 GB, free: 15.82 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.695e-06/0.6014, allocations: 0 / 0.5424 GB, free: 15.82 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.532e-05/0.6015, allocations: 13.66 kB / 0.5425 GB, free: 15.81 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.001292/0.6028, allocations: 0.591 MB / 0.543 GB, free: 15.34 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.072e-05/0.6029, allocations: 10.12 kB / 0.543 GB, free: 15.34 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001865/0.6031, allocations: 80.39 kB / 0.5431 GB, free: 15.3 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001734/0.6033, allocations: 47.72 kB / 0.5432 GB, free: 15.28 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008832/0.6042, allocations: 317.5 kB / 0.5435 GB, free: 15.06 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001226/0.6043, allocations: 64.09 kB / 0.5435 GB, free: 15.02 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001258/0.6045, allocations: 40.34 kB / 0.5436 GB, free: 15.02 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00159/0.6061, allocations: 492.5 kB / 0.544 GB, free: 14.86 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.815e-05/0.6061, allocations: 0 / 0.544 GB, free: 14.86 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.508e-05/0.6062, allocations: 17.66 kB / 0.544 GB, free: 14.86 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.299e-05/0.6063, allocations: 13.5 kB / 0.5441 GB, free: 14.86 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001175/0.6075, allocations: 297.9 kB / 0.5443 GB, free: 14.85 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003685/0.6112, allocations: 1.884 MB / 0.5462 GB, free: 13.57 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006297/0.6118, allocations: 417 kB / 0.5466 GB, free: 13.23 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001239/0.6131, allocations: 0.7271 MB / 0.5473 GB, free: 12.6 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003713/0.6135, allocations: 169.4 kB / 0.5475 GB, free: 12.49 MB / 362.7 MB Notification: Performance of pre-optimization done (n=23): time 3.397e-06/0.6135, allocations: 0 / 0.5475 GB, free: 12.49 MB / 362.7 MB Notification: Performance of matching and sorting (n=23): time 0.0008808/0.6144, allocations: 346.9 kB / 0.5478 GB, free: 12.31 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.991e-05/0.6145, allocations: 166.5 kB / 0.5479 GB, free: 12.12 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004311/0.615, allocations: 232.4 kB / 0.5482 GB, free: 12.01 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.46e-05/0.6151, allocations: 38.72 kB / 0.5482 GB, free: 11.98 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000182/0.6152, allocations: 208.5 kB / 0.5484 GB, free: 11.84 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.525e-05/0.6153, allocations: 45.39 kB / 0.5484 GB, free: 11.82 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.848e-05/0.6154, allocations: 9.469 kB / 0.5485 GB, free: 11.82 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.87e-05/0.6155, allocations: 331.7 kB / 0.5488 GB, free: 11.51 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002677/0.6158, allocations: 71.77 kB / 0.5488 GB, free: 11.51 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004027/0.6162, allocations: 224.7 kB / 0.5491 GB, free: 11.32 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003378/0.6166, allocations: 126.3 kB / 0.5492 GB, free: 11.27 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.654e-06/0.6166, allocations: 1.469 kB / 0.5492 GB, free: 11.27 MB / 362.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001006/0.6176, allocations: 354.6 kB / 0.5495 GB, free: 11.16 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.578e-05/0.6177, allocations: 38.14 kB / 0.5495 GB, free: 11.13 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.551e-05/0.6177, allocations: 5.562 kB / 0.5496 GB, free: 11.13 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.25e-05/0.6177, allocations: 7 kB / 0.5496 GB, free: 11.13 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001846/0.6179, allocations: 32.36 kB / 0.5496 GB, free: 11.12 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.091e-05/0.618, allocations: 6.422 kB / 0.5496 GB, free: 11.12 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000374/0.6184, allocations: 21.09 kB / 0.5496 GB, free: 11.12 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.732e-05/0.6184, allocations: 19.16 kB / 0.5496 GB, free: 11.12 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 47 ($PRE.T1.enableFire,$PRE.T2.enableFire,$PRE.T3.enableFire,$PRE.onDelay.u,$PRE.step3.oldActive,step3.oldActive,$PRE.step2.oldActive,step2.oldActive,$PRE.initialStep.oldActive,initialStep.oldActive,$whenCondition1,$whenCondition2,$whenCondition3,initialStep.active,$PRE.initialStep.newActive,initialStep.newActive,T1.condition,T1.enableFire,$PRE.step2.newActive,step2.newActive,step2.inport_fire,T2.enableFire,T2.conditionPort,$PRE.step3.newActive,step3.newActive,step3.inport_fire,step3.outport_fire,T3.fire,T3.enableFire,$PRE.T3.t_start,T3.t_start,onDelay.u,$PRE.onDelay.delaySignal,onDelay.delaySignal,$PRE.onDelay.t_next,onDelay.t_next,step3.outPort[1].checkOneDelayedTransitionPerLoop,initialStep.connectorNode.node.resume,initialStep.connectorNode.node.suspend,T3.condition,step3.inPort[1].checkUnaryConnection,T3.outPort.checkOneDelayedTransitionPerLoop,initialStep.outPort[1].checkOneDelayedTransitionPerLoop,step2.outPort[1].checkOneDelayedTransitionPerLoop,step2.inPort[1].checkUnaryConnection,initialStep.inPort[1].checkUnaryConnection,T2.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 47 * 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 0.0004522/0.6189, allocations: 238.7 kB / 0.5499 GB, free: 10.95 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.367e-05/0.619, allocations: 21.11 kB / 0.5499 GB, free: 10.94 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007342/0.6198, allocations: 247 kB / 0.5501 GB, free: 10.85 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.195e-06/0.6198, allocations: 3.219 kB / 0.5501 GB, free: 10.85 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.693e-06/0.6198, allocations: 0 / 0.5501 GB, free: 10.85 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.656e-06/0.6198, allocations: 5.547 kB / 0.5501 GB, free: 10.85 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00163/0.6215, allocations: 0.6697 MB / 0.5508 GB, free: 10.51 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.521e-06/0.6215, allocations: 1.344 kB / 0.5508 GB, free: 10.51 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.294e-05/0.6216, allocations: 11.22 kB / 0.5508 GB, free: 10.51 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.412e-06/0.6216, allocations: 0 / 0.5508 GB, free: 10.51 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.96e-05/0.6216, allocations: 4.75 kB / 0.5508 GB, free: 10.51 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.72e-06/0.6216, allocations: 1.219 kB / 0.5508 GB, free: 10.51 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.6217, allocations: 0 / 0.5508 GB, free: 10.51 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006696/0.6223, allocations: 330.8 kB / 0.5511 GB, free: 10.32 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001453/0.6225, allocations: 109.3 kB / 0.5512 GB, free: 10.22 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.211e-05/0.6226, allocations: 12.72 kB / 0.5512 GB, free: 10.22 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002766/0.6229, allocations: 12.52 kB / 0.5512 GB, free: 10.21 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001343/0.623, allocations: 21.52 kB / 0.5513 GB, free: 10.21 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.093e-05/0.6231, allocations: 10.78 kB / 0.5513 GB, free: 10.21 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002265/0.6233, allocations: 145.2 kB / 0.5514 GB, free: 10.14 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.6233, allocations: 4 kB / 0.5514 GB, free: 10.13 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008691/0.6242, allocations: 57.3 kB / 0.5515 GB, free: 10.13 MB / 362.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: 23 (T3.enableFire,$whenCondition1,$whenCondition2,$whenCondition3,initialStep.active,initialStep.newActive,initialStep.oldActive,T1.condition,T1.enableFire,step2.newActive,step2.oldActive,step2.inport_fire,T2.enableFire,T2.conditionPort,step3.newActive,step3.oldActive,step3.inport_fire,step3.outport_fire,T3.fire,T3.t_start,onDelay.u,onDelay.delaySignal,onDelay.t_next) * Number of discrete states: 7 (initialStep.newActive,step2.newActive,step3.newActive,onDelay.t_next,onDelay.delaySignal,$whenCondition3,$whenCondition2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * 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.001731/0.626, allocations: 0.8757 MB / 0.5523 GB, free: 25.42 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008588/0.6269, allocations: 267.6 kB / 0.5526 GB, free: 25.34 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.099e-06/0.6269, allocations: 1.594 kB / 0.5526 GB, free: 25.34 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003306/0.6272, allocations: 151.1 kB / 0.5527 GB, free: 25.27 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004381/0.6277, allocations: 20.53 kB / 0.5527 GB, free: 25.27 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005653/0.6334, allocations: 4.435 MB / 0.5571 GB, free: 21.48 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006453/0.6341, allocations: 0.8022 MB / 0.5579 GB, free: 20.79 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002871/0.6344, allocations: 35.61 kB / 0.5579 GB, free: 20.78 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002468/0.6346, allocations: 105.2 kB / 0.558 GB, free: 20.77 MB / 378.7 MB Notification: Performance of SimCode: time 1.192e-06/0.6347, allocations: 4 kB / 0.558 GB, free: 20.77 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04157/0.6762, allocations: 4.731 MB / 0.5626 GB, free: 20.32 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002635/0.6766, allocations: 202.8 kB / 0.5628 GB, free: 20.09 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.643/3.32, allocations: 0 / 0.5628 GB, free: 20.09 MB / 378.7 MB