Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_3_2_1_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.793/1.793, allocations: 171.1 MB / 186.1 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005441/0.0005441, allocations: 8 kB / 233.3 MB, free: 2.285 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1126, allocations: 38.76 MB / 272.1 MB, free: 11.45 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3504/0.4631, allocations: 65.57 MB / 337.7 MB, free: 7.305 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000268/0.4634, allocations: 63.72 kB / 337.7 MB, free: 7.273 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01115/0.4746, allocations: 2.791 MB / 340.5 MB, free: 4.844 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.275e-06/0.4746, allocations: 7.938 kB / 340.5 MB, free: 4.836 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.851e-05/0.4747, allocations: 8.875 kB / 340.6 MB, free: 4.828 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0007861/0.4755, allocations: 449.3 kB / 341 MB, free: 4.352 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.671e-05/0.4755, allocations: 11.97 kB / 341 MB, free: 4.34 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.468e-05/0.4756, allocations: 60.42 kB / 341.1 MB, free: 4.285 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.914e-05/0.4757, allocations: 23.8 kB / 341.1 MB, free: 4.262 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003196/0.476, allocations: 215.8 kB / 341.3 MB, free: 4.027 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.661e-05/0.4761, allocations: 26.17 kB / 341.3 MB, free: 4.008 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.82e-05/0.4762, allocations: 27.08 kB / 341.3 MB, free: 3.988 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006016/0.4768, allocations: 227 kB / 341.6 MB, free: 3.816 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.813e-05/0.4768, allocations: 3.938 kB / 341.6 MB, free: 3.812 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.756e-05/0.4768, allocations: 14.98 kB / 341.6 MB, free: 3.805 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.069e-05/0.4769, allocations: 4 kB / 341.6 MB, free: 3.801 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004703/0.4773, allocations: 160 kB / 341.8 MB, free: 3.695 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001504/0.4789, allocations: 0.681 MB / 342.4 MB, free: 3.074 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004586/0.4794, allocations: 166.4 kB / 342.6 MB, free: 2.953 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.272e-05/0.4794, allocations: 4.188 kB / 342.6 MB, free: 2.949 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000289/0.4797, allocations: 116.8 kB / 342.7 MB, free: 2.848 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 3.517e-06/0.4797, allocations: 0 / 342.7 MB, free: 2.848 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0006443/0.4804, allocations: 221 kB / 342.9 MB, free: 2.676 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.742e-05/0.4805, allocations: 59.41 kB / 343 MB, free: 2.605 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001574/0.4806, allocations: 130.8 kB / 343.1 MB, free: 2.48 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.739e-05/0.4807, allocations: 41.06 kB / 343.2 MB, free: 2.441 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001074/0.4808, allocations: 127.9 kB / 343.3 MB, free: 2.32 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.621e-05/0.4809, allocations: 54.69 kB / 343.3 MB, free: 2.273 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.08e-05/0.4809, allocations: 10.25 kB / 343.3 MB, free: 2.27 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001488/0.4811, allocations: 325.7 kB / 343.7 MB, free: 1.949 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001901/0.4813, allocations: 63.81 kB / 343.7 MB, free: 1.902 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002426/0.4815, allocations: 130.8 kB / 343.8 MB, free: 1.777 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001951/0.4817, allocations: 68.61 kB / 343.9 MB, free: 1.734 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.496e-06/0.4818, allocations: 0 / 343.9 MB, free: 1.734 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005606/0.4823, allocations: 242.5 kB / 344.2 MB, free: 1.547 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.221e-05/0.4824, allocations: 5.406 kB / 344.2 MB, free: 1.543 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.09e-05/0.4824, allocations: 4 kB / 344.2 MB, free: 1.539 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.036e-05/0.4824, allocations: 4 kB / 344.2 MB, free: 1.535 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002249/0.4826, allocations: 30.73 kB / 344.2 MB, free: 1.508 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.218e-05/0.4827, allocations: 4.203 kB / 344.2 MB, free: 1.504 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001585/0.4828, allocations: 27.14 kB / 344.2 MB, free: 1.48 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.31e-05/0.4829, allocations: 15.12 kB / 344.2 MB, free: 1.469 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($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,transition2.fire,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.000208/0.4831, allocations: 157.5 kB / 344.4 MB, free: 1.324 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.64e-05/0.4832, allocations: 11.89 kB / 344.4 MB, free: 1.312 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000531/0.4837, allocations: 198 kB / 344.6 MB, free: 1.16 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.715e-06/0.4837, allocations: 7.938 kB / 344.6 MB, free: 1.152 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.4837, allocations: 0 / 344.6 MB, free: 1.152 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.4838, allocations: 4 kB / 344.6 MB, free: 1.148 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001095/0.4849, allocations: 0.5603 MB / 345.2 MB, free: 0.6211 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.4849, allocations: 0 / 345.2 MB, free: 0.6211 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001419/0.485, allocations: 23.3 kB / 345.2 MB, free: 0.6016 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.528e-05/0.4851, allocations: 4 kB / 345.2 MB, free: 0.5977 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.909e-05/0.4851, allocations: 3.688 kB / 345.2 MB, free: 0.5977 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.586e-06/0.4851, allocations: 4 kB / 345.2 MB, free: 0.5938 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.4851, allocations: 3.953 kB / 345.2 MB, free: 0.5898 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004503/0.4856, allocations: 271.6 kB / 345.5 MB, free: 356 kB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.72e-05/0.4857, allocations: 96.36 kB / 345.6 MB, free: 244 kB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.012e-05/0.4857, allocations: 7.984 kB / 345.6 MB, free: 236 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001356/0.4859, allocations: 7.688 kB / 345.6 MB, free: 232 kB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001072/0.486, allocations: 31.42 kB / 345.6 MB, free: 204 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.801e-05/0.486, allocations: 11.67 kB / 345.6 MB, free: 196 kB / 266.7 MB Notification: Performance of sorting global known variables: time 8.061e-05/0.4861, allocations: 94.7 kB / 345.7 MB, free: 104 kB / 266.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.4861, allocations: 0 / 345.7 MB, free: 104 kB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004101/0.4865, allocations: 39.44 kB / 345.8 MB, free: 72 kB / 266.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 (transition2.enableFire,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,step.active,transition2.fire,transition2.t_start,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 (26): * Single equations (assignments): 22 * 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.0009058/0.4875, allocations: 0.8242 MB / 346.6 MB, free: 15.27 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004873/0.488, allocations: 178.6 kB / 346.8 MB, free: 15.13 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/0.488, allocations: 0 / 346.8 MB, free: 15.13 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002123/0.4882, allocations: 88.59 kB / 346.8 MB, free: 15.07 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002707/0.4885, allocations: 19.66 kB / 346.9 MB, free: 15.05 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002512/0.491, allocations: 2.004 MB / 348.9 MB, free: 13.12 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004387/0.4915, allocations: 0.7367 MB / 349.6 MB, free: 12.36 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001386/0.4916, allocations: 21.94 kB / 349.6 MB, free: 12.34 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001456/0.4918, allocations: 55.8 kB / 349.7 MB, free: 12.32 MB / 282.7 MB Notification: Performance of SimCode: time 1.142e-06/0.4918, allocations: 0 / 349.7 MB, free: 12.32 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0277/0.5195, allocations: 3.266 MB / 352.9 MB, free: 9.113 MB / 282.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003137/0.5199, allocations: 173.8 kB / 353.1 MB, free: 8.867 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.489/3.009, allocations: 0 / 353.1 MB, free: 8.867 MB / 282.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_res.mat does not exist to compare? outputFormat=mat