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.01431/0.01431, allocations: 176.3 kB / 15.13 MB, free: 6.023 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.078/2.078, allocations: 194.5 MB / 210.3 MB, free: 7.598 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.001821/0.001821, allocations: 120 kB / 255.6 MB, free: 10.21 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.2799/0.2799, allocations: 40.01 MB / 340.8 MB, free: 11.39 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000502/0.0005023, allocations: 14.06 kB / 406.3 MB, free: 51.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1018, allocations: 54.88 MB / 461.2 MB, free: 3.172 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Discrete): time 0.002387/0.1042, allocations: 1.574 MB / 462.7 MB, free: 1.574 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001462/0.1058, allocations: 0.6404 MB / 463.4 MB, free: 0.9297 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001141/0.1059, allocations: 7.938 kB / 463.4 MB, free: 0.9219 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002133/0.1061, allocations: 27.83 kB / 463.4 MB, free: 0.8945 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000141/0.1063, allocations: 59.61 kB / 463.5 MB, free: 0.8359 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004357/0.1067, allocations: 91.83 kB / 463.5 MB, free: 0.7461 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000258/0.107, allocations: 243.2 kB / 463.8 MB, free: 0.5078 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001655/0.1072, allocations: 44.31 kB / 463.8 MB, free: 472 kB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001934/0.1074, allocations: 103.6 kB / 463.9 MB, free: 368 kB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002665/0.1077, allocations: 151.4 kB / 464.1 MB, free: 216 kB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.732e-05/0.1077, allocations: 11.94 kB / 464.1 MB, free: 204 kB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.076e-05/0.1078, allocations: 16 kB / 464.1 MB, free: 188 kB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000101/0.1079, allocations: 71.78 kB / 464.2 MB, free: 116 kB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.267e-05/0.108, allocations: 65.58 kB / 464.2 MB, free: 44 kB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002883/0.1083, allocations: 167.5 kB / 464.4 MB, free: 15.88 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.1083, allocations: 0 / 464.4 MB, free: 15.88 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.1083, allocations: 0 / 464.4 MB, free: 15.88 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.761e-06/0.1083, allocations: 0 / 464.4 MB, free: 15.88 MB / 314.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.001944/0.1103, allocations: 0.6091 MB / 465 MB, free: 15.23 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.683e-05/0.1104, allocations: 12.03 kB / 465 MB, free: 15.21 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.651e-05/0.1105, allocations: 46.55 kB / 465.1 MB, free: 15.16 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.829e-05/0.1106, allocations: 31.7 kB / 465.1 MB, free: 15.13 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003974/0.111, allocations: 247.5 kB / 465.3 MB, free: 14.84 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.161e-05/0.111, allocations: 20 kB / 465.4 MB, free: 14.82 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.478e-05/0.1111, allocations: 23.98 kB / 465.4 MB, free: 14.8 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000716/0.1118, allocations: 221.5 kB / 465.6 MB, free: 14.58 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.698e-05/0.1119, allocations: 3.984 kB / 465.6 MB, free: 14.57 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.948e-05/0.1119, allocations: 7.953 kB / 465.6 MB, free: 14.57 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.427e-06/0.1119, allocations: 4 kB / 465.6 MB, free: 14.56 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004881/0.1124, allocations: 139.8 kB / 465.8 MB, free: 14.43 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001574/0.114, allocations: 0.5704 MB / 466.3 MB, free: 13.8 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008192/0.1149, allocations: 306.8 kB / 466.6 MB, free: 13.5 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003812/0.1153, allocations: 132.8 kB / 466.8 MB, free: 13.37 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.026e-05/0.1153, allocations: 11.98 kB / 466.8 MB, free: 13.36 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006689/0.116, allocations: 255.4 kB / 467 MB, free: 13.09 MB / 314.7 MB Notification: Performance of pre-optimization done (n=43): time 3.607e-06/0.116, allocations: 0 / 467 MB, free: 13.09 MB / 314.7 MB Notification: Performance of matching and sorting (n=43): time 0.001701/0.1177, allocations: 0.5723 MB / 467.6 MB, free: 12.52 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.692e-05/0.1179, allocations: 71.39 kB / 467.7 MB, free: 12.43 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003044/0.1182, allocations: 203.7 kB / 467.9 MB, free: 12.23 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.666e-05/0.1182, allocations: 49.69 kB / 467.9 MB, free: 12.17 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001226/0.1184, allocations: 125 kB / 468 MB, free: 12.04 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001419/0.1185, allocations: 110.7 kB / 468.1 MB, free: 11.93 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.605e-05/0.1186, allocations: 8 kB / 468.1 MB, free: 11.93 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001938/0.1188, allocations: 350.8 kB / 468.5 MB, free: 11.57 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003226/0.1191, allocations: 101.1 kB / 468.6 MB, free: 11.48 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005162/0.1196, allocations: 289.4 kB / 468.9 MB, free: 11.11 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004325/0.1201, allocations: 151.9 kB / 469 MB, free: 10.96 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.372e-06/0.1201, allocations: 0 / 469 MB, free: 10.96 MB / 314.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001121/0.1212, allocations: 445.4 kB / 469.4 MB, free: 10.52 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.566e-05/0.1213, allocations: 8 kB / 469.5 MB, free: 10.51 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.371e-05/0.1213, allocations: 4 kB / 469.5 MB, free: 10.51 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.236e-05/0.1214, allocations: 15.94 kB / 469.5 MB, free: 10.49 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003733/0.1217, allocations: 59.84 kB / 469.5 MB, free: 10.43 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.477e-05/0.1218, allocations: 19.86 kB / 469.6 MB, free: 10.41 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003034/0.1221, allocations: 39.75 kB / 469.6 MB, free: 10.38 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.535e-05/0.1221, allocations: 20 kB / 469.6 MB, free: 10.36 MB / 314.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.0003418/0.1225, allocations: 209.6 kB / 469.8 MB, free: 10.14 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.105e-05/0.1226, allocations: 31.62 kB / 469.8 MB, free: 10.11 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.63e-05/0.1227, allocations: 26.98 kB / 469.9 MB, free: 10.09 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.129e-05/0.1227, allocations: 8 kB / 469.9 MB, free: 10.08 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.546e-06/0.1227, allocations: 0 / 469.9 MB, free: 10.08 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.396e-06/0.1227, allocations: 3.984 kB / 469.9 MB, free: 10.07 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002407/0.1252, allocations: 0.9437 MB / 470.8 MB, free: 9.074 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.137e-06/0.1252, allocations: 4 kB / 470.8 MB, free: 9.07 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001228/0.1253, allocations: 12 kB / 470.8 MB, free: 9.059 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.372e-06/0.1253, allocations: 0 / 470.8 MB, free: 9.059 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.356e-05/0.1254, allocations: 15.97 kB / 470.9 MB, free: 9.043 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.887e-06/0.1254, allocations: 7.953 kB / 470.9 MB, free: 9.035 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-06/0.1254, allocations: 0 / 470.9 MB, free: 9.035 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001253/0.1267, allocations: 0.5574 MB / 471.4 MB, free: 8.461 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.285e-05/0.1268, allocations: 104.7 kB / 471.5 MB, free: 8.34 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.426e-05/0.1269, allocations: 19.98 kB / 471.5 MB, free: 8.32 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004324/0.1273, allocations: 35.95 kB / 471.6 MB, free: 8.285 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.445e-05/0.1275, allocations: 27.92 kB / 471.6 MB, free: 8.258 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.011e-05/0.1275, allocations: 23.98 kB / 471.6 MB, free: 8.234 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001891/0.1277, allocations: 145.5 kB / 471.8 MB, free: 8.094 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.1277, allocations: 0 / 471.8 MB, free: 8.094 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005924/0.1283, allocations: 72 kB / 471.8 MB, free: 8.023 MB / 314.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.001725/0.1301, allocations: 1.126 MB / 473 MB, free: 6.871 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0009726/0.1311, allocations: 332.9 kB / 473.3 MB, free: 6.547 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.1311, allocations: 4.125 kB / 473.3 MB, free: 6.543 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000483/0.1316, allocations: 164.2 kB / 473.5 MB, free: 6.383 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006018/0.1322, allocations: 52 kB / 473.5 MB, free: 6.332 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004172/0.1364, allocations: 1.708 MB / 475.2 MB, free: 4.492 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004372/0.1369, allocations: 0.7686 MB / 476 MB, free: 3.699 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.000164/0.1371, allocations: 34.97 kB / 476 MB, free: 3.66 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000196/0.1373, allocations: 95.33 kB / 476.1 MB, free: 3.566 MB / 314.7 MB Notification: Performance of SimCode: time 1.233e-06/0.1373, allocations: 0 / 476.1 MB, free: 3.566 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02879/0.1661, allocations: 5.037 MB / 481.2 MB, free: 14.6 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003311/0.1665, allocations: 162.2 kB / 481.3 MB, free: 14.36 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.609/2.776, allocations: 4 kB / 481.3 MB, free: 14.36 MB / 330.7 MB