Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.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_Variant2,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.002/2.002, allocations: 194.9 MB / 211.7 MB, free: 2.98 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003543/0.0003543, allocations: 8 kB / 264 MB, free: 13.49 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.1119, allocations: 44.51 MB / 308.5 MB, free: 0.9141 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3976/0.5095, allocations: 71.51 MB / 380 MB, free: 14.87 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002377/0.5098, allocations: 65.42 kB / 380.1 MB, free: 14.87 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01175/0.5216, allocations: 2.959 MB / 383.1 MB, free: 14.37 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.5216, allocations: 0 / 383.1 MB, free: 14.37 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.902e-05/0.5217, allocations: 4.406 kB / 383.1 MB, free: 14.37 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.0006889/0.5224, allocations: 453.2 kB / 383.5 MB, free: 13.98 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.852e-05/0.5224, allocations: 10.41 kB / 383.5 MB, free: 13.98 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.705e-05/0.5225, allocations: 58.27 kB / 383.6 MB, free: 13.94 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.746e-05/0.5226, allocations: 20.12 kB / 383.6 MB, free: 13.93 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002767/0.5229, allocations: 239.5 kB / 383.8 MB, free: 13.71 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.953e-05/0.5229, allocations: 18.5 kB / 383.8 MB, free: 13.71 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.324e-05/0.523, allocations: 30.36 kB / 383.9 MB, free: 13.71 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005888/0.5236, allocations: 261.5 kB / 384.1 MB, free: 13.63 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.582e-05/0.5236, allocations: 1.375 kB / 384.1 MB, free: 13.63 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.229e-05/0.5237, allocations: 10.44 kB / 384.1 MB, free: 13.63 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.225e-05/0.5237, allocations: 9.75 kB / 384.2 MB, free: 13.62 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004524/0.5242, allocations: 170 kB / 384.3 MB, free: 13.62 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001376/0.5256, allocations: 0.9378 MB / 385.3 MB, free: 12.98 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004181/0.526, allocations: 162.4 kB / 385.4 MB, free: 12.94 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.202e-05/0.5261, allocations: 2.75 kB / 385.4 MB, free: 12.94 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002837/0.5264, allocations: 112.8 kB / 385.5 MB, free: 12.89 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 3.687e-06/0.5264, allocations: 0 / 385.5 MB, free: 12.89 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.0006127/0.527, allocations: 217.6 kB / 385.7 MB, free: 12.84 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.925e-05/0.5271, allocations: 60.66 kB / 385.8 MB, free: 12.78 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001522/0.5272, allocations: 145.4 kB / 385.9 MB, free: 12.68 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.042e-05/0.5273, allocations: 36.55 kB / 386 MB, free: 12.64 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.199e-05/0.5274, allocations: 207.3 kB / 386.2 MB, free: 12.47 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.765e-05/0.5274, allocations: 55.22 kB / 386.2 MB, free: 12.44 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.747e-05/0.5275, allocations: 7.875 kB / 386.2 MB, free: 12.44 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.925e-05/0.5275, allocations: 326 kB / 386.6 MB, free: 12.13 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001766/0.5277, allocations: 59.41 kB / 386.6 MB, free: 12.12 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002189/0.528, allocations: 141.1 kB / 386.8 MB, free: 12.04 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000194/0.5282, allocations: 70.72 kB / 386.8 MB, free: 12.03 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.5282, allocations: 0 / 386.8 MB, free: 12.03 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005425/0.5287, allocations: 254.1 kB / 387.1 MB, free: 11.96 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.163e-05/0.5288, allocations: 5.5 kB / 387.1 MB, free: 11.96 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.418e-06/0.5288, allocations: 2.75 kB / 387.1 MB, free: 11.96 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.555e-05/0.5288, allocations: 4.125 kB / 387.1 MB, free: 11.96 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002336/0.5291, allocations: 33.83 kB / 387.1 MB, free: 11.96 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.444e-05/0.5291, allocations: 12.06 kB / 387.1 MB, free: 11.95 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001642/0.5293, allocations: 18.34 kB / 387.2 MB, free: 11.95 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.249e-05/0.5293, allocations: 15.91 kB / 387.2 MB, free: 11.95 MB / 314.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.0001946/0.5295, allocations: 159.4 kB / 387.3 MB, free: 11.82 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.552e-05/0.5296, allocations: 13.36 kB / 387.3 MB, free: 11.81 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004792/0.5301, allocations: 197 kB / 387.5 MB, free: 11.75 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.781e-06/0.5301, allocations: 6.75 kB / 387.5 MB, free: 11.75 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.6e-06/0.5301, allocations: 1.375 kB / 387.5 MB, free: 11.75 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.542e-06/0.5301, allocations: 0 / 387.5 MB, free: 11.75 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009999/0.5311, allocations: 0.5802 MB / 388.1 MB, free: 11.41 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.027e-06/0.5312, allocations: 1.25 kB / 388.1 MB, free: 11.41 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001284/0.5313, allocations: 17.72 kB / 388.1 MB, free: 11.41 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.626e-06/0.5313, allocations: 1.031 kB / 388.1 MB, free: 11.41 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.213e-05/0.5313, allocations: 17.41 kB / 388.2 MB, free: 11.4 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.749e-06/0.5314, allocations: 1.344 kB / 388.2 MB, free: 11.4 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.225e-06/0.5314, allocations: 0 / 388.2 MB, free: 11.4 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004116/0.5318, allocations: 279.6 kB / 388.4 MB, free: 11.25 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.847e-05/0.5318, allocations: 89.36 kB / 388.5 MB, free: 11.14 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.693e-05/0.5319, allocations: 4.688 kB / 388.5 MB, free: 11.14 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001383/0.532, allocations: 11.53 kB / 388.5 MB, free: 11.14 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.766e-05/0.5322, allocations: 21.78 kB / 388.6 MB, free: 11.14 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.568e-05/0.5322, allocations: 9.188 kB / 388.6 MB, free: 11.14 MB / 314.7 MB Notification: Performance of sorting global known variables: time 6.994e-05/0.5323, allocations: 101.1 kB / 388.7 MB, free: 11.06 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.5323, allocations: 0 / 388.7 MB, free: 11.06 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004682/0.5328, allocations: 43.91 kB / 388.7 MB, free: 11.06 MB / 314.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.0007077/0.5335, allocations: 0.824 MB / 389.5 MB, free: 10.38 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005094/0.534, allocations: 168.5 kB / 389.7 MB, free: 10.38 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.534, allocations: 1.281 kB / 389.7 MB, free: 10.38 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001991/0.5342, allocations: 84.08 kB / 389.8 MB, free: 10.37 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003119/0.5346, allocations: 23.77 kB / 389.8 MB, free: 10.36 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002235/0.5368, allocations: 2.347 MB / 392.1 MB, free: 8.441 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002328/0.5371, allocations: 0.7436 MB / 392.9 MB, free: 7.742 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000159/0.5373, allocations: 62.69 kB / 392.9 MB, free: 7.734 MB / 314.7 MB Notification: Performance of SimCode: time 8.52e-07/0.5373, allocations: 0 / 392.9 MB, free: 7.734 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.463/3, allocations: 3.006 MB / 396 MB, free: 7.461 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat does not exist to compare? outputFormat=mat