Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.Discrete.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) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Discrete,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Blocks_Discrete",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.505/2.505, allocations: 235 MB / 248.1 MB, free: 14.4 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.829e-05/3.838e-05, allocations: 4 kB / 309.8 MB, free: 1.234 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4123/0.4123, allocations: 54.84 MB / 364.6 MB, free: 5.535 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1836/0.596, allocations: 82.99 MB / 447.6 MB, free: 13.49 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002308/0.5963, allocations: 62 kB / 447.7 MB, free: 13.43 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01881/0.6151, allocations: 3.938 MB / 451.6 MB, free: 9.5 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.6152, allocations: 0 / 451.6 MB, free: 9.5 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.928e-05/0.6152, allocations: 8 kB / 451.6 MB, free: 9.492 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.001518/0.6167, allocations: 0.5616 MB / 452.2 MB, free: 8.883 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.038e-05/0.6168, allocations: 8.031 kB / 452.2 MB, free: 8.875 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.363e-05/0.6169, allocations: 54.55 kB / 452.2 MB, free: 8.812 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.408e-05/0.617, allocations: 31.61 kB / 452.3 MB, free: 8.781 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003821/0.6174, allocations: 231.7 kB / 452.5 MB, free: 8.512 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.225e-05/0.6174, allocations: 19.98 kB / 452.5 MB, free: 8.492 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.25e-05/0.6175, allocations: 24 kB / 452.5 MB, free: 8.469 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005913/0.6181, allocations: 209.5 kB / 452.7 MB, free: 8.258 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.709e-05/0.6181, allocations: 5 kB / 452.7 MB, free: 8.254 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.289e-05/0.6182, allocations: 15.94 kB / 452.8 MB, free: 8.238 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.648e-06/0.6182, allocations: 7.938 kB / 452.8 MB, free: 8.23 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003998/0.6186, allocations: 127.9 kB / 452.9 MB, free: 8.105 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001483/0.6201, allocations: 0.5587 MB / 453.5 MB, free: 7.496 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007593/0.6209, allocations: 306.9 kB / 453.8 MB, free: 7.188 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003549/0.6213, allocations: 120.8 kB / 453.9 MB, free: 7.066 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.758e-05/0.6213, allocations: 4 kB / 453.9 MB, free: 7.062 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005822/0.6219, allocations: 244.5 kB / 454.1 MB, free: 6.812 MB / 378.7 MB Notification: Performance of pre-optimization done (n=43): time 3.958e-06/0.6219, allocations: 0 / 454.1 MB, free: 6.812 MB / 378.7 MB Notification: Performance of matching and sorting (n=43): time 0.001188/0.6231, allocations: 437.1 kB / 454.5 MB, free: 6.379 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.568e-05/0.6232, allocations: 75.34 kB / 454.6 MB, free: 6.293 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002751/0.6235, allocations: 187 kB / 454.8 MB, free: 6.102 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.346e-05/0.6236, allocations: 45.69 kB / 454.8 MB, free: 6.051 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001172/0.6237, allocations: 187.4 kB / 455 MB, free: 5.863 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001313/0.6239, allocations: 102.8 kB / 455.1 MB, free: 5.762 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.78e-05/0.6239, allocations: 8 kB / 455.1 MB, free: 5.754 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000145/0.6241, allocations: 339.2 kB / 455.5 MB, free: 5.414 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002678/0.6243, allocations: 93.11 kB / 455.6 MB, free: 5.324 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004196/0.6248, allocations: 277.4 kB / 455.8 MB, free: 4.965 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003909/0.6252, allocations: 148.5 kB / 456 MB, free: 4.82 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.501e-06/0.6252, allocations: 0 / 456 MB, free: 4.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009625/0.6262, allocations: 417.2 kB / 456.4 MB, free: 4.406 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.694e-05/0.6262, allocations: 8 kB / 456.4 MB, free: 4.398 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.339e-05/0.6262, allocations: 4 kB / 456.4 MB, free: 4.395 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.92e-05/0.6263, allocations: 12 kB / 456.4 MB, free: 4.383 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003779/0.6267, allocations: 59.84 kB / 456.5 MB, free: 4.324 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.642e-05/0.6267, allocations: 20.67 kB / 456.5 MB, free: 4.305 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003016/0.627, allocations: 40.08 kB / 456.5 MB, free: 4.266 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.299e-05/0.6271, allocations: 24 kB / 456.5 MB, free: 4.242 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 () * 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.0002236/0.6273, allocations: 168.7 kB / 456.7 MB, free: 4.07 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.258e-05/0.6274, allocations: 31.62 kB / 456.7 MB, free: 4.039 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.725e-05/0.6275, allocations: 30.77 kB / 456.8 MB, free: 4.012 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.157e-05/0.6275, allocations: 8.031 kB / 456.8 MB, free: 4.004 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.029e-05/0.6275, allocations: 0 / 456.8 MB, free: 4.004 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.6275, allocations: 8.625 kB / 456.8 MB, free: 3.996 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002242/0.6298, allocations: 0.921 MB / 457.7 MB, free: 3.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.399e-06/0.6298, allocations: 4 kB / 457.7 MB, free: 3.016 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001268/0.63, allocations: 19.92 kB / 457.7 MB, free: 2.996 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.174e-06/0.63, allocations: 0 / 457.7 MB, free: 2.996 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.388e-05/0.63, allocations: 11.98 kB / 457.7 MB, free: 2.984 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.68e-06/0.63, allocations: 3.953 kB / 457.7 MB, free: 2.98 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.6301, allocations: 0 / 457.7 MB, free: 2.98 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001129/0.6312, allocations: 0.535 MB / 458.3 MB, free: 2.43 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.602e-05/0.6313, allocations: 104.7 kB / 458.4 MB, free: 2.309 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.079e-05/0.6314, allocations: 19.98 kB / 458.4 MB, free: 2.289 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004033/0.6318, allocations: 35.95 kB / 458.4 MB, free: 2.254 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.863e-05/0.6319, allocations: 31.92 kB / 458.5 MB, free: 2.223 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.911e-05/0.632, allocations: 15.98 kB / 458.5 MB, free: 2.207 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001912/0.6322, allocations: 149.5 kB / 458.6 MB, free: 2.062 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.6322, allocations: 4 kB / 458.6 MB, free: 2.059 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005467/0.6328, allocations: 75.98 kB / 458.7 MB, free: 1.984 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) * 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.001536/0.6343, allocations: 1.104 MB / 459.8 MB, free: 0.8555 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008494/0.6352, allocations: 311.7 kB / 460.1 MB, free: 0.5508 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.6352, allocations: 0 / 460.1 MB, free: 0.5508 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004155/0.6356, allocations: 164.2 kB / 460.3 MB, free: 400 kB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000432/0.6361, allocations: 42.72 kB / 460.3 MB, free: 360 kB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00191/0.638, allocations: 499.2 kB / 460.8 MB, free: 15.82 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004021/0.6384, allocations: 0.7686 MB / 461.6 MB, free: 15.02 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000195/0.6386, allocations: 87.41 kB / 461.7 MB, free: 14.94 MB / 394.7 MB Notification: Performance of SimCode: time 2.635e-06/0.6387, allocations: 3.938 kB / 461.7 MB, free: 14.93 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.467/3.105, allocations: 4.355 MB / 466 MB, free: 10.59 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.Discrete_res.mat does not exist to compare? outputFormat=mat