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_Variant3.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_Variant3,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.965/1.965, allocations: 194.8 MB / 211.7 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004828/0.0004828, allocations: 8 kB / 264 MB, free: 13.5 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1242/0.1247, allocations: 44.51 MB / 308.5 MB, free: 0.9258 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4038/0.5286, allocations: 71.53 MB / 380.1 MB, free: 14.86 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002518/0.5289, allocations: 67.28 kB / 380.1 MB, free: 14.86 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0115/0.5404, allocations: 2.931 MB / 383.1 MB, free: 14.38 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.324e-06/0.5404, allocations: 0 / 383.1 MB, free: 14.38 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.759e-05/0.5405, allocations: 4.469 kB / 383.1 MB, free: 14.38 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.0006643/0.5411, allocations: 446.2 kB / 383.5 MB, free: 13.98 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.829e-05/0.5412, allocations: 9.438 kB / 383.5 MB, free: 13.98 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.618e-05/0.5413, allocations: 64.16 kB / 383.6 MB, free: 13.94 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.091e-05/0.5414, allocations: 27.16 kB / 383.6 MB, free: 13.93 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002865/0.5417, allocations: 236.7 kB / 383.8 MB, free: 13.71 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.218e-05/0.5417, allocations: 23.47 kB / 383.8 MB, free: 13.71 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.656e-05/0.5418, allocations: 25.81 kB / 383.9 MB, free: 13.71 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006055/0.5424, allocations: 260.2 kB / 384.1 MB, free: 13.62 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.754e-05/0.5425, allocations: 0 / 384.1 MB, free: 13.62 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.488e-05/0.5425, allocations: 21.27 kB / 384.1 MB, free: 13.62 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.148e-05/0.5425, allocations: 5.656 kB / 384.2 MB, free: 13.62 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004529/0.543, allocations: 165.1 kB / 384.3 MB, free: 13.61 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001355/0.5444, allocations: 0.9419 MB / 385.3 MB, free: 12.97 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000374/0.5448, allocations: 160.5 kB / 385.4 MB, free: 12.93 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.973e-05/0.5448, allocations: 2.938 kB / 385.4 MB, free: 12.93 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002452/0.5451, allocations: 110.9 kB / 385.5 MB, free: 12.88 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 2.815e-06/0.5451, allocations: 3.938 kB / 385.5 MB, free: 12.88 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.0005714/0.5457, allocations: 208.2 kB / 385.7 MB, free: 12.84 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.053e-05/0.5457, allocations: 62.34 kB / 385.8 MB, free: 12.77 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001318/0.5459, allocations: 140.6 kB / 385.9 MB, free: 12.67 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.994e-05/0.5459, allocations: 39.05 kB / 386 MB, free: 12.64 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001049/0.546, allocations: 208.9 kB / 386.2 MB, free: 12.46 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.233e-05/0.5461, allocations: 57.8 kB / 386.2 MB, free: 12.43 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.698e-05/0.5461, allocations: 5 kB / 386.2 MB, free: 12.43 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.813e-05/0.5462, allocations: 323.7 kB / 386.5 MB, free: 12.12 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001748/0.5464, allocations: 63.91 kB / 386.6 MB, free: 12.12 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002149/0.5466, allocations: 132.3 kB / 386.7 MB, free: 12.04 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001872/0.5468, allocations: 72.42 kB / 386.8 MB, free: 12.03 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.5468, allocations: 1.375 kB / 386.8 MB, free: 12.03 MB / 314.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005444/0.5474, allocations: 254.7 kB / 387.1 MB, free: 11.96 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.185e-05/0.5474, allocations: 5.156 kB / 387.1 MB, free: 11.96 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.009e-05/0.5474, allocations: 3.031 kB / 387.1 MB, free: 11.96 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.472e-05/0.5475, allocations: 8.062 kB / 387.1 MB, free: 11.96 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002335/0.5477, allocations: 30.61 kB / 387.1 MB, free: 11.95 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.408e-05/0.5477, allocations: 7.984 kB / 387.1 MB, free: 11.95 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001678/0.5479, allocations: 28.81 kB / 387.1 MB, free: 11.94 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.257e-05/0.548, allocations: 13.88 kB / 387.2 MB, free: 11.94 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,SetBoolean1.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.0001779/0.5482, allocations: 148.5 kB / 387.3 MB, free: 11.82 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.14e-05/0.5482, allocations: 14.45 kB / 387.3 MB, free: 11.81 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004759/0.5487, allocations: 195.9 kB / 387.5 MB, free: 11.76 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.514e-06/0.5487, allocations: 5.453 kB / 387.5 MB, free: 11.76 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.279e-06/0.5487, allocations: 0 / 387.5 MB, free: 11.76 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.813e-06/0.5487, allocations: 0 / 387.5 MB, free: 11.76 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009587/0.5497, allocations: 0.5824 MB / 388.1 MB, free: 11.41 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.5497, allocations: 0 / 388.1 MB, free: 11.41 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001292/0.5499, allocations: 21.22 kB / 388.1 MB, free: 11.41 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.335e-06/0.5499, allocations: 6.156 kB / 388.1 MB, free: 11.4 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.112e-05/0.5499, allocations: 7.25 kB / 388.1 MB, free: 11.4 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.5499, allocations: 5.344 kB / 388.1 MB, free: 11.39 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.045e-06/0.5499, allocations: 0.8438 kB / 388.1 MB, free: 11.39 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004515/0.5504, allocations: 276.7 kB / 388.4 MB, free: 11.25 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.968e-05/0.5505, allocations: 91.81 kB / 388.5 MB, free: 11.14 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.732e-05/0.5505, allocations: 6.219 kB / 388.5 MB, free: 11.14 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001385/0.5507, allocations: 13.25 kB / 388.5 MB, free: 11.14 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.708e-05/0.5508, allocations: 20.94 kB / 388.5 MB, free: 11.14 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.462e-05/0.5508, allocations: 8.344 kB / 388.5 MB, free: 11.14 MB / 314.7 MB Notification: Performance of sorting global known variables: time 6.201e-05/0.5509, allocations: 95.2 kB / 388.6 MB, free: 11.06 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.5509, allocations: 0 / 388.6 MB, free: 11.06 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004603/0.5513, allocations: 44.03 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,SetBoolean1.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.0006879/0.552, allocations: 0.8218 MB / 389.5 MB, free: 10.38 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004933/0.5526, allocations: 170.1 kB / 389.7 MB, free: 10.38 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.654e-06/0.5526, allocations: 0 / 389.7 MB, free: 10.38 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001912/0.5528, allocations: 79.47 kB / 389.7 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.0002761/0.5531, allocations: 17.89 kB / 389.8 MB, free: 10.37 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0022/0.5553, allocations: 2.342 MB / 392.1 MB, free: 8.441 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002204/0.5555, allocations: 0.7394 MB / 392.8 MB, free: 7.746 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001517/0.5557, allocations: 62.97 kB / 392.9 MB, free: 7.734 MB / 314.7 MB Notification: Performance of SimCode: time 1.303e-06/0.5557, allocations: 4 kB / 392.9 MB, free: 7.73 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.434/2.989, allocations: 2.984 MB / 395.9 MB, free: 7.465 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat does not exist to compare? outputFormat=mat