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_Variant3.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_Variant3,fileNamePrefix="Modelica_3_2_2_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.316/2.316, allocations: 194.9 MB / 211.1 MB, free: 7.594 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004953/0.0004953, allocations: 8 kB / 264.1 MB, free: 2.512 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3799/0.3804, allocations: 44.5 MB / 308.6 MB, free: 12.64 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1385/0.519, allocations: 71.52 MB / 380.1 MB, free: 5.023 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002587/0.5194, allocations: 71.97 kB / 380.2 MB, free: 4.953 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01219/0.5316, allocations: 2.934 MB / 383.1 MB, free: 1.996 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.5316, allocations: 0 / 383.1 MB, free: 1.996 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.809e-05/0.5316, allocations: 4 kB / 383.1 MB, free: 1.992 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.0007647/0.5324, allocations: 444.4 kB / 383.5 MB, free: 1.512 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.725e-05/0.5325, allocations: 8.031 kB / 383.5 MB, free: 1.504 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.741e-05/0.5326, allocations: 62.53 kB / 383.6 MB, free: 1.434 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.85e-05/0.5327, allocations: 23.72 kB / 383.6 MB, free: 1.41 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000377/0.5331, allocations: 238.7 kB / 383.8 MB, free: 1.137 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.708e-05/0.5331, allocations: 24.56 kB / 383.9 MB, free: 1.113 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.736e-05/0.5332, allocations: 24 kB / 383.9 MB, free: 1.09 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006528/0.5339, allocations: 262 kB / 384.2 MB, free: 0.8125 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.475e-05/0.5339, allocations: 0 / 384.2 MB, free: 0.8125 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.716e-05/0.5339, allocations: 12 kB / 384.2 MB, free: 0.8008 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.052e-05/0.534, allocations: 4 kB / 384.2 MB, free: 0.7969 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004869/0.5345, allocations: 173.6 kB / 384.3 MB, free: 0.6289 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00162/0.5361, allocations: 0.9467 MB / 385.3 MB, free: 15.61 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004205/0.5366, allocations: 155.2 kB / 385.4 MB, free: 15.45 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.78e-05/0.5366, allocations: 4.188 kB / 385.4 MB, free: 15.45 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002848/0.5369, allocations: 111.6 kB / 385.5 MB, free: 15.32 MB / 330.7 MB Notification: Performance of pre-optimization done (n=23): time 1.919e-05/0.5369, allocations: 0 / 385.5 MB, free: 15.32 MB / 330.7 MB Notification: Performance of matching and sorting (n=23): time 0.0006497/0.5376, allocations: 213.9 kB / 385.8 MB, free: 15.11 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.085e-05/0.5377, allocations: 55.41 kB / 385.8 MB, free: 15.04 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001756/0.5378, allocations: 140.8 kB / 385.9 MB, free: 14.9 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.06e-05/0.5379, allocations: 41.69 kB / 386 MB, free: 14.85 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001199/0.538, allocations: 136.2 kB / 386.1 MB, free: 14.72 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.667e-05/0.5381, allocations: 59.25 kB / 386.2 MB, free: 14.66 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.064e-05/0.5382, allocations: 8 kB / 386.2 MB, free: 14.65 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001524/0.5383, allocations: 322.8 kB / 386.5 MB, free: 14.33 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002062/0.5385, allocations: 64.61 kB / 386.6 MB, free: 14.26 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000262/0.5388, allocations: 141.8 kB / 386.7 MB, free: 14.09 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002172/0.539, allocations: 59.94 kB / 386.8 MB, free: 14.04 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.572e-06/0.5391, allocations: 8 kB / 386.8 MB, free: 14.03 MB / 330.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006354/0.5397, allocations: 249.2 kB / 387 MB, free: 13.78 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.26e-05/0.5398, allocations: 8 kB / 387 MB, free: 13.77 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.203e-05/0.5398, allocations: 4 kB / 387 MB, free: 13.77 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.66e-05/0.5398, allocations: 7.984 kB / 387 MB, free: 13.76 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002544/0.5401, allocations: 31.92 kB / 387.1 MB, free: 13.73 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.85e-05/0.5401, allocations: 12.22 kB / 387.1 MB, free: 13.71 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001752/0.5403, allocations: 19.84 kB / 387.1 MB, free: 13.7 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.622e-05/0.5404, allocations: 16 kB / 387.1 MB, free: 13.68 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,SetBoolean1.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.0002327/0.5406, allocations: 152.4 kB / 387.3 MB, free: 13.52 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.983e-05/0.5407, allocations: 15.86 kB / 387.3 MB, free: 13.5 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005584/0.5412, allocations: 194.2 kB / 387.5 MB, free: 13.3 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.808e-06/0.5413, allocations: 4 kB / 387.5 MB, free: 13.3 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.5413, allocations: 7.938 kB / 387.5 MB, free: 13.29 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/0.5413, allocations: 0 / 387.5 MB, free: 13.29 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001127/0.5424, allocations: 0.5875 MB / 388.1 MB, free: 12.64 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.5424, allocations: 0 / 388.1 MB, free: 12.64 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001345/0.5426, allocations: 12 kB / 388.1 MB, free: 12.63 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.093e-05/0.5426, allocations: 4 kB / 388.1 MB, free: 12.63 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.372e-05/0.5427, allocations: 7.984 kB / 388.1 MB, free: 12.62 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.991e-06/0.5427, allocations: 4 kB / 388.1 MB, free: 12.62 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.5427, allocations: 3.938 kB / 388.1 MB, free: 12.61 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004754/0.5432, allocations: 279.1 kB / 388.4 MB, free: 12.32 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.855e-05/0.5432, allocations: 89 kB / 388.5 MB, free: 12.22 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.811e-05/0.5433, allocations: 4 kB / 388.5 MB, free: 12.21 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001424/0.5434, allocations: 4 kB / 388.5 MB, free: 12.21 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001085/0.5436, allocations: 27.95 kB / 388.5 MB, free: 12.18 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.203e-05/0.5436, allocations: 12 kB / 388.5 MB, free: 12.17 MB / 330.7 MB Notification: Performance of sorting global known variables: time 8.995e-05/0.5437, allocations: 98.22 kB / 388.6 MB, free: 12.08 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.5437, allocations: 0 / 388.6 MB, free: 12.08 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004456/0.5442, allocations: 40 kB / 388.6 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,SetBoolean1.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.0009802/0.5452, allocations: 0.8182 MB / 389.5 MB, free: 11.2 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005388/0.5457, allocations: 175.8 kB / 389.6 MB, free: 11.02 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.5458, allocations: 0 / 389.6 MB, free: 11.02 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002246/0.546, allocations: 83.8 kB / 389.7 MB, free: 10.94 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002901/0.5463, allocations: 22.42 kB / 389.7 MB, free: 10.92 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002915/0.5492, allocations: 2.323 MB / 392.1 MB, free: 8.512 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004261/0.5497, allocations: 0.7328 MB / 392.8 MB, free: 7.754 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001652/0.5499, allocations: 29.94 kB / 392.8 MB, free: 7.727 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000164/0.5501, allocations: 63.42 kB / 392.9 MB, free: 7.664 MB / 330.7 MB Notification: Performance of SimCode: time 1.132e-06/0.5501, allocations: 0 / 392.9 MB, free: 7.664 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02985/0.5799, allocations: 3.296 MB / 396.2 MB, free: 4.406 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003071/0.5803, allocations: 184.7 kB / 396.4 MB, free: 4.16 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.618/3.199, allocations: 4 kB / 396.4 MB, free: 4.156 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat does not exist to compare? outputFormat=mat