Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_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_cpp_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.59/1.59, allocations: 171.2 MB / 186.8 MB, free: 1.113 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003418/0.0003419, allocations: 11.98 kB / 233.3 MB, free: 0.8359 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07839/0.07876, allocations: 38.77 MB / 272.1 MB, free: 9.984 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.339/0.4178, allocations: 65.57 MB / 337.7 MB, free: 1.441 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002414/0.4181, allocations: 63.97 kB / 337.7 MB, free: 1.379 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01142/0.4295, allocations: 2.797 MB / 340.5 MB, free: 14.57 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.874e-06/0.4296, allocations: 0 / 340.5 MB, free: 14.57 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.275e-05/0.4296, allocations: 8.875 kB / 340.5 MB, free: 14.57 MB / 282.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.000813/0.4304, allocations: 447.5 kB / 341 MB, free: 14.08 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.787e-05/0.4305, allocations: 16.03 kB / 341 MB, free: 14.06 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.6e-05/0.4306, allocations: 58.48 kB / 341 MB, free: 14 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.747e-05/0.4307, allocations: 15.81 kB / 341.1 MB, free: 13.98 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003649/0.431, allocations: 222.8 kB / 341.3 MB, free: 13.72 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.501e-05/0.4311, allocations: 20.44 kB / 341.3 MB, free: 13.7 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.399e-05/0.4312, allocations: 27.95 kB / 341.3 MB, free: 13.68 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006119/0.4318, allocations: 229.8 kB / 341.6 MB, free: 13.44 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.654e-05/0.4318, allocations: 0 / 341.6 MB, free: 13.44 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.468e-05/0.4319, allocations: 19.94 kB / 341.6 MB, free: 13.42 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.108e-05/0.4319, allocations: 4 kB / 341.6 MB, free: 13.41 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004673/0.4324, allocations: 153.7 kB / 341.7 MB, free: 13.27 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001406/0.4338, allocations: 0.6861 MB / 342.4 MB, free: 12.52 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004434/0.4343, allocations: 167.4 kB / 342.6 MB, free: 12.35 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.584e-05/0.4343, allocations: 192 / 342.6 MB, free: 12.35 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002991/0.4346, allocations: 119.5 kB / 342.7 MB, free: 12.22 MB / 282.7 MB Notification: Performance of pre-optimization done (n=24): time 2.675e-06/0.4346, allocations: 3.938 kB / 342.7 MB, free: 12.21 MB / 282.7 MB Notification: Performance of matching and sorting (n=24): time 0.0006435/0.4353, allocations: 214.7 kB / 342.9 MB, free: 12 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.07e-05/0.4354, allocations: 55.41 kB / 343 MB, free: 11.93 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001647/0.4355, allocations: 137 kB / 343.1 MB, free: 11.79 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.704e-05/0.4356, allocations: 33.7 kB / 343.1 MB, free: 11.75 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001319/0.4357, allocations: 195.2 kB / 343.3 MB, free: 11.55 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.268e-05/0.4358, allocations: 59.25 kB / 343.4 MB, free: 11.5 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.766e-05/0.4359, allocations: 8 kB / 343.4 MB, free: 11.49 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001524/0.436, allocations: 330.8 kB / 343.7 MB, free: 11.16 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001943/0.4362, allocations: 60.62 kB / 343.8 MB, free: 11.09 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002575/0.4365, allocations: 124.1 kB / 343.9 MB, free: 10.95 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002216/0.4367, allocations: 75.97 kB / 344 MB, free: 10.88 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/0.4368, allocations: 0 / 344 MB, free: 10.88 MB / 282.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005986/0.4374, allocations: 237.2 kB / 344.2 MB, free: 10.64 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.196e-05/0.4374, allocations: 4.219 kB / 344.2 MB, free: 10.63 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.75e-05/0.4375, allocations: 8 kB / 344.2 MB, free: 10.62 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.231e-05/0.4375, allocations: 7.938 kB / 344.2 MB, free: 10.62 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002291/0.4377, allocations: 27.92 kB / 344.2 MB, free: 10.59 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.005e-05/0.4377, allocations: 0 / 344.2 MB, free: 10.59 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001673/0.4379, allocations: 27.83 kB / 344.3 MB, free: 10.56 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.032e-05/0.438, allocations: 12 kB / 344.3 MB, free: 10.55 MB / 282.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.0002354/0.4382, allocations: 161.7 kB / 344.4 MB, free: 10.38 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.577e-05/0.4383, allocations: 11.91 kB / 344.4 MB, free: 10.37 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005471/0.4388, allocations: 198.3 kB / 344.6 MB, free: 10.17 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.606e-06/0.4389, allocations: 7.938 kB / 344.6 MB, free: 10.16 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.4389, allocations: 0 / 344.6 MB, free: 10.16 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.267e-06/0.4389, allocations: 3.984 kB / 344.7 MB, free: 10.16 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001113/0.44, allocations: 0.5609 MB / 345.2 MB, free: 9.539 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.44, allocations: 4 kB / 345.2 MB, free: 9.535 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001438/0.4402, allocations: 15.98 kB / 345.2 MB, free: 9.52 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.636e-06/0.4402, allocations: 7.938 kB / 345.2 MB, free: 9.512 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.026e-05/0.4402, allocations: 4 kB / 345.2 MB, free: 9.508 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.097e-06/0.4403, allocations: 0 / 345.2 MB, free: 9.508 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.4403, allocations: 3.953 kB / 345.2 MB, free: 9.504 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004645/0.4407, allocations: 271.7 kB / 345.5 MB, free: 9.223 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.066e-05/0.4408, allocations: 88.92 kB / 345.6 MB, free: 9.117 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.056e-05/0.4409, allocations: 15.98 kB / 345.6 MB, free: 9.102 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001372/0.441, allocations: 9.812 kB / 345.6 MB, free: 9.094 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001036/0.4411, allocations: 31.91 kB / 345.7 MB, free: 9.062 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.277e-05/0.4412, allocations: 4 kB / 345.7 MB, free: 9.059 MB / 282.7 MB Notification: Performance of sorting global known variables: time 7.789e-05/0.4412, allocations: 95.77 kB / 345.8 MB, free: 8.965 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.4413, allocations: 0 / 345.8 MB, free: 8.965 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004578/0.4417, allocations: 40 kB / 345.8 MB, free: 8.926 MB / 282.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.0008294/0.4426, allocations: 0.8177 MB / 346.6 MB, free: 8.082 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004972/0.4431, allocations: 183.7 kB / 346.8 MB, free: 7.902 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.4431, allocations: 0 / 346.8 MB, free: 7.902 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002099/0.4433, allocations: 79.86 kB / 346.9 MB, free: 7.824 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002736/0.4436, allocations: 25.03 kB / 346.9 MB, free: 7.801 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00251/0.4461, allocations: 2.025 MB / 348.9 MB, free: 5.688 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000386/0.4466, allocations: 0.7444 MB / 349.7 MB, free: 4.918 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001642/0.4467, allocations: 55.48 kB / 349.7 MB, free: 4.863 MB / 282.7 MB Notification: Performance of SimCode: time 8.01e-07/0.4467, allocations: 0 / 349.7 MB, free: 4.863 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.354/2.801, allocations: 2.922 MB / 352.6 MB, free: 1.945 MB / 282.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.StateGraph.Examples.FirstExample_res.mat does not exist to compare? outputFormat=mat