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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.499/2.499, allocations: 235.1 MB / 243 MB, free: 9.574 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.098e-05/2.11e-05, allocations: 4 kB / 303.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3405/0.3406, allocations: 54.85 MB / 358.1 MB, free: 14.93 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1508/0.4915, allocations: 82.32 MB / 440.4 MB, free: 12.49 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002434/0.4918, allocations: 59.97 kB / 440.5 MB, free: 12.43 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01882/0.5106, allocations: 3.898 MB / 444.4 MB, free: 8.512 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.5107, allocations: 3.938 kB / 444.4 MB, free: 8.508 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.854e-05/0.5107, allocations: 4 kB / 444.4 MB, free: 8.504 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.001594/0.5123, allocations: 0.5758 MB / 445 MB, free: 7.879 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.898e-05/0.5124, allocations: 8.031 kB / 445 MB, free: 7.871 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.648e-05/0.5125, allocations: 27.72 kB / 445 MB, free: 7.844 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004151/0.5129, allocations: 239.6 kB / 445.2 MB, free: 7.566 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.771e-05/0.5129, allocations: 11.98 kB / 445.3 MB, free: 7.555 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.953e-05/0.513, allocations: 19.98 kB / 445.3 MB, free: 7.535 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003786/0.5134, allocations: 107.9 kB / 445.4 MB, free: 7.43 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005637/0.514, allocations: 205.5 kB / 445.6 MB, free: 7.223 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.249e-05/0.514, allocations: 224 / 445.6 MB, free: 7.223 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.198e-05/0.5141, allocations: 11.95 kB / 445.6 MB, free: 7.211 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.121e-05/0.5141, allocations: 11.92 kB / 445.6 MB, free: 7.199 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00148/0.5156, allocations: 0.5202 MB / 446.1 MB, free: 6.641 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000684/0.5163, allocations: 283 kB / 446.4 MB, free: 6.355 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002927/0.5166, allocations: 112.8 kB / 446.5 MB, free: 6.242 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.663e-05/0.5166, allocations: 4 kB / 446.5 MB, free: 6.238 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005261/0.5172, allocations: 215.2 kB / 446.7 MB, free: 6.016 MB / 378.7 MB Notification: Performance of pre-optimization done (n=43): time 2.755e-06/0.5172, allocations: 0 / 446.7 MB, free: 6.016 MB / 378.7 MB Notification: Performance of matching and sorting (n=43): time 0.001113/0.5183, allocations: 421.5 kB / 447.1 MB, free: 5.598 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.981e-05/0.5184, allocations: 79.38 kB / 447.2 MB, free: 5.508 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002691/0.5187, allocations: 183 kB / 447.4 MB, free: 5.324 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.418e-05/0.5187, allocations: 37.7 kB / 447.4 MB, free: 5.281 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000125/0.5189, allocations: 183.7 kB / 447.6 MB, free: 5.098 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001331/0.519, allocations: 94.86 kB / 447.7 MB, free: 5.004 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.974e-05/0.5191, allocations: 0 / 447.7 MB, free: 5.004 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001664/0.5192, allocations: 330.8 kB / 448 MB, free: 4.672 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002365/0.5195, allocations: 81.12 kB / 448.1 MB, free: 4.594 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004285/0.5199, allocations: 270.5 kB / 448.4 MB, free: 4.25 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003444/0.5203, allocations: 127.9 kB / 448.5 MB, free: 4.125 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.466e-06/0.5203, allocations: 4 kB / 448.5 MB, free: 4.121 MB / 378.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0008798/0.5212, allocations: 361 kB / 448.9 MB, free: 3.762 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.55e-05/0.5212, allocations: 8 kB / 448.9 MB, free: 3.754 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.383e-05/0.5213, allocations: 4 kB / 448.9 MB, free: 3.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.683e-05/0.5213, allocations: 15.98 kB / 448.9 MB, free: 3.734 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003922/0.5217, allocations: 59.84 kB / 448.9 MB, free: 3.676 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.094e-05/0.5217, allocations: 16.5 kB / 449 MB, free: 3.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002911/0.522, allocations: 31.77 kB / 449 MB, free: 3.629 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.422e-05/0.5221, allocations: 24 kB / 449 MB, free: 3.605 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.0002296/0.5224, allocations: 156.8 kB / 449.2 MB, free: 3.445 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001043/0.5234, allocations: 421.4 kB / 449.6 MB, free: 3.027 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.645e-05/0.5235, allocations: 39.55 kB / 449.6 MB, free: 2.988 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.796e-05/0.5236, allocations: 27.41 kB / 449.6 MB, free: 2.965 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.975e-06/0.5236, allocations: 4 kB / 449.6 MB, free: 2.961 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.995e-06/0.5236, allocations: 4 kB / 449.6 MB, free: 2.957 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.114e-05/0.5236, allocations: 3.984 kB / 449.7 MB, free: 2.953 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002125/0.5258, allocations: 0.8464 MB / 450.5 MB, free: 2.062 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.412e-06/0.5258, allocations: 4 kB / 450.5 MB, free: 2.059 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001264/0.5259, allocations: 15.92 kB / 450.5 MB, free: 2.043 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.009e-05/0.526, allocations: 4 kB / 450.5 MB, free: 2.039 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.951e-05/0.526, allocations: 11.98 kB / 450.5 MB, free: 2.027 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.4e-06/0.526, allocations: 4 kB / 450.5 MB, free: 2.023 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.39e-06/0.5261, allocations: 3.953 kB / 450.5 MB, free: 2.02 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001094/0.5272, allocations: 0.5152 MB / 451.1 MB, free: 1.488 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.674e-05/0.5273, allocations: 108.8 kB / 451.2 MB, free: 1.363 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001053/0.5274, allocations: 19.97 kB / 451.2 MB, free: 1.344 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004034/0.5278, allocations: 27.97 kB / 451.2 MB, free: 1.316 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.829e-05/0.5279, allocations: 27.95 kB / 451.2 MB, free: 1.289 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.495e-05/0.528, allocations: 27.94 kB / 451.3 MB, free: 1.262 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000181/0.5282, allocations: 141.5 kB / 451.4 MB, free: 1.125 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5282, allocations: 0 / 451.4 MB, free: 1.125 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00056/0.5288, allocations: 56 kB / 451.5 MB, free: 1.07 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.001539/0.5303, allocations: 1.084 MB / 452.5 MB, free: 15.95 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0007629/0.5311, allocations: 279.7 kB / 452.8 MB, free: 15.68 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.5311, allocations: 0 / 452.8 MB, free: 15.68 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003827/0.5315, allocations: 157.4 kB / 453 MB, free: 15.53 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004612/0.532, allocations: 49.11 kB / 453 MB, free: 15.48 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001846/0.5338, allocations: 469.6 kB / 453.5 MB, free: 14.98 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004874/0.5343, allocations: 0.7728 MB / 454.2 MB, free: 14.18 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001976/0.5346, allocations: 83.41 kB / 454.3 MB, free: 14.1 MB / 394.7 MB Notification: Performance of SimCode: time 1.042e-06/0.5346, allocations: 0 / 454.3 MB, free: 14.1 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.716/3.25, allocations: 4.328 MB / 458.7 MB, free: 9.777 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