Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Discrete.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Discrete,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_Discrete",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Discrete,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_Discrete",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001303/0.001303, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001377/0.001377, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.438/1.438, allocations: 227.4 MB / 246.8 MB, free: 10.6 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2272/0.2272, allocations: 46.12 MB / 344.2 MB, free: 11.59 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002303/0.002303, allocations: 80.45 kB / 417.8 MB, free: 19.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.116/0.1184, allocations: 62.45 MB / 480.2 MB, free: 5.164 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Discrete): time 0.003471/0.1219, allocations: 1.946 MB / 482.1 MB, free: 3.203 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001339/0.1232, allocations: 0.7245 MB / 482.9 MB, free: 2.473 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.518e-05/0.1233, allocations: 7.938 kB / 482.9 MB, free: 2.465 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001952/0.1236, allocations: 35.7 kB / 482.9 MB, free: 2.43 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001251/0.1237, allocations: 71.47 kB / 483 MB, free: 2.359 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003998/0.1241, allocations: 123.7 kB / 483.1 MB, free: 2.238 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003145/0.1244, allocations: 287.1 kB / 483.4 MB, free: 1.957 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001582/0.1246, allocations: 60.28 kB / 483.4 MB, free: 1.898 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002144/0.1248, allocations: 119.6 kB / 483.6 MB, free: 1.781 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000265/0.1251, allocations: 179.3 kB / 483.7 MB, free: 1.605 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.149e-05/0.1251, allocations: 24 kB / 483.8 MB, free: 1.582 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.788e-05/0.1252, allocations: 28 kB / 483.8 MB, free: 1.555 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001186/0.1254, allocations: 87.77 kB / 483.9 MB, free: 1.469 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001419/0.1255, allocations: 123.3 kB / 484 MB, free: 1.348 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003104/0.1258, allocations: 259.4 kB / 484.2 MB, free: 1.094 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.1258, allocations: 0 / 484.2 MB, free: 1.094 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1258, allocations: 0 / 484.2 MB, free: 1.094 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.651e-06/0.1259, allocations: 0 / 484.2 MB, free: 1.094 MB / 350.1 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.001381/0.1272, allocations: 0.6442 MB / 484.9 MB, free: 416 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.054e-05/0.1273, allocations: 12.03 kB / 484.9 MB, free: 404 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.377e-05/0.1274, allocations: 46.73 kB / 484.9 MB, free: 348 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001771/0.1275, allocations: 52.53 kB / 485 MB, free: 296 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003043/0.1279, allocations: 243.8 kB / 485.2 MB, free: 12 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.459e-05/0.1279, allocations: 28.3 kB / 485.3 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.289e-05/0.128, allocations: 16.38 kB / 485.3 MB, free: 15.97 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004905/0.1285, allocations: 246.6 kB / 485.5 MB, free: 15.72 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/0.1285, allocations: 0 / 485.5 MB, free: 15.72 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.696e-05/0.1285, allocations: 12 kB / 485.5 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.883e-06/0.1285, allocations: 4 kB / 485.5 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003291/0.1289, allocations: 135.9 kB / 485.7 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001063/0.1299, allocations: 0.5626 MB / 486.2 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000605/0.1305, allocations: 332.8 kB / 486.6 MB, free: 14.63 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002619/0.1308, allocations: 132.8 kB / 486.7 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.853e-05/0.1309, allocations: 7.984 kB / 486.7 MB, free: 14.49 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004536/0.1313, allocations: 255.3 kB / 486.9 MB, free: 14.23 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 1.934e-06/0.1313, allocations: 4 kB / 486.9 MB, free: 14.22 MB / 366.1 MB Notification: Performance of matching and sorting (n=43): time 0.00119/0.1325, allocations: 0.5752 MB / 487.5 MB, free: 13.64 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.522e-05/0.1326, allocations: 75.33 kB / 487.6 MB, free: 13.55 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002254/0.1328, allocations: 218.7 kB / 487.8 MB, free: 13.33 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.828e-05/0.1329, allocations: 45.7 kB / 487.9 MB, free: 13.28 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001056/0.133, allocations: 125 kB / 488 MB, free: 13.15 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001033/0.1331, allocations: 106.8 kB / 488.1 MB, free: 13.05 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001357/0.1333, allocations: 94.25 kB / 488.2 MB, free: 12.95 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001827/0.1335, allocations: 346.8 kB / 488.5 MB, free: 12.6 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000242/0.1337, allocations: 109 kB / 488.6 MB, free: 12.49 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003898/0.1341, allocations: 291.8 kB / 488.9 MB, free: 12.13 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006754/0.1348, allocations: 444.2 kB / 489.3 MB, free: 11.62 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.452e-05/0.1348, allocations: 7.938 kB / 489.3 MB, free: 11.61 MB / 366.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0007908/0.1356, allocations: 456.9 kB / 489.8 MB, free: 11.16 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.703e-05/0.1356, allocations: 8 kB / 489.8 MB, free: 11.15 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.52e-05/0.1357, allocations: 8 kB / 489.8 MB, free: 11.14 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.196e-05/0.1357, allocations: 8 kB / 489.8 MB, free: 11.13 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002385/0.1359, allocations: 67.78 kB / 489.9 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.602e-05/0.136, allocations: 12.41 kB / 489.9 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002004/0.1362, allocations: 47.67 kB / 489.9 MB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.171e-05/0.1362, allocations: 20 kB / 490 MB, free: 10.99 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 63 (triggeredMax.y,$PRE.triggeredMax.y,triggeredSampler.y,$PRE.triggeredSampler.y,stateSpace.firstTrigger,$PRE.stateSpace.firstTrigger,stateSpace.x[1],$PRE.stateSpace.x[1],stateSpace.x[2],$PRE.stateSpace.x[2],stateSpace.y[1],$PRE.stateSpace.y[1],transferFunction.firstTrigger,$PRE.transferFunction.firstTrigger,transferFunction.x1,$PRE.transferFunction.x1,transferFunction.xext[1],$PRE.transferFunction.xext[1],transferFunction.xext[2],$PRE.transferFunction.xext[2],transferFunction.x[1],$PRE.transferFunction.x[1],transferFunction.y,$PRE.transferFunction.y,unitDelay.firstTrigger,$PRE.unitDelay.firstTrigger,unitDelay.y,$PRE.unitDelay.y,firstOrderHold.firstTrigger,$PRE.firstOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,sampler.firstTrigger,$PRE.sampler.firstTrigger,$whenCondition8,sampler.sampleTrigger,$whenCondition1,zeroOrderHold.sampleTrigger,$whenCondition2,firstOrderHold.sampleTrigger,$whenCondition3,unitDelay.sampleTrigger,$whenCondition4,transferFunction.sampleTrigger,$whenCondition5,stateSpace.sampleTrigger,$whenCondition6,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,$whenCondition7,firstOrderHold.c,$PRE.firstOrderHold.c,firstOrderHold.pre_uSample,$PRE.firstOrderHold.pre_uSample,firstOrderHold.uSample,$PRE.firstOrderHold.uSample,firstOrderHold.tSample,$PRE.firstOrderHold.tSample,zeroOrderHold.ySample,$PRE.zeroOrderHold.ySample,sampler.y,$PRE.sampler.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000242/0.1365, allocations: 197.7 kB / 490.2 MB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.501e-05/0.1365, allocations: 31.62 kB / 490.2 MB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.937e-05/0.1366, allocations: 30.98 kB / 490.2 MB, free: 10.72 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.134e-06/0.1366, allocations: 7.938 kB / 490.2 MB, free: 10.71 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.802e-06/0.1366, allocations: 4 kB / 490.2 MB, free: 10.71 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.572e-06/0.1366, allocations: 3.984 kB / 490.2 MB, free: 10.71 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001669/0.1383, allocations: 0.9411 MB / 491.2 MB, free: 9.711 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.1383, allocations: 4 kB / 491.2 MB, free: 9.707 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.169e-05/0.1384, allocations: 15.92 kB / 491.2 MB, free: 9.691 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.47e-06/0.1384, allocations: 4 kB / 491.2 MB, free: 9.688 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.034e-05/0.1384, allocations: 7.984 kB / 491.2 MB, free: 9.68 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.1385, allocations: 4 kB / 491.2 MB, free: 9.676 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/0.1385, allocations: 4 kB / 491.2 MB, free: 9.672 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008936/0.1394, allocations: 0.5733 MB / 491.8 MB, free: 9.082 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.068e-05/0.1394, allocations: 104.7 kB / 491.9 MB, free: 8.961 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.712e-05/0.1395, allocations: 19.98 kB / 491.9 MB, free: 8.941 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002499/0.1398, allocations: 27.97 kB / 491.9 MB, free: 8.914 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.264e-05/0.1399, allocations: 27.95 kB / 492 MB, free: 8.887 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.812e-05/0.1399, allocations: 19.98 kB / 492 MB, free: 8.867 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001489/0.1401, allocations: 152.4 kB / 492.1 MB, free: 8.719 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1401, allocations: 4 kB / 492.1 MB, free: 8.715 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003989/0.1405, allocations: 79.89 kB / 492.2 MB, free: 8.637 MB / 366.1 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.pulseStart,triggeredMax.y) * Number of discrete states: 9 (zeroOrderHold.ySample,triggeredMax.y,stateSpace.x[1],stateSpace.x[2],transferFunction.x[1],unitDelay.u,firstOrderHold.uSample,firstOrderHold.c,sampler.y) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001284/0.1418, allocations: 1.134 MB / 493.3 MB, free: 7.477 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000795/0.1426, allocations: 388.2 kB / 493.7 MB, free: 7.102 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.1426, allocations: 4 kB / 493.7 MB, free: 7.098 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003221/0.1429, allocations: 171.8 kB / 493.9 MB, free: 6.93 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003922/0.1433, allocations: 50.67 kB / 493.9 MB, free: 6.883 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004247/0.1476, allocations: 3.152 MB / 497.1 MB, free: 3.488 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004152/0.148, allocations: 0.7605 MB / 497.9 MB, free: 2.703 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001009/0.1481, allocations: 42.89 kB / 497.9 MB, free: 2.656 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00013/0.1482, allocations: 87.41 kB / 498 MB, free: 2.57 MB / 366.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1482, allocations: 0 / 498 MB, free: 2.57 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02754/0.1758, allocations: 5.587 MB / 0.4918 GB, free: 13.03 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.818/7.994, allocations: 7.938 kB / 0.4918 GB, free: 13.02 MB / 382.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Discrete.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Discrete.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Discrete.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Discrete.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Discrete_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_Discrete.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Discrete.pipe 2>&1)