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_Variant2.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_Variant2,fileNamePrefix="Modelica_3_2_1_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.695/1.695, allocations: 171.1 MB / 186.1 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003515/0.0003517, allocations: 11.94 kB / 233.4 MB, free: 2.27 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08197/0.08236, allocations: 38.76 MB / 272.1 MB, free: 11.43 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3351/0.4175, allocations: 66.19 MB / 338.3 MB, free: 6.633 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002496/0.4178, allocations: 67.34 kB / 338.4 MB, free: 6.598 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01192/0.4297, allocations: 2.956 MB / 341.3 MB, free: 4.023 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.4298, allocations: 4.875 kB / 341.3 MB, free: 4.02 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.817e-05/0.4298, allocations: 4 kB / 341.3 MB, free: 4.016 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: 58 * Number of variables: 58 Notification: Performance of Generate backend data structure: time 0.0007452/0.4306, allocations: 456.6 kB / 341.8 MB, free: 3.539 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.712e-05/0.4306, allocations: 8.031 kB / 341.8 MB, free: 3.531 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.371e-05/0.4307, allocations: 58.66 kB / 341.9 MB, free: 3.477 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.972e-05/0.4308, allocations: 26.97 kB / 341.9 MB, free: 3.453 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003002/0.4311, allocations: 212.5 kB / 342.1 MB, free: 3.219 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.758e-05/0.4312, allocations: 26.94 kB / 342.1 MB, free: 3.203 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.155e-05/0.4312, allocations: 26.58 kB / 342.1 MB, free: 3.184 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006347/0.4319, allocations: 268.5 kB / 342.4 MB, free: 2.965 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.547e-05/0.4319, allocations: 0 / 342.4 MB, free: 2.965 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.528e-05/0.432, allocations: 15.12 kB / 342.4 MB, free: 2.957 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.168e-05/0.432, allocations: 7.938 kB / 342.4 MB, free: 2.949 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004612/0.4325, allocations: 171.9 kB / 342.6 MB, free: 2.832 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001463/0.4339, allocations: 0.9489 MB / 343.5 MB, free: 1.938 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003878/0.4343, allocations: 152.4 kB / 343.7 MB, free: 1.824 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.254e-05/0.4344, allocations: 12.17 kB / 343.7 MB, free: 1.812 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002586/0.4347, allocations: 111.3 kB / 343.8 MB, free: 1.715 MB / 266.7 MB Notification: Performance of pre-optimization done (n=23): time 3.507e-06/0.4347, allocations: 0 / 343.8 MB, free: 1.715 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.0006104/0.4353, allocations: 214 kB / 344 MB, free: 1.547 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.657e-05/0.4354, allocations: 58.91 kB / 344.1 MB, free: 1.48 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001654/0.4355, allocations: 135.9 kB / 344.2 MB, free: 1.355 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.566e-05/0.4356, allocations: 44.5 kB / 344.3 MB, free: 1.312 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001456/0.4358, allocations: 142.8 kB / 344.4 MB, free: 1.176 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.963e-05/0.4358, allocations: 57.75 kB / 344.5 MB, free: 1.129 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.042e-05/0.4359, allocations: 11.31 kB / 344.5 MB, free: 1.125 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001364/0.436, allocations: 330 kB / 344.8 MB, free: 0.8008 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001896/0.4362, allocations: 58.75 kB / 344.8 MB, free: 0.7578 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002465/0.4365, allocations: 144 kB / 345 MB, free: 0.6172 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002032/0.4367, allocations: 65.05 kB / 345 MB, free: 0.5781 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.174e-06/0.4367, allocations: 4 kB / 345 MB, free: 0.5742 MB / 266.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005985/0.4373, allocations: 251.2 kB / 345.3 MB, free: 388 kB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.463e-05/0.4374, allocations: 9.406 kB / 345.3 MB, free: 380 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.051e-05/0.4374, allocations: 4 kB / 345.3 MB, free: 376 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.739e-05/0.4374, allocations: 7.953 kB / 345.3 MB, free: 368 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002435/0.4377, allocations: 27.92 kB / 345.3 MB, free: 340 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.355e-05/0.4377, allocations: 4 kB / 345.3 MB, free: 336 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001632/0.4379, allocations: 23.06 kB / 345.4 MB, free: 320 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.559e-05/0.4379, allocations: 23.23 kB / 345.4 MB, free: 300 kB / 266.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.0002069/0.4382, allocations: 149.1 kB / 345.5 MB, free: 160 kB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.598e-05/0.4382, allocations: 11.91 kB / 345.5 MB, free: 148 kB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004956/0.4387, allocations: 194.9 kB / 345.7 MB, free: 4 kB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.02e-06/0.4387, allocations: 0 / 345.7 MB, free: 4 kB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.685e-06/0.4387, allocations: 3.953 kB / 345.7 MB, free: 0 / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.773e-06/0.4388, allocations: 4.047 kB / 345.7 MB, free: 15.99 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001074/0.4399, allocations: 0.5791 MB / 346.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.4399, allocations: 0 / 346.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001381/0.44, allocations: 19.94 kB / 346.3 MB, free: 15.42 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.953e-06/0.4401, allocations: 3.938 kB / 346.4 MB, free: 15.41 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.2e-05/0.4401, allocations: 7.75 kB / 346.4 MB, free: 15.41 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.861e-06/0.4401, allocations: 4 kB / 346.4 MB, free: 15.41 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.4401, allocations: 4 kB / 346.4 MB, free: 15.4 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004366/0.4406, allocations: 273.4 kB / 346.6 MB, free: 15.16 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.096e-05/0.4407, allocations: 92.89 kB / 346.7 MB, free: 15.05 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.929e-05/0.4407, allocations: 11.77 kB / 346.7 MB, free: 15.04 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001417/0.4409, allocations: 7.984 kB / 346.7 MB, free: 15.04 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.574e-05/0.441, allocations: 19.59 kB / 346.8 MB, free: 15.02 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.426e-05/0.441, allocations: 4 kB / 346.8 MB, free: 15.02 MB / 282.7 MB Notification: Performance of sorting global known variables: time 8.492e-05/0.4411, allocations: 103.5 kB / 346.9 MB, free: 14.92 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.4411, allocations: 0 / 346.9 MB, free: 14.92 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004297/0.4416, allocations: 45.56 kB / 346.9 MB, free: 14.89 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 (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.0008325/0.4424, allocations: 0.8269 MB / 347.7 MB, free: 14.08 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005023/0.4429, allocations: 182.6 kB / 347.9 MB, free: 13.95 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.4429, allocations: 4 kB / 347.9 MB, free: 13.94 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002039/0.4431, allocations: 78.16 kB / 348 MB, free: 13.88 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002817/0.4434, allocations: 17.89 kB / 348 MB, free: 13.87 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002702/0.4462, allocations: 2.34 MB / 350.4 MB, free: 11.61 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003667/0.4466, allocations: 0.7445 MB / 351.1 MB, free: 10.84 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001545/0.4468, allocations: 25.94 kB / 351.1 MB, free: 10.81 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001527/0.4469, allocations: 58.36 kB / 351.2 MB, free: 10.79 MB / 282.7 MB Notification: Performance of SimCode: time 9.02e-07/0.4469, allocations: 0 / 351.2 MB, free: 10.79 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05058/0.4975, allocations: 3.331 MB / 354.5 MB, free: 7.512 MB / 282.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00037/0.498, allocations: 184.1 kB / 354.7 MB, free: 7.266 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.509/3.007, allocations: 0 / 354.7 MB, free: 7.266 MB / 282.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat does not exist to compare? outputFormat=mat