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.00165/0.001649, allocations: 104.5 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002064/0.002064, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.496/1.496, allocations: 227.4 MB / 246.8 MB, free: 10.55 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.2197/0.2197, allocations: 46.11 MB / 344.2 MB, free: 11.58 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.003305/0.003305, allocations: 82.23 kB / 417.7 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1354/0.1387, allocations: 62.45 MB / 480.2 MB, free: 5.172 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Discrete): time 0.003743/0.1425, allocations: 1.953 MB / 482.1 MB, free: 3.207 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001436/0.1439, allocations: 0.7245 MB / 482.9 MB, free: 2.477 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001065/0.144, allocations: 7.938 kB / 482.9 MB, free: 2.469 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002336/0.1443, allocations: 35.7 kB / 482.9 MB, free: 2.434 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001187/0.1444, allocations: 71.48 kB / 483 MB, free: 2.363 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004273/0.1449, allocations: 115.7 kB / 483.1 MB, free: 2.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003348/0.1452, allocations: 295.1 kB / 483.4 MB, free: 1.961 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001685/0.1454, allocations: 52.36 kB / 483.4 MB, free: 1.91 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002363/0.1456, allocations: 127.6 kB / 483.6 MB, free: 1.785 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000277/0.1459, allocations: 175.3 kB / 483.7 MB, free: 1.613 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.547e-05/0.146, allocations: 24 kB / 483.8 MB, free: 1.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.483e-05/0.1461, allocations: 32 kB / 483.8 MB, free: 1.559 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001172/0.1462, allocations: 75.8 kB / 483.9 MB, free: 1.484 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001498/0.1464, allocations: 127.3 kB / 484 MB, free: 1.359 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003327/0.1467, allocations: 263.4 kB / 484.2 MB, free: 1.102 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.1467, allocations: 0 / 484.2 MB, free: 1.102 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.1467, allocations: 0 / 484.2 MB, free: 1.102 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.001e-06/0.1468, allocations: 0 / 484.2 MB, free: 1.102 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.001397/0.1482, allocations: 0.6425 MB / 484.9 MB, free: 428 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.127e-05/0.1482, allocations: 16.02 kB / 484.9 MB, free: 412 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.836e-05/0.1483, allocations: 46.73 kB / 484.9 MB, free: 356 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000173/0.1485, allocations: 44.48 kB / 485 MB, free: 312 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000313/0.1488, allocations: 255.8 kB / 485.2 MB, free: 16 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.604e-05/0.1488, allocations: 16.31 kB / 485.3 MB, free: 0 / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.657e-05/0.1489, allocations: 24.36 kB / 485.3 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006118/0.1495, allocations: 246.6 kB / 485.5 MB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.1495, allocations: 0 / 485.5 MB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.927e-05/0.1496, allocations: 15.98 kB / 485.5 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.399e-05/0.1496, allocations: 4 kB / 485.5 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003209/0.1499, allocations: 139.9 kB / 485.7 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001355/0.1513, allocations: 0.5665 MB / 486.2 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006926/0.152, allocations: 322.8 kB / 486.6 MB, free: 14.63 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002717/0.1523, allocations: 132.8 kB / 486.7 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.732e-05/0.1523, allocations: 7.984 kB / 486.7 MB, free: 14.49 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007002/0.153, allocations: 255.3 kB / 486.9 MB, free: 14.23 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 5.851e-06/0.153, allocations: 4 kB / 487 MB, free: 14.23 MB / 366.1 MB Notification: Performance of matching and sorting (n=43): time 0.001939/0.155, allocations: 0.5752 MB / 487.5 MB, free: 13.64 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001319/0.1551, allocations: 75.33 kB / 487.6 MB, free: 13.56 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003984/0.1556, allocations: 218.7 kB / 487.8 MB, free: 13.33 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.976e-05/0.1557, allocations: 45.69 kB / 487.9 MB, free: 13.28 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001719/0.1558, allocations: 125 kB / 488 MB, free: 13.16 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001772/0.156, allocations: 106.8 kB / 488.1 MB, free: 13.05 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002309/0.1563, allocations: 102.2 kB / 488.2 MB, free: 12.95 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002727/0.1566, allocations: 342.8 kB / 488.5 MB, free: 12.6 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003763/0.157, allocations: 109.1 kB / 488.6 MB, free: 12.49 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006007/0.1576, allocations: 279.9 kB / 488.9 MB, free: 12.14 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001049/0.1586, allocations: 449.8 kB / 489.3 MB, free: 11.62 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.674e-06/0.1587, allocations: 0 / 489.3 MB, free: 11.62 MB / 366.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001342/0.16, allocations: 456.9 kB / 489.8 MB, free: 11.17 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.269e-05/0.1601, allocations: 8 kB / 489.8 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.73e-05/0.1601, allocations: 4 kB / 489.8 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.73e-05/0.1601, allocations: 15.98 kB / 489.8 MB, free: 11.14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003927/0.1605, allocations: 67.78 kB / 489.9 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.939e-05/0.1606, allocations: 11.94 kB / 489.9 MB, free: 11.06 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003527/0.161, allocations: 48.11 kB / 489.9 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.016e-05/0.161, allocations: 20 kB / 490 MB, free: 11 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.0004307/0.1615, allocations: 197.7 kB / 490.1 MB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.406e-05/0.1616, allocations: 31.62 kB / 490.2 MB, free: 10.76 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.137e-05/0.1617, allocations: 26.98 kB / 490.2 MB, free: 10.73 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.142e-05/0.1617, allocations: 7.938 kB / 490.2 MB, free: 10.73 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.171e-05/0.1617, allocations: 8 kB / 490.2 MB, free: 10.72 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.406e-06/0.1617, allocations: 0 / 490.2 MB, free: 10.72 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002438/0.1642, allocations: 0.9449 MB / 491.2 MB, free: 9.719 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.1642, allocations: 4 kB / 491.2 MB, free: 9.715 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.054e-05/0.1643, allocations: 19.92 kB / 491.2 MB, free: 9.695 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.13e-06/0.1643, allocations: 0 / 491.2 MB, free: 9.695 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.141e-05/0.1644, allocations: 11.98 kB / 491.2 MB, free: 9.684 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.473e-06/0.1644, allocations: 4 kB / 491.2 MB, free: 9.68 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.1644, allocations: 0 / 491.2 MB, free: 9.68 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000896/0.1653, allocations: 0.5733 MB / 491.8 MB, free: 9.09 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.452e-05/0.1654, allocations: 104.8 kB / 491.9 MB, free: 8.969 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.829e-05/0.1654, allocations: 23.98 kB / 491.9 MB, free: 8.945 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000243/0.1657, allocations: 27.97 kB / 491.9 MB, free: 8.918 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.797e-05/0.1658, allocations: 31.95 kB / 492 MB, free: 8.887 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.894e-05/0.1658, allocations: 15.98 kB / 492 MB, free: 8.871 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001784/0.166, allocations: 152.4 kB / 492.1 MB, free: 8.723 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.166, allocations: 4 kB / 492.1 MB, free: 8.719 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004236/0.1665, allocations: 79.89 kB / 492.2 MB, free: 8.641 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.00128/0.1677, allocations: 1.13 MB / 493.3 MB, free: 7.484 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008637/0.1686, allocations: 387 kB / 493.7 MB, free: 7.109 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.993e-06/0.1686, allocations: 5.5 kB / 493.7 MB, free: 7.105 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003139/0.169, allocations: 175.7 kB / 493.9 MB, free: 6.934 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003976/0.1694, allocations: 47.22 kB / 493.9 MB, free: 6.891 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004187/0.1736, allocations: 3.163 MB / 497.1 MB, free: 3.484 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000421/0.174, allocations: 0.7566 MB / 497.9 MB, free: 2.703 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001096/0.1741, allocations: 38.95 kB / 497.9 MB, free: 2.66 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001381/0.1743, allocations: 83.41 kB / 498 MB, free: 2.578 MB / 366.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1743, allocations: 4 kB / 498 MB, free: 2.574 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02842/0.2027, allocations: 5.577 MB / 0.4918 GB, free: 13.05 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.861/8.064, allocations: 10.91 kB / 0.4918 GB, free: 13.04 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Discrete_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_Discrete_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_Discrete.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Discrete.pipe 2>&1)