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_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_cpp_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.672/1.672, allocations: 171.1 MB / 186.7 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003642/0.0003642, allocations: 12 kB / 233.3 MB, free: 2.938 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07749/0.07788, allocations: 38.76 MB / 272.1 MB, free: 12.09 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3261/0.404, allocations: 66.2 MB / 338.3 MB, free: 7.203 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002284/0.4043, allocations: 70.16 kB / 338.4 MB, free: 7.168 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01149/0.4158, allocations: 2.96 MB / 341.3 MB, free: 4.586 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.4159, allocations: 0 / 341.3 MB, free: 4.586 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.245e-05/0.4159, allocations: 11.69 kB / 341.3 MB, free: 4.578 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.0008288/0.4168, allocations: 449.7 kB / 341.8 MB, free: 4.105 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.809e-05/0.4168, allocations: 8.031 kB / 341.8 MB, free: 4.098 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.66e-05/0.4169, allocations: 57.3 kB / 341.8 MB, free: 4.047 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.887e-05/0.417, allocations: 27.72 kB / 341.9 MB, free: 4.02 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003814/0.4174, allocations: 225.3 kB / 342.1 MB, free: 3.777 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.357e-05/0.4175, allocations: 19.25 kB / 342.1 MB, free: 3.766 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.408e-05/0.4176, allocations: 34.58 kB / 342.1 MB, free: 3.742 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000636/0.4182, allocations: 261.6 kB / 342.4 MB, free: 3.527 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.431e-05/0.4182, allocations: 0 / 342.4 MB, free: 3.527 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.694e-05/0.4183, allocations: 10.75 kB / 342.4 MB, free: 3.523 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.099e-05/0.4183, allocations: 11.94 kB / 342.4 MB, free: 3.512 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004823/0.4188, allocations: 174.6 kB / 342.6 MB, free: 3.395 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001484/0.4203, allocations: 0.9358 MB / 343.5 MB, free: 2.508 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003822/0.4207, allocations: 159.3 kB / 343.7 MB, free: 2.391 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.206e-05/0.4207, allocations: 192 / 343.7 MB, free: 2.391 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002611/0.421, allocations: 109.9 kB / 343.8 MB, free: 2.293 MB / 266.7 MB Notification: Performance of pre-optimization done (n=23): time 2.354e-06/0.421, allocations: 0 / 343.8 MB, free: 2.293 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.0006112/0.4216, allocations: 221.3 kB / 344 MB, free: 2.121 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.157e-05/0.4217, allocations: 55.41 kB / 344.1 MB, free: 2.055 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001486/0.4219, allocations: 147.4 kB / 344.2 MB, free: 1.922 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.43e-05/0.4219, allocations: 34.95 kB / 344.2 MB, free: 1.887 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001265/0.4221, allocations: 209.8 kB / 344.4 MB, free: 1.688 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.509e-05/0.4222, allocations: 61.61 kB / 344.5 MB, free: 1.637 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.86e-05/0.4222, allocations: 7.312 kB / 344.5 MB, free: 1.633 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000125/0.4223, allocations: 326.1 kB / 344.8 MB, free: 1.312 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001792/0.4225, allocations: 60 kB / 344.9 MB, free: 1.27 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002384/0.4228, allocations: 143 kB / 345 MB, free: 1.129 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001882/0.423, allocations: 69.23 kB / 345.1 MB, free: 1.086 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.423, allocations: 0 / 345.1 MB, free: 1.086 MB / 266.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005543/0.4235, allocations: 245.9 kB / 345.3 MB, free: 0.8945 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.185e-05/0.4236, allocations: 8 kB / 345.3 MB, free: 0.8867 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.187e-06/0.4236, allocations: 0 / 345.3 MB, free: 0.8867 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.528e-05/0.4236, allocations: 15.88 kB / 345.3 MB, free: 0.8711 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002279/0.4239, allocations: 35.58 kB / 345.4 MB, free: 0.8398 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.322e-05/0.4239, allocations: 8 kB / 345.4 MB, free: 0.832 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001534/0.4241, allocations: 15.31 kB / 345.4 MB, free: 0.8203 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.018e-05/0.4241, allocations: 15.55 kB / 345.4 MB, free: 0.8086 MB / 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.0001968/0.4243, allocations: 154 kB / 345.6 MB, free: 0.668 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.294e-05/0.4244, allocations: 11.81 kB / 345.6 MB, free: 0.6562 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004828/0.4249, allocations: 193.9 kB / 345.8 MB, free: 0.5156 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.146e-05/0.4249, allocations: 8 kB / 345.8 MB, free: 0.5078 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.183e-06/0.4249, allocations: 3.953 kB / 345.8 MB, free: 0.5039 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.4249, allocations: 0 / 345.8 MB, free: 0.5039 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001057/0.426, allocations: 0.5827 MB / 346.4 MB, free: 15.95 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.426, allocations: 0 / 346.4 MB, free: 15.95 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001281/0.4261, allocations: 23.5 kB / 346.4 MB, free: 15.93 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.853e-06/0.4262, allocations: 4 kB / 346.4 MB, free: 15.93 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.759e-05/0.4262, allocations: 4 kB / 346.4 MB, free: 15.92 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.601e-06/0.4262, allocations: 0 / 346.4 MB, free: 15.92 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.4262, allocations: 3.938 kB / 346.4 MB, free: 15.92 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004312/0.4267, allocations: 274.3 kB / 346.7 MB, free: 15.68 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.658e-05/0.4267, allocations: 92.86 kB / 346.8 MB, free: 15.57 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.867e-05/0.4268, allocations: 7.578 kB / 346.8 MB, free: 15.56 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000136/0.4269, allocations: 11.3 kB / 346.8 MB, free: 15.55 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.853e-05/0.427, allocations: 27.91 kB / 346.8 MB, free: 15.53 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.238e-05/0.4271, allocations: 4 kB / 346.8 MB, free: 15.53 MB / 282.7 MB Notification: Performance of sorting global known variables: time 7.885e-05/0.4271, allocations: 100.4 kB / 346.9 MB, free: 15.44 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.4272, allocations: 0 / 346.9 MB, free: 15.44 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004171/0.4276, allocations: 38.5 kB / 346.9 MB, free: 15.41 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.0007865/0.4284, allocations: 0.8256 MB / 347.8 MB, free: 14.59 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004752/0.4289, allocations: 182.4 kB / 347.9 MB, free: 14.46 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.065e-06/0.4289, allocations: 0 / 347.9 MB, free: 14.46 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001967/0.4291, allocations: 81.22 kB / 348 MB, free: 14.4 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000263/0.4294, allocations: 15.52 kB / 348 MB, free: 14.39 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002525/0.4319, allocations: 2.371 MB / 350.4 MB, free: 12.09 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003478/0.4323, allocations: 0.7328 MB / 351.1 MB, free: 11.33 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001536/0.4325, allocations: 62.91 kB / 351.2 MB, free: 11.3 MB / 282.7 MB Notification: Performance of SimCode: time 1.312e-06/0.4325, allocations: 0 / 351.2 MB, free: 11.3 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.403/2.835, allocations: 3.021 MB / 354.2 MB, free: 8.312 MB / 282.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat does not exist to compare? outputFormat=mat