Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Blocks.FirstOrderHold.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.009202/0.009202, allocations: 165.5 kB / 15.11 MB, free: 5.984 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.62/1.62, allocations: 170.8 MB / 186.6 MB, free: 1.109 MB / 154.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001905/0.001905, allocations: 99.41 kB / 226.2 MB, free: 10.11 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.4277/0.4277, allocations: 38.05 MB / 303.7 MB, free: 42.49 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004814/0.0004815, allocations: 12 kB / 363 MB, free: 5.504 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1009, allocations: 48.71 MB / 411.7 MB, free: 4.719 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4097/0.5107, allocations: 74.44 MB / 486.1 MB, free: 13.24 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002138/0.5109, allocations: 62.09 kB / 486.2 MB, free: 13.21 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00575/0.5167, allocations: 1.438 MB / 487.6 MB, free: 11.97 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.934e-06/0.5167, allocations: 0 / 487.6 MB, free: 11.97 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.685e-06/0.5168, allocations: 0 / 487.6 MB, free: 11.97 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0006208/0.5174, allocations: 400.9 kB / 488 MB, free: 11.54 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.283e-05/0.5175, allocations: 8.031 kB / 488 MB, free: 11.53 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.898e-05/0.5175, allocations: 45.98 kB / 488.1 MB, free: 11.48 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.919e-05/0.5176, allocations: 7.906 kB / 488.1 MB, free: 11.47 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000117/0.5177, allocations: 170.3 kB / 488.2 MB, free: 11.27 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.766e-05/0.5177, allocations: 7.125 kB / 488.2 MB, free: 11.27 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.067e-05/0.5178, allocations: 11.42 kB / 488.3 MB, free: 11.26 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002858/0.5181, allocations: 86.55 kB / 488.3 MB, free: 11.18 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.162e-05/0.5181, allocations: 1.312 kB / 488.3 MB, free: 11.18 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.867e-05/0.5181, allocations: 6.984 kB / 488.4 MB, free: 11.18 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.613e-06/0.5181, allocations: 4 kB / 488.4 MB, free: 11.18 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001997/0.5183, allocations: 50.84 kB / 488.4 MB, free: 11.14 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006323/0.519, allocations: 322.7 kB / 488.7 MB, free: 10.8 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000251/0.5193, allocations: 103.3 kB / 488.8 MB, free: 10.71 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.128e-05/0.5193, allocations: 3.984 kB / 488.8 MB, free: 10.71 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002722/0.5196, allocations: 95.8 kB / 488.9 MB, free: 10.62 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 3.256e-06/0.5196, allocations: 0 / 488.9 MB, free: 10.62 MB / 330.7 MB Notification: Performance of matching and sorting (n=14): time 0.0005995/0.5202, allocations: 190.9 kB / 489.1 MB, free: 10.46 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.405e-05/0.5203, allocations: 67.08 kB / 489.2 MB, free: 10.39 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.975e-05/0.5204, allocations: 108 kB / 489.3 MB, free: 10.28 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.423e-05/0.5204, allocations: 32.89 kB / 489.3 MB, free: 10.25 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.461e-05/0.5205, allocations: 87.61 kB / 489.4 MB, free: 10.16 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.279e-05/0.5205, allocations: 37.7 kB / 489.4 MB, free: 10.13 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.111e-05/0.5205, allocations: 3.312 kB / 489.4 MB, free: 10.13 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.846e-05/0.5206, allocations: 322.4 kB / 489.7 MB, free: 9.812 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001237/0.5207, allocations: 38.36 kB / 489.8 MB, free: 9.781 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001433/0.5209, allocations: 75.16 kB / 489.9 MB, free: 9.703 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001575/0.5211, allocations: 62.17 kB / 489.9 MB, free: 9.66 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.856e-06/0.5211, allocations: 0 / 489.9 MB, free: 9.66 MB / 330.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003826/0.5215, allocations: 157.3 kB / 490.1 MB, free: 9.531 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.942e-05/0.5215, allocations: 4 kB / 490.1 MB, free: 9.527 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.5215, allocations: 0.7812 kB / 490.1 MB, free: 9.527 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.918e-05/0.5216, allocations: 8 kB / 490.1 MB, free: 9.52 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001769/0.5217, allocations: 23.92 kB / 490.1 MB, free: 9.496 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.628e-06/0.5218, allocations: 4 kB / 490.1 MB, free: 9.492 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001176/0.5219, allocations: 14.58 kB / 490.1 MB, free: 9.484 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.625e-05/0.5219, allocations: 4 kB / 490.1 MB, free: 9.48 MB / 330.7 MB Warning: Assuming fixed start value for the following 2 variables: firstOrderHold.firstTrigger:DISCRETE(fixed = true protected = true ) "Rising edge signals first sample instant" type: Boolean zeroOrderHold.firstTrigger:DISCRETE(fixed = true protected = true ) "Rising edge signals first sample instant" type: Boolean Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.firstOrderHold.firstTrigger,firstOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.ySample,$whenCondition1,zeroOrderHold.sampleTrigger,$whenCondition2,firstOrderHold.sampleTrigger,zeroOrderHold.ySample,$PRE.firstOrderHold.tSample,firstOrderHold.tSample,$PRE.firstOrderHold.uSample,firstOrderHold.uSample,$PRE.firstOrderHold.pre_uSample,firstOrderHold.pre_uSample,$PRE.firstOrderHold.c,firstOrderHold.c) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.000174/0.5221, allocations: 146.4 kB / 490.3 MB, free: 9.34 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.548e-05/0.5221, allocations: 7.906 kB / 490.3 MB, free: 9.332 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.905e-05/0.5222, allocations: 12.06 kB / 490.3 MB, free: 9.324 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.5222, allocations: 4 kB / 490.3 MB, free: 9.32 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.5222, allocations: 0 / 490.3 MB, free: 9.32 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.5222, allocations: 0 / 490.3 MB, free: 9.32 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006709/0.5229, allocations: 453.7 kB / 490.7 MB, free: 8.871 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.5229, allocations: 0 / 490.7 MB, free: 8.871 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.606e-05/0.523, allocations: 12 kB / 490.8 MB, free: 8.859 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.66e-06/0.523, allocations: 0 / 490.8 MB, free: 8.859 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.85e-05/0.5231, allocations: 7.984 kB / 490.8 MB, free: 8.852 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/0.5231, allocations: 0 / 490.8 MB, free: 8.852 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.5231, allocations: 3.953 kB / 490.8 MB, free: 8.848 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004072/0.5235, allocations: 257 kB / 491 MB, free: 8.613 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.272e-05/0.5236, allocations: 92.31 kB / 491.1 MB, free: 8.508 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.198e-05/0.5236, allocations: 4 kB / 491.1 MB, free: 8.504 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001604/0.5238, allocations: 15.48 kB / 491.1 MB, free: 8.492 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.351e-05/0.5239, allocations: 7.953 kB / 491.1 MB, free: 8.484 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.103e-05/0.5239, allocations: 7.984 kB / 491.1 MB, free: 8.477 MB / 330.7 MB Notification: Performance of sorting global known variables: time 5.244e-05/0.524, allocations: 95.42 kB / 491.2 MB, free: 8.391 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.524, allocations: 0 / 491.2 MB, free: 8.391 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003344/0.5243, allocations: 23.94 kB / 491.3 MB, free: 8.371 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: 11 (firstOrderHold.sampleTrigger,zeroOrderHold.sampleTrigger,$whenCondition2,$whenCondition1,zeroOrderHold.firstTrigger,zeroOrderHold.ySample,firstOrderHold.firstTrigger,firstOrderHold.tSample,firstOrderHold.uSample,firstOrderHold.pre_uSample,firstOrderHold.c) * Number of discrete states: 3 (zeroOrderHold.ySample,firstOrderHold.uSample,firstOrderHold.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.0006031/0.5249, allocations: 0.797 MB / 492.1 MB, free: 7.59 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000348/0.5253, allocations: 107.8 kB / 492.2 MB, free: 7.508 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.5253, allocations: 0 / 492.2 MB, free: 7.508 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001591/0.5255, allocations: 58.22 kB / 492.2 MB, free: 7.465 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002531/0.5257, allocations: 4 kB / 492.2 MB, free: 7.461 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001473/0.5272, allocations: 1.429 MB / 493.6 MB, free: 6.043 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001391/0.5274, allocations: 0.7004 MB / 494.4 MB, free: 5.316 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 6.837e-05/0.5275, allocations: 16.86 kB / 494.4 MB, free: 5.301 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.046e-05/0.5276, allocations: 27.42 kB / 494.4 MB, free: 5.285 MB / 330.7 MB Notification: Performance of SimCode: time 1.032e-06/0.5276, allocations: 0 / 494.4 MB, free: 5.285 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02465/0.5522, allocations: 1.867 MB / 496.3 MB, free: 3.504 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002577/0.5526, allocations: 171.2 kB / 496.4 MB, free: 3.262 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.446/2.999, allocations: 0 / 496.4 MB, free: 3.262 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Blocks.FirstOrderHold_res.mat does not exist to compare? outputFormat=mat