Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_3_2_2_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.981/1.981, allocations: 194.9 MB / 211.1 MB, free: 8.566 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005533/0.0005533, allocations: 8 kB / 264 MB, free: 3.504 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3259/0.3265, allocations: 44.51 MB / 308.5 MB, free: 12.68 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1296/0.4562, allocations: 71.51 MB / 380.1 MB, free: 5.074 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002253/0.4565, allocations: 67.97 kB / 380.1 MB, free: 5.008 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01272/0.4693, allocations: 2.957 MB / 383.1 MB, free: 2.023 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.4693, allocations: 0 / 383.1 MB, free: 2.023 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.866e-05/0.4693, allocations: 4 kB / 383.1 MB, free: 2.02 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 58 * Number of variables: 58 Notification: Performance of Generate backend data structure: time 0.0007452/0.4701, allocations: 464.2 kB / 383.5 MB, free: 1.523 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 9.04e-05/0.4702, allocations: 8.031 kB / 383.6 MB, free: 1.516 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.128e-05/0.4703, allocations: 62.48 kB / 383.6 MB, free: 1.445 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.818e-05/0.4704, allocations: 19.81 kB / 383.6 MB, free: 1.426 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003269/0.4707, allocations: 226.8 kB / 383.9 MB, free: 1.164 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.04e-05/0.4708, allocations: 20.56 kB / 383.9 MB, free: 1.145 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.135e-05/0.4708, allocations: 27.98 kB / 383.9 MB, free: 1.117 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006453/0.4715, allocations: 266 kB / 384.2 MB, free: 0.8359 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.637e-05/0.4715, allocations: 0 / 384.2 MB, free: 0.8359 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.614e-05/0.4716, allocations: 12 kB / 384.2 MB, free: 0.8242 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.242e-05/0.4716, allocations: 4 kB / 384.2 MB, free: 0.8203 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004757/0.4721, allocations: 165.6 kB / 384.3 MB, free: 0.6602 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001587/0.4737, allocations: 0.9523 MB / 385.3 MB, free: 15.63 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004206/0.4741, allocations: 157.6 kB / 385.4 MB, free: 15.47 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.381e-05/0.4742, allocations: 4.188 kB / 385.4 MB, free: 15.47 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002687/0.4745, allocations: 115.5 kB / 385.6 MB, free: 15.34 MB / 330.7 MB Notification: Performance of pre-optimization done (n=23): time 3.226e-06/0.4745, allocations: 3.938 kB / 385.6 MB, free: 15.34 MB / 330.7 MB Notification: Performance of matching and sorting (n=23): time 0.0006283/0.4751, allocations: 209.3 kB / 385.8 MB, free: 15.13 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.422e-05/0.4752, allocations: 55.34 kB / 385.8 MB, free: 15.06 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000173/0.4754, allocations: 152.6 kB / 386 MB, free: 14.91 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.555e-05/0.4754, allocations: 33.7 kB / 386 MB, free: 14.87 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001178/0.4756, allocations: 148.1 kB / 386.1 MB, free: 14.73 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.478e-05/0.4756, allocations: 59.34 kB / 386.2 MB, free: 14.67 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.982e-05/0.4757, allocations: 8 kB / 386.2 MB, free: 14.66 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.4758, allocations: 322.8 kB / 386.5 MB, free: 14.34 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001966/0.476, allocations: 64.62 kB / 386.6 MB, free: 14.27 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002524/0.4763, allocations: 125.9 kB / 386.7 MB, free: 14.12 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002082/0.4765, allocations: 75.92 kB / 386.8 MB, free: 14.04 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.432e-06/0.4765, allocations: 4 kB / 386.8 MB, free: 14.04 MB / 330.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006345/0.4772, allocations: 253.2 kB / 387 MB, free: 13.79 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.433e-05/0.4772, allocations: 10.19 kB / 387.1 MB, free: 13.78 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.285e-05/0.4772, allocations: 8 kB / 387.1 MB, free: 13.77 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.696e-05/0.4773, allocations: 4 kB / 387.1 MB, free: 13.77 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002518/0.4775, allocations: 35.91 kB / 387.1 MB, free: 13.73 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.413e-05/0.4776, allocations: 7.938 kB / 387.1 MB, free: 13.72 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000168/0.4778, allocations: 16.19 kB / 387.1 MB, free: 13.71 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.378e-05/0.4778, allocations: 16 kB / 387.1 MB, free: 13.69 MB / 330.7 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 () * Number of clocked 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 0.0002318/0.4781, allocations: 156.3 kB / 387.3 MB, free: 13.53 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.587e-05/0.4781, allocations: 19.77 kB / 387.3 MB, free: 13.51 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005261/0.4787, allocations: 194.6 kB / 387.5 MB, free: 13.3 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.021e-06/0.4787, allocations: 0 / 387.5 MB, free: 13.3 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.4787, allocations: 0 / 387.5 MB, free: 13.3 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.415e-05/0.4787, allocations: 7.969 kB / 387.5 MB, free: 13.3 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001109/0.4798, allocations: 0.5837 MB / 388.1 MB, free: 12.65 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.4799, allocations: 3.938 kB / 388.1 MB, free: 12.65 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001312/0.48, allocations: 12 kB / 388.1 MB, free: 12.64 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.511e-06/0.48, allocations: 0 / 388.1 MB, free: 12.64 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.663e-05/0.4801, allocations: 7.984 kB / 388.1 MB, free: 12.63 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.861e-06/0.4801, allocations: 7.938 kB / 388.1 MB, free: 12.62 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.4801, allocations: 0 / 388.1 MB, free: 12.62 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004595/0.4806, allocations: 279.1 kB / 388.4 MB, free: 12.33 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.482e-05/0.4806, allocations: 96.84 kB / 388.5 MB, free: 12.22 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.295e-05/0.4807, allocations: 8 kB / 388.5 MB, free: 12.21 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001377/0.4808, allocations: 4 kB / 388.5 MB, free: 12.21 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.809e-05/0.4809, allocations: 19.97 kB / 388.5 MB, free: 12.19 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.937e-05/0.481, allocations: 11.98 kB / 388.5 MB, free: 12.18 MB / 330.7 MB Notification: Performance of sorting global known variables: time 8.5e-05/0.4811, allocations: 95.27 kB / 388.6 MB, free: 12.08 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.4811, allocations: 4 kB / 388.6 MB, free: 12.08 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004324/0.4815, allocations: 44 kB / 388.7 MB, free: 12.04 MB / 330.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: 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) * Number of clocked states: 0 () * 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.0009136/0.4825, allocations: 0.8222 MB / 389.5 MB, free: 11.19 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005263/0.483, allocations: 176.2 kB / 389.7 MB, free: 11.02 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.483, allocations: 0 / 389.7 MB, free: 11.02 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002137/0.4833, allocations: 87.78 kB / 389.8 MB, free: 10.93 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002996/0.4836, allocations: 15.98 kB / 389.8 MB, free: 10.91 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003066/0.4866, allocations: 2.323 MB / 392.1 MB, free: 8.508 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004106/0.4871, allocations: 0.7406 MB / 392.8 MB, free: 7.742 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.000152/0.4873, allocations: 29.88 kB / 392.9 MB, free: 7.715 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001601/0.4874, allocations: 63.47 kB / 392.9 MB, free: 7.652 MB / 330.7 MB Notification: Performance of SimCode: time 1.493e-06/0.4875, allocations: 4 kB / 392.9 MB, free: 7.648 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0278/0.5153, allocations: 3.313 MB / 396.2 MB, free: 4.375 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003562/0.5157, allocations: 185.6 kB / 396.4 MB, free: 4.129 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.826/3.342, allocations: 3.938 kB / 396.4 MB, free: 4.125 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat does not exist to compare? outputFormat=mat