Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_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_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.991/1.991, allocations: 194.9 MB / 211.1 MB, free: 7.586 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003561/0.0003562, allocations: 8 kB / 264.1 MB, free: 2.516 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3686/0.369, allocations: 44.5 MB / 308.6 MB, free: 12.65 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1284/0.4974, allocations: 70.88 MB / 379.4 MB, free: 5.672 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002535/0.4977, allocations: 59.97 kB / 379.5 MB, free: 5.613 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01208/0.5098, allocations: 2.792 MB / 382.3 MB, free: 2.793 MB / 314.7 MB Notification: Performance of FrontEnd: time 4.268e-06/0.5099, allocations: 4 kB / 382.3 MB, free: 2.789 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.943e-05/0.5099, allocations: 8 kB / 382.3 MB, free: 2.781 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.0007912/0.5107, allocations: 448.3 kB / 382.7 MB, free: 2.297 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.844e-05/0.5108, allocations: 8.031 kB / 382.7 MB, free: 2.289 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.776e-05/0.5109, allocations: 58.53 kB / 382.8 MB, free: 2.223 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.321e-05/0.511, allocations: 23.72 kB / 382.8 MB, free: 2.199 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003519/0.5113, allocations: 230.8 kB / 383 MB, free: 1.934 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.019e-05/0.5114, allocations: 16.44 kB / 383.1 MB, free: 1.918 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.14e-05/0.5114, allocations: 24 kB / 383.1 MB, free: 1.895 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006324/0.5121, allocations: 233.8 kB / 383.3 MB, free: 1.652 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.529e-05/0.5121, allocations: 4 kB / 383.3 MB, free: 1.648 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.395e-05/0.5122, allocations: 8 kB / 383.3 MB, free: 1.641 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.057e-05/0.5122, allocations: 4 kB / 383.3 MB, free: 1.637 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004822/0.5127, allocations: 165.6 kB / 383.5 MB, free: 1.477 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001483/0.5142, allocations: 0.6782 MB / 384.2 MB, free: 0.7383 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004625/0.5147, allocations: 175.3 kB / 384.3 MB, free: 0.5586 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.014e-05/0.5147, allocations: 4.188 kB / 384.3 MB, free: 0.5547 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002816/0.515, allocations: 111.5 kB / 384.5 MB, free: 444 kB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 3.136e-06/0.515, allocations: 0 / 384.5 MB, free: 444 kB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.0006546/0.5157, allocations: 221.3 kB / 384.7 MB, free: 216 kB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.462e-05/0.5158, allocations: 59.34 kB / 384.7 MB, free: 144 kB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001976/0.516, allocations: 137 kB / 384.9 MB, free: 15.99 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.269e-05/0.516, allocations: 41.64 kB / 384.9 MB, free: 15.95 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001078/0.5162, allocations: 128.6 kB / 385 MB, free: 15.82 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.642e-05/0.5163, allocations: 59.25 kB / 385.1 MB, free: 15.76 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.963e-05/0.5163, allocations: 8 kB / 385.1 MB, free: 15.75 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001355/0.5164, allocations: 325.1 kB / 385.4 MB, free: 15.43 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001929/0.5166, allocations: 60.62 kB / 385.5 MB, free: 15.37 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002368/0.5169, allocations: 124.1 kB / 385.6 MB, free: 15.22 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002016/0.5171, allocations: 67.92 kB / 385.7 MB, free: 15.16 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.5171, allocations: 0 / 385.7 MB, free: 15.16 MB / 330.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000604/0.5177, allocations: 245.3 kB / 385.9 MB, free: 14.91 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.226e-05/0.5178, allocations: 4 kB / 385.9 MB, free: 14.91 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.106e-05/0.5178, allocations: 4 kB / 385.9 MB, free: 14.9 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.237e-05/0.5178, allocations: 4 kB / 385.9 MB, free: 14.9 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002322/0.5181, allocations: 39.81 kB / 386 MB, free: 14.86 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.471e-05/0.5181, allocations: 4 kB / 386 MB, free: 14.86 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001587/0.5183, allocations: 19.92 kB / 386 MB, free: 14.84 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.945e-05/0.5183, allocations: 12 kB / 386 MB, free: 14.82 MB / 330.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.0002141/0.5185, allocations: 158 kB / 386.1 MB, free: 14.66 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.857e-05/0.5186, allocations: 15.81 kB / 386.2 MB, free: 14.64 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005332/0.5191, allocations: 190.4 kB / 386.3 MB, free: 14.46 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.995e-06/0.5192, allocations: 4 kB / 386.3 MB, free: 14.45 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.808e-06/0.5192, allocations: 3.953 kB / 386.3 MB, free: 14.45 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.158e-06/0.5192, allocations: 7.922 kB / 386.4 MB, free: 14.44 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001103/0.5203, allocations: 0.5534 MB / 386.9 MB, free: 13.83 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.5203, allocations: 0 / 386.9 MB, free: 13.83 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001489/0.5205, allocations: 19.98 kB / 386.9 MB, free: 13.81 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.066e-05/0.5205, allocations: 7.953 kB / 386.9 MB, free: 13.8 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.928e-05/0.5205, allocations: 0 / 386.9 MB, free: 13.8 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.988e-06/0.5206, allocations: 0 / 386.9 MB, free: 13.8 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/0.5206, allocations: 4 kB / 386.9 MB, free: 13.8 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004733/0.5211, allocations: 287.1 kB / 387.2 MB, free: 13.5 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.084e-05/0.5211, allocations: 96.89 kB / 387.3 MB, free: 13.39 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.108e-05/0.5212, allocations: 11.94 kB / 387.3 MB, free: 13.38 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001897/0.5214, allocations: 8 kB / 387.3 MB, free: 13.37 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001395/0.5215, allocations: 23.95 kB / 387.4 MB, free: 13.35 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.558e-05/0.5216, allocations: 8 kB / 387.4 MB, free: 13.34 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001068/0.5217, allocations: 95.27 kB / 387.5 MB, free: 13.25 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.02e-07/0.5217, allocations: 0 / 387.5 MB, free: 13.25 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007104/0.5225, allocations: 47.91 kB / 387.5 MB, free: 13.2 MB / 330.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.001279/0.5238, allocations: 0.8255 MB / 388.3 MB, free: 12.35 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007922/0.5246, allocations: 176.1 kB / 388.5 MB, free: 12.18 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.948e-06/0.5246, allocations: 4.125 kB / 388.5 MB, free: 12.17 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003346/0.525, allocations: 83.86 kB / 388.6 MB, free: 12.09 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004291/0.5254, allocations: 19.94 kB / 388.6 MB, free: 12.07 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003636/0.5291, allocations: 1.978 MB / 390.6 MB, free: 10.01 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004803/0.5296, allocations: 0.7328 MB / 391.3 MB, free: 9.254 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002046/0.5298, allocations: 25.94 kB / 391.3 MB, free: 9.227 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002467/0.5301, allocations: 59.47 kB / 391.4 MB, free: 9.168 MB / 330.7 MB Notification: Performance of SimCode: time 1.433e-06/0.5301, allocations: 3.938 kB / 391.4 MB, free: 9.164 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02903/0.5592, allocations: 3.262 MB / 394.7 MB, free: 5.949 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000315/0.5595, allocations: 170.3 kB / 394.8 MB, free: 5.707 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.779/3.339, allocations: 4.062 kB / 394.8 MB, free: 5.703 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.StateGraph.Examples.FirstExample_res.mat does not exist to compare? outputFormat=mat