Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Blocks.Discrete.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Discrete,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Blocks_Discrete",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.01004/0.01004, allocations: 173.3 kB / 15.12 MB, free: 5.984 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 2.09/2.09, allocations: 194.5 MB / 210.3 MB, free: 7.609 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.002104/0.002104, allocations: 108.7 kB / 255.6 MB, free: 10.24 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.2497/0.2497, allocations: 40 MB / 340.8 MB, free: 11.39 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004677/0.0004676, allocations: 12.44 kB / 406.3 MB, free: 51.82 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.1014, allocations: 54.87 MB / 461.1 MB, free: 3.223 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1622/0.2637, allocations: 83.09 MB / 0.5315 GB, free: 16 kB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.3177/0.5815, allocations: 58.64 kB / 0.5315 GB, free: 82.29 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01893/0.6005, allocations: 3.938 MB / 0.5354 GB, free: 81.74 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.715e-06/0.6005, allocations: 0 / 0.5354 GB, free: 81.74 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.993e-05/0.6006, allocations: 9.438 kB / 0.5354 GB, free: 81.74 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.001647/0.6022, allocations: 0.5956 MB / 0.536 GB, free: 81.29 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.992e-05/0.6023, allocations: 9.75 kB / 0.536 GB, free: 81.29 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001047/0.6024, allocations: 55.38 kB / 0.536 GB, free: 81.25 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.809e-05/0.6025, allocations: 31.5 kB / 0.536 GB, free: 81.23 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003459/0.6029, allocations: 240.2 kB / 0.5363 GB, free: 81.01 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.415e-05/0.6029, allocations: 15.45 kB / 0.5363 GB, free: 81.01 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.402e-05/0.603, allocations: 28.59 kB / 0.5363 GB, free: 81.01 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006702/0.6037, allocations: 221.8 kB / 0.5365 GB, free: 80.97 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.307e-05/0.6037, allocations: 1.031 kB / 0.5365 GB, free: 80.97 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.11e-05/0.6038, allocations: 12.47 kB / 0.5365 GB, free: 80.97 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.454e-05/0.6038, allocations: 8.094 kB / 0.5366 GB, free: 80.96 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000486/0.6043, allocations: 138.2 kB / 0.5367 GB, free: 80.96 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001524/0.6058, allocations: 0.5596 MB / 0.5372 GB, free: 80.68 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000794/0.6066, allocations: 328.6 kB / 0.5375 GB, free: 80.64 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.775e-05/0.6067, allocations: 5.219 kB / 0.5375 GB, free: 80.64 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006225/0.6073, allocations: 254.6 kB / 0.5378 GB, free: 80.57 MB / 378.7 MB Notification: Performance of pre-optimization done (n=43): time 3.607e-06/0.6073, allocations: 0 / 0.5378 GB, free: 80.57 MB / 378.7 MB Notification: Performance of matching and sorting (n=43): time 0.001758/0.6091, allocations: 0.562 MB / 0.5383 GB, free: 80.52 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.795e-05/0.6092, allocations: 72 kB / 0.5384 GB, free: 80.46 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003039/0.6095, allocations: 193.7 kB / 0.5386 GB, free: 80.35 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.216e-05/0.6096, allocations: 45.31 kB / 0.5386 GB, free: 80.32 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001016/0.6097, allocations: 130.2 kB / 0.5388 GB, free: 80.23 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001359/0.6099, allocations: 101 kB / 0.5389 GB, free: 80.18 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.393e-05/0.6099, allocations: 11.19 kB / 0.5389 GB, free: 80.18 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001096/0.61, allocations: 346.6 kB / 0.5392 GB, free: 79.86 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003355/0.6104, allocations: 107.7 kB / 0.5393 GB, free: 79.86 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004534/0.6109, allocations: 282.6 kB / 0.5396 GB, free: 79.63 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004513/0.6113, allocations: 151 kB / 0.5397 GB, free: 79.61 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.845e-06/0.6113, allocations: 1.469 kB / 0.5397 GB, free: 79.61 MB / 378.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001167/0.6125, allocations: 446.4 kB / 0.5401 GB, free: 79.52 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.508e-05/0.6126, allocations: 7.219 kB / 0.5401 GB, free: 79.52 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.51e-05/0.6126, allocations: 7.25 kB / 0.5402 GB, free: 79.52 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.71e-05/0.6127, allocations: 10.53 kB / 0.5402 GB, free: 79.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003718/0.6131, allocations: 65.31 kB / 0.5402 GB, free: 79.51 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.221e-05/0.6131, allocations: 17.2 kB / 0.5402 GB, free: 79.51 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003203/0.6134, allocations: 38.05 kB / 0.5403 GB, free: 79.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.427e-05/0.6135, allocations: 22.47 kB / 0.5403 GB, free: 79.5 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 62 ($PRE.triggeredMax.y,triggeredMax.y,$PRE.triggeredSampler.y,triggeredSampler.y,$PRE.stateSpace.firstTrigger,stateSpace.firstTrigger,$PRE.stateSpace.x[1],stateSpace.x[1],$PRE.stateSpace.x[2],stateSpace.x[2],$PRE.stateSpace.y[1],stateSpace.y[1],$PRE.transferFunction.firstTrigger,transferFunction.firstTrigger,$PRE.transferFunction.x1,transferFunction.x1,$PRE.transferFunction.xext[1],transferFunction.xext[1],$PRE.transferFunction.xext[2],transferFunction.xext[2],$PRE.transferFunction.x[1],transferFunction.x[1],$PRE.transferFunction.y,transferFunction.y,$PRE.unitDelay.firstTrigger,unitDelay.firstTrigger,$PRE.unitDelay.y,unitDelay.y,$PRE.firstOrderHold.firstTrigger,firstOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.sampler.firstTrigger,sampler.firstTrigger,$whenCondition8,$whenCondition1,sampler.sampleTrigger,$PRE.zeroOrderHold.ySample,$whenCondition2,zeroOrderHold.sampleTrigger,$whenCondition3,firstOrderHold.sampleTrigger,$whenCondition4,unitDelay.sampleTrigger,$whenCondition5,transferFunction.sampleTrigger,$whenCondition6,stateSpace.sampleTrigger,$whenCondition7,booleanPulse.y,$PRE.booleanPulse.pulsStart,booleanPulse.pulsStart,sampler.y,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 (66): * Single equations (assignments): 66 * 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.0003502/0.6138, allocations: 204.4 kB / 0.5405 GB, free: 79.36 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.21e-05/0.6139, allocations: 30.5 kB / 0.5405 GB, free: 79.34 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.504e-05/0.614, allocations: 29.73 kB / 0.5406 GB, free: 79.33 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.526e-06/0.614, allocations: 5.406 kB / 0.5406 GB, free: 79.33 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.087e-05/0.6141, allocations: 0 / 0.5406 GB, free: 79.33 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.188e-06/0.6141, allocations: 2.109 kB / 0.5406 GB, free: 79.33 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002236/0.6163, allocations: 0.9507 MB / 0.5415 GB, free: 78.99 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.987e-06/0.6164, allocations: 0 / 0.5415 GB, free: 78.99 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001311/0.6165, allocations: 18.17 kB / 0.5415 GB, free: 78.99 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.548e-06/0.6165, allocations: 3.375 kB / 0.5415 GB, free: 78.99 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.449e-05/0.6166, allocations: 17.73 kB / 0.5415 GB, free: 78.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.563e-06/0.6166, allocations: 5.875 kB / 0.5415 GB, free: 78.98 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.327e-06/0.6166, allocations: 3.953 kB / 0.5415 GB, free: 78.98 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001198/0.6178, allocations: 0.5492 MB / 0.5421 GB, free: 78.82 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.555e-05/0.6179, allocations: 99.64 kB / 0.5422 GB, free: 78.71 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.535e-05/0.6181, allocations: 22.39 kB / 0.5422 GB, free: 78.71 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004111/0.6185, allocations: 39.34 kB / 0.5422 GB, free: 78.71 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.688e-05/0.6186, allocations: 26.55 kB / 0.5423 GB, free: 78.71 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.735e-05/0.6186, allocations: 21.75 kB / 0.5423 GB, free: 78.71 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001886/0.6188, allocations: 147 kB / 0.5424 GB, free: 78.63 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.6188, allocations: 0 / 0.5424 GB, free: 78.63 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000618/0.6195, allocations: 82.59 kB / 0.5425 GB, free: 78.62 MB / 378.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: 39 (booleanPulse.y,stateSpace.sampleTrigger,transferFunction.sampleTrigger,unitDelay.sampleTrigger,firstOrderHold.sampleTrigger,zeroOrderHold.sampleTrigger,sampler.sampleTrigger,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,sampler.firstTrigger,sampler.y,zeroOrderHold.firstTrigger,zeroOrderHold.ySample,firstOrderHold.firstTrigger,firstOrderHold.tSample,firstOrderHold.uSample,firstOrderHold.pre_uSample,firstOrderHold.c,unitDelay.firstTrigger,unitDelay.y,transferFunction.firstTrigger,transferFunction.y,transferFunction.x[1],transferFunction.x1,transferFunction.xext[1],transferFunction.xext[2],stateSpace.firstTrigger,stateSpace.y[1],stateSpace.x[1],stateSpace.x[2],triggeredSampler.y,booleanPulse.pulsStart,triggeredMax.y) * Number of discrete states: 8 (zeroOrderHold.ySample,triggeredMax.y,stateSpace.x[1],stateSpace.x[2],transferFunction.x[1],unitDelay.u,firstOrderHold.uSample,firstOrderHold.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 24 * 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.001446/0.6209, allocations: 1.12 MB / 0.5436 GB, free: 77.93 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009624/0.6219, allocations: 333.5 kB / 0.5439 GB, free: 77.87 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.6219, allocations: 1.562 kB / 0.5439 GB, free: 77.87 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004297/0.6224, allocations: 169.1 kB / 0.5441 GB, free: 77.82 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000465/0.6229, allocations: 37.52 kB / 0.5441 GB, free: 77.81 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004722/0.6276, allocations: 5.576 MB / 0.5495 GB, free: 72.86 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000274/0.6279, allocations: 0.7696 MB / 0.5503 GB, free: 72.16 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001856/0.6281, allocations: 36.08 kB / 0.5503 GB, free: 72.15 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001688/0.6283, allocations: 81.38 kB / 0.5504 GB, free: 72.1 MB / 378.7 MB Notification: Performance of SimCode: time 1.012e-06/0.6283, allocations: 0 / 0.5504 GB, free: 72.1 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03108/0.6594, allocations: 5.021 MB / 0.5553 GB, free: 69.71 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002877/0.6598, allocations: 158.6 kB / 0.5555 GB, free: 69.48 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.616/3.276, allocations: 0 / 0.5555 GB, free: 69.48 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Blocks.Discrete_res.mat does not exist to compare? outputFormat=mat