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.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,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.976/1.976, allocations: 194.8 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003444/0.0003445, allocations: 8 kB / 264 MB, free: 13.5 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09404/0.09442, allocations: 44.5 MB / 308.5 MB, free: 0.9336 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4179/0.5124, allocations: 70.88 MB / 379.4 MB, free: 14.63 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002292/0.5127, allocations: 67.38 kB / 379.5 MB, free: 14.63 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01176/0.5244, allocations: 2.792 MB / 382.3 MB, free: 14.13 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.5245, allocations: 1.156 kB / 382.3 MB, free: 14.13 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.903e-05/0.5245, allocations: 8.406 kB / 382.3 MB, free: 14.13 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0006715/0.5252, allocations: 448.1 kB / 382.7 MB, free: 13.74 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.593e-05/0.5253, allocations: 8.844 kB / 382.7 MB, free: 13.74 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.223e-05/0.5253, allocations: 57.28 kB / 382.8 MB, free: 13.7 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.76e-05/0.5254, allocations: 23.09 kB / 382.8 MB, free: 13.69 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002726/0.5257, allocations: 222.1 kB / 383 MB, free: 13.48 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.146e-05/0.5258, allocations: 22.19 kB / 383 MB, free: 13.48 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.874e-05/0.5258, allocations: 28.66 kB / 383.1 MB, free: 13.47 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005633/0.5264, allocations: 227.3 kB / 383.3 MB, free: 13.42 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.431e-05/0.5265, allocations: 0 / 383.3 MB, free: 13.42 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.114e-05/0.5265, allocations: 10.52 kB / 383.3 MB, free: 13.42 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.128e-05/0.5265, allocations: 5.844 kB / 383.3 MB, free: 13.42 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004541/0.527, allocations: 169.3 kB / 383.5 MB, free: 13.41 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001232/0.5282, allocations: 0.679 MB / 384.1 MB, free: 13.02 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004099/0.5287, allocations: 170.3 kB / 384.3 MB, free: 12.99 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.807e-05/0.5287, allocations: 1.625 kB / 384.3 MB, free: 12.99 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002597/0.529, allocations: 115.4 kB / 384.4 MB, free: 12.94 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 4.067e-06/0.529, allocations: 0 / 384.4 MB, free: 12.94 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.0005903/0.5296, allocations: 228.8 kB / 384.6 MB, free: 12.89 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.935e-05/0.5296, allocations: 59.58 kB / 384.7 MB, free: 12.82 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001354/0.5298, allocations: 140.1 kB / 384.8 MB, free: 12.72 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.909e-05/0.5298, allocations: 34.52 kB / 384.9 MB, free: 12.69 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.116e-05/0.5299, allocations: 194.6 kB / 385.1 MB, free: 12.52 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.54e-05/0.53, allocations: 60.77 kB / 385.1 MB, free: 12.49 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.741e-05/0.53, allocations: 5 kB / 385.1 MB, free: 12.49 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.931e-05/0.5301, allocations: 324.3 kB / 385.4 MB, free: 12.18 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001794/0.5303, allocations: 62.33 kB / 385.5 MB, free: 12.17 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002173/0.5305, allocations: 126.2 kB / 385.6 MB, free: 12.11 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001857/0.5307, allocations: 64.11 kB / 385.7 MB, free: 12.1 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.5307, allocations: 0 / 385.7 MB, free: 12.1 MB / 314.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005304/0.5313, allocations: 243.4 kB / 385.9 MB, free: 12.04 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.206e-05/0.5313, allocations: 7.656 kB / 385.9 MB, free: 12.04 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.488e-06/0.5313, allocations: 2.031 kB / 385.9 MB, free: 12.04 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.261e-05/0.5314, allocations: 4.25 kB / 385.9 MB, free: 12.04 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002202/0.5316, allocations: 35.56 kB / 386 MB, free: 12.03 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.195e-05/0.5316, allocations: 2.781 kB / 386 MB, free: 12.03 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001608/0.5318, allocations: 26.62 kB / 386 MB, free: 12.02 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.201e-05/0.5319, allocations: 14.09 kB / 386 MB, free: 12.02 MB / 314.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.0001784/0.532, allocations: 153.7 kB / 386.2 MB, free: 11.89 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.281e-05/0.5321, allocations: 10.92 kB / 386.2 MB, free: 11.89 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004842/0.5326, allocations: 200.3 kB / 386.4 MB, free: 11.85 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.923e-06/0.5326, allocations: 2.094 kB / 386.4 MB, free: 11.85 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.035e-06/0.5326, allocations: 5.016 kB / 386.4 MB, free: 11.84 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.464e-06/0.5326, allocations: 6.422 kB / 386.4 MB, free: 11.84 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009732/0.5336, allocations: 0.5645 MB / 387 MB, free: 11.52 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/0.5336, allocations: 0 / 387 MB, free: 11.52 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001603/0.5338, allocations: 15.44 kB / 387 MB, free: 11.52 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.428e-06/0.5338, allocations: 5.641 kB / 387 MB, free: 11.52 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.083e-05/0.5339, allocations: 4.438 kB / 387 MB, free: 11.52 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.671e-06/0.5339, allocations: 1.188 kB / 387 MB, free: 11.52 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.5339, allocations: 9.438 kB / 387 MB, free: 11.51 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005247/0.5344, allocations: 281.7 kB / 387.3 MB, free: 11.36 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.259e-05/0.5345, allocations: 85.33 kB / 387.3 MB, free: 11.27 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.675e-05/0.5346, allocations: 10.02 kB / 387.4 MB, free: 11.26 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001604/0.5347, allocations: 15.3 kB / 387.4 MB, free: 11.26 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.867e-05/0.5349, allocations: 22.33 kB / 387.4 MB, free: 11.26 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.46e-05/0.5349, allocations: 8.172 kB / 387.4 MB, free: 11.26 MB / 314.7 MB Notification: Performance of sorting global known variables: time 6.086e-05/0.535, allocations: 99.36 kB / 387.5 MB, free: 11.18 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.535, allocations: 0 / 387.5 MB, free: 11.18 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004392/0.5354, allocations: 39.84 kB / 387.5 MB, free: 11.18 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 (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.0006528/0.5361, allocations: 0.822 MB / 388.4 MB, free: 10.5 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004734/0.5366, allocations: 179.8 kB / 388.5 MB, free: 10.49 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.5366, allocations: 0 / 388.5 MB, free: 10.49 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000194/0.5368, allocations: 81.27 kB / 388.6 MB, free: 10.48 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002686/0.5371, allocations: 22.2 kB / 388.6 MB, free: 10.48 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00207/0.5392, allocations: 1.994 MB / 390.6 MB, free: 8.895 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002145/0.5394, allocations: 0.7395 MB / 391.4 MB, free: 8.195 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001484/0.5396, allocations: 65.33 kB / 391.4 MB, free: 8.18 MB / 314.7 MB Notification: Performance of SimCode: time 1.032e-06/0.5396, allocations: 0 / 391.4 MB, free: 8.18 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.53/3.07, allocations: 2.927 MB / 394.4 MB, free: 7.902 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.StateGraph.Examples.FirstExample_res.mat does not exist to compare? outputFormat=mat