Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Blocks.Discrete.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.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 Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.01096/0.01097, allocations: 106.8 kB / 15.06 MB, free: 6.035 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo): time 0.001189/0.001189, allocations: 181.3 kB / 15.95 MB, free: 5.965 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo): time 1.957/1.957, allocations: 194.6 MB / 211.3 MB, free: 11.09 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo): time 0.293/0.293, allocations: 40.04 MB / 296.5 MB, free: 6.301 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006492/0.0006494, allocations: 12 kB / 361.1 MB, free: 9.543 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1174/0.1181, allocations: 54.87 MB / 416 MB, free: 2.57 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Discrete): time 0.002882/0.121, allocations: 1.562 MB / 417.6 MB, free: 0.9844 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001554/0.1226, allocations: 0.6481 MB / 418.2 MB, free: 340 kB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.379e-05/0.1227, allocations: 3.938 kB / 418.2 MB, free: 336 kB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002124/0.123, allocations: 35.81 kB / 418.3 MB, free: 300 kB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001728/0.1232, allocations: 63.83 kB / 418.3 MB, free: 236 kB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004183/0.1236, allocations: 83.83 kB / 418.4 MB, free: 152 kB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003118/0.1239, allocations: 175.6 kB / 418.6 MB, free: 15.98 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001566/0.1241, allocations: 40.36 kB / 418.6 MB, free: 15.94 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002129/0.1243, allocations: 111.6 kB / 418.7 MB, free: 15.83 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003256/0.1246, allocations: 147.5 kB / 418.9 MB, free: 15.68 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 5.054e-05/0.1247, allocations: 11.94 kB / 418.9 MB, free: 15.67 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.848e-05/0.1248, allocations: 12 kB / 418.9 MB, free: 15.66 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001246/0.1249, allocations: 67.78 kB / 419 MB, free: 15.59 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001026/0.125, allocations: 73.56 kB / 419 MB, free: 15.52 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002718/0.1253, allocations: 159.9 kB / 419.2 MB, free: 15.36 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.625e-06/0.1253, allocations: 4 kB / 419.2 MB, free: 15.36 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1253, allocations: 3.938 kB / 419.2 MB, free: 15.35 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.021e-06/0.1254, allocations: 0 / 419.2 MB, free: 15.35 MB / 362.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.001857/0.1272, allocations: 0.5974 MB / 419.8 MB, free: 14.71 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.453e-05/0.1273, allocations: 8.031 kB / 419.8 MB, free: 14.7 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.14e-05/0.1274, allocations: 58.53 kB / 419.9 MB, free: 14.64 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.187e-05/0.1275, allocations: 27.72 kB / 419.9 MB, free: 14.61 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003869/0.1279, allocations: 247.5 kB / 420.1 MB, free: 14.32 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.773e-05/0.1279, allocations: 19.98 kB / 420.1 MB, free: 14.3 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.752e-05/0.128, allocations: 31.88 kB / 420.2 MB, free: 14.27 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006536/0.1287, allocations: 221.5 kB / 420.4 MB, free: 14.05 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.262e-05/0.1287, allocations: 0 / 420.4 MB, free: 14.05 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.231e-05/0.1288, allocations: 15.97 kB / 420.4 MB, free: 14.04 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.327e-06/0.1288, allocations: 4 kB / 420.4 MB, free: 14.03 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004893/0.1293, allocations: 139.9 kB / 420.5 MB, free: 13.89 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001549/0.1308, allocations: 0.5587 MB / 421.1 MB, free: 13.29 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008217/0.1317, allocations: 322.8 kB / 421.4 MB, free: 12.96 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.722e-05/0.1317, allocations: 4 kB / 421.4 MB, free: 12.96 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006398/0.1324, allocations: 251.4 kB / 421.7 MB, free: 12.7 MB / 362.7 MB Notification: Performance of pre-optimization done (n=43): time 3.346e-06/0.1324, allocations: 0 / 421.7 MB, free: 12.7 MB / 362.7 MB Notification: Performance of matching and sorting (n=43): time 0.001656/0.1341, allocations: 0.5684 MB / 422.2 MB, free: 12.12 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.128e-05/0.1342, allocations: 71.39 kB / 422.3 MB, free: 12.04 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000318/0.1345, allocations: 211.7 kB / 422.5 MB, free: 11.83 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.102e-05/0.1346, allocations: 45.7 kB / 422.6 MB, free: 11.78 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001156/0.1347, allocations: 129 kB / 422.7 MB, free: 11.64 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000135/0.1348, allocations: 106.8 kB / 422.8 MB, free: 11.54 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.712e-05/0.1349, allocations: 8 kB / 422.8 MB, free: 11.53 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001754/0.1351, allocations: 350.8 kB / 423.1 MB, free: 11.18 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003246/0.1354, allocations: 105 kB / 423.2 MB, free: 11.07 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004823/0.1359, allocations: 281.5 kB / 423.5 MB, free: 10.72 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004201/0.1363, allocations: 151.8 kB / 423.7 MB, free: 10.57 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.29e-06/0.1364, allocations: 0 / 423.7 MB, free: 10.57 MB / 362.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.00109/0.1375, allocations: 449.3 kB / 424.1 MB, free: 10.12 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.341e-05/0.1375, allocations: 8 kB / 424.1 MB, free: 10.12 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.359e-05/0.1375, allocations: 4 kB / 424.1 MB, free: 10.11 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.589e-05/0.1376, allocations: 12 kB / 424.1 MB, free: 10.1 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003557/0.1379, allocations: 59.84 kB / 424.2 MB, free: 10.04 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.973e-05/0.138, allocations: 15.94 kB / 424.2 MB, free: 10.03 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002981/0.1383, allocations: 47.62 kB / 424.2 MB, free: 9.98 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.613e-05/0.1383, allocations: 28.06 kB / 424.3 MB, free: 9.953 MB / 362.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.0003186/0.1387, allocations: 201.7 kB / 424.5 MB, free: 9.746 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.976e-05/0.1388, allocations: 23.72 kB / 424.5 MB, free: 9.723 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.301e-05/0.1389, allocations: 38.86 kB / 424.5 MB, free: 9.688 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.454e-05/0.1389, allocations: 4 kB / 424.5 MB, free: 9.684 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.433e-06/0.1389, allocations: 0 / 424.5 MB, free: 9.684 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.743e-06/0.1389, allocations: 0 / 424.5 MB, free: 9.684 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002381/0.1413, allocations: 0.9475 MB / 425.5 MB, free: 8.68 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.672e-06/0.1413, allocations: 0 / 425.5 MB, free: 8.68 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001286/0.1415, allocations: 19.92 kB / 425.5 MB, free: 8.66 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.288e-06/0.1415, allocations: 3.953 kB / 425.5 MB, free: 8.656 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.088e-05/0.1415, allocations: 11.98 kB / 425.5 MB, free: 8.645 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.464e-06/0.1416, allocations: 4 kB / 425.5 MB, free: 8.641 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.1416, allocations: 0 / 425.5 MB, free: 8.641 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001269/0.1428, allocations: 0.5575 MB / 426.1 MB, free: 8.066 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.245e-05/0.143, allocations: 112.7 kB / 426.2 MB, free: 7.938 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.941e-05/0.1431, allocations: 23.94 kB / 426.2 MB, free: 7.914 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003937/0.1435, allocations: 31.97 kB / 426.2 MB, free: 7.883 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001019/0.1436, allocations: 27.95 kB / 426.3 MB, free: 7.855 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.088e-05/0.1437, allocations: 23.98 kB / 426.3 MB, free: 7.832 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000186/0.1439, allocations: 145.5 kB / 426.4 MB, free: 7.691 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.1439, allocations: 0 / 426.4 MB, free: 7.691 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005819/0.1445, allocations: 71.98 kB / 426.5 MB, free: 7.621 MB / 362.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.001665/0.1461, allocations: 1.129 MB / 427.6 MB, free: 6.465 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0009751/0.1471, allocations: 332.8 kB / 428 MB, free: 6.141 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.1472, allocations: 0 / 428 MB, free: 6.141 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004617/0.1476, allocations: 168.1 kB / 428.1 MB, free: 5.977 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004397/0.1481, allocations: 39.88 kB / 428.2 MB, free: 5.938 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005802/0.1539, allocations: 5.578 MB / 433.7 MB, free: 196 kB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004942/0.1544, allocations: 0.7686 MB / 434.5 MB, free: 15.4 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001715/0.1546, allocations: 38.95 kB / 434.6 MB, free: 15.36 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001957/0.1548, allocations: 83.41 kB / 434.6 MB, free: 15.27 MB / 378.7 MB Notification: Performance of SimCode: time 1.112e-06/0.1548, allocations: 0 / 434.6 MB, free: 15.27 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02814/0.183, allocations: 5.013 MB / 439.6 MB, free: 10.34 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003169/0.1834, allocations: 170.3 kB / 439.8 MB, free: 10.09 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.436/2.619, allocations: 0 / 439.8 MB, free: 10.09 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