Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Blocks.Discrete.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.Discrete,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Blocks.Discrete") translateModel(ModelicaTest.Blocks.Discrete,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Blocks.Discrete") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001398/0.001398, allocations: 98.03 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.009895/0.009895, allocations: 168.9 kB / 16.26 MB, free: 6.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.591/1.591, allocations: 205.4 MB / 222.4 MB, free: 5.562 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.3516/0.3516, allocations: 40 MB / 310.7 MB, free: 9.543 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ModelicaTest requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005941/0.0005941, allocations: 20 kB / 379.4 MB, free: 11.96 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1241/0.1247, allocations: 57.96 MB / 437.4 MB, free: 1.906 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Discrete): time 0.002092/0.1268, allocations: 1.625 MB / 439 MB, free: 272 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001259/0.1281, allocations: 0.671 MB / 439.7 MB, free: 15.59 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001553/0.1283, allocations: 7.938 kB / 439.7 MB, free: 15.58 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002401/0.1285, allocations: 27.83 kB / 439.7 MB, free: 15.55 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001788/0.1287, allocations: 55.61 kB / 439.8 MB, free: 15.5 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000473/0.1292, allocations: 91.89 kB / 439.9 MB, free: 15.41 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003781/0.1296, allocations: 263.1 kB / 440.1 MB, free: 15.15 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001812/0.1298, allocations: 52.36 kB / 440.2 MB, free: 15.1 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002524/0.13, allocations: 111.5 kB / 440.3 MB, free: 14.99 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002969/0.1303, allocations: 155.4 kB / 440.4 MB, free: 14.84 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.368e-05/0.1304, allocations: 12 kB / 440.5 MB, free: 14.83 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.277e-05/0.1304, allocations: 8 kB / 440.5 MB, free: 14.82 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001221/0.1306, allocations: 67.8 kB / 440.5 MB, free: 14.75 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001576/0.1307, allocations: 149 kB / 440.7 MB, free: 14.6 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002697/0.131, allocations: 231.4 kB / 440.9 MB, free: 14.38 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.131, allocations: 0 / 440.9 MB, free: 14.38 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.131, allocations: 0 / 440.9 MB, free: 14.38 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.825e-06/0.1311, allocations: 0 / 440.9 MB, free: 14.38 MB / 382.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.00139/0.1325, allocations: 0.6015 MB / 441.5 MB, free: 13.73 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.925e-05/0.1325, allocations: 8.031 kB / 441.5 MB, free: 13.72 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.258e-05/0.1326, allocations: 32.64 kB / 441.5 MB, free: 13.69 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003485/0.1329, allocations: 260.6 kB / 441.8 MB, free: 13.39 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.527e-05/0.133, allocations: 20.3 kB / 441.8 MB, free: 13.37 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.418e-05/0.133, allocations: 24.12 kB / 441.8 MB, free: 13.35 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004276/0.1335, allocations: 237.4 kB / 442.1 MB, free: 13.11 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.1335, allocations: 0 / 442.1 MB, free: 13.11 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.767e-05/0.1335, allocations: 8 kB / 442.1 MB, free: 13.1 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.183e-06/0.1335, allocations: 4 kB / 442.1 MB, free: 13.1 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002808/0.1338, allocations: 139.8 kB / 442.2 MB, free: 12.96 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001052/0.1349, allocations: 0.5702 MB / 442.8 MB, free: 12.34 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005487/0.1354, allocations: 318.8 kB / 443.1 MB, free: 12.02 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002259/0.1357, allocations: 128.8 kB / 443.2 MB, free: 11.89 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.45e-05/0.1357, allocations: 11.98 kB / 443.2 MB, free: 11.88 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004303/0.1362, allocations: 247.5 kB / 443.5 MB, free: 11.62 MB / 382.1 MB Notification: Performance of pre-optimization done (n=43): time 2.264e-06/0.1362, allocations: 0 / 443.5 MB, free: 11.62 MB / 382.1 MB Notification: Performance of matching and sorting (n=43): time 0.001009/0.1372, allocations: 0.5751 MB / 444.1 MB, free: 11.04 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.675e-05/0.1373, allocations: 75.38 kB / 444.1 MB, free: 10.96 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000205/0.1375, allocations: 208.8 kB / 444.3 MB, free: 10.75 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.344e-05/0.1375, allocations: 45.7 kB / 444.4 MB, free: 10.7 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.418e-05/0.1376, allocations: 129 kB / 444.5 MB, free: 10.57 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.297e-05/0.1377, allocations: 106.7 kB / 444.6 MB, free: 10.46 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.078e-05/0.1378, allocations: 57.69 kB / 444.7 MB, free: 10.4 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001398/0.138, allocations: 338.8 kB / 445 MB, free: 10.06 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002306/0.1382, allocations: 109.1 kB / 445.1 MB, free: 9.953 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000314/0.1385, allocations: 289.4 kB / 445.4 MB, free: 9.586 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005779/0.1391, allocations: 434.8 kB / 445.8 MB, free: 9.078 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.222e-06/0.1391, allocations: 0 / 445.8 MB, free: 9.078 MB / 382.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0007351/0.1399, allocations: 453 kB / 446.3 MB, free: 8.629 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.097e-05/0.1399, allocations: 8 kB / 446.3 MB, free: 8.621 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.38e-05/0.1399, allocations: 8 kB / 446.3 MB, free: 8.613 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.35e-05/0.1399, allocations: 11.94 kB / 446.3 MB, free: 8.602 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002081/0.1402, allocations: 63.84 kB / 446.3 MB, free: 8.539 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.479e-05/0.1402, allocations: 16.31 kB / 446.4 MB, free: 8.523 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001997/0.1404, allocations: 51.67 kB / 446.4 MB, free: 8.473 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.916e-05/0.1404, allocations: 24 kB / 446.4 MB, free: 8.449 MB / 382.1 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 (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,$PRE.zeroOrderHold.ySample,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,sampler.y) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002272/0.1407, allocations: 197.7 kB / 446.6 MB, free: 8.246 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.375e-05/0.1407, allocations: 27.72 kB / 446.7 MB, free: 8.219 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.505e-05/0.1408, allocations: 30.92 kB / 446.7 MB, free: 8.188 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.581e-06/0.1408, allocations: 8 kB / 446.7 MB, free: 8.18 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.088e-05/0.1408, allocations: 0 / 446.7 MB, free: 8.18 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/0.1408, allocations: 7.938 kB / 446.7 MB, free: 8.172 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001471/0.1423, allocations: 0.941 MB / 447.6 MB, free: 7.176 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.1423, allocations: 4 kB / 447.6 MB, free: 7.172 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.044e-05/0.1424, allocations: 15.92 kB / 447.7 MB, free: 7.156 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.46e-06/0.1424, allocations: 4 kB / 447.7 MB, free: 7.152 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.707e-05/0.1424, allocations: 11.98 kB / 447.7 MB, free: 7.141 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.564e-06/0.1425, allocations: 0 / 447.7 MB, free: 7.141 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.1425, allocations: 0 / 447.7 MB, free: 7.141 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007625/0.1432, allocations: 0.5656 MB / 448.2 MB, free: 6.559 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.019e-05/0.1433, allocations: 104.7 kB / 448.3 MB, free: 6.438 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.135e-05/0.1434, allocations: 19.98 kB / 448.4 MB, free: 6.418 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00024/0.1436, allocations: 35.97 kB / 448.4 MB, free: 6.383 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.931e-05/0.1437, allocations: 27.95 kB / 448.4 MB, free: 6.355 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.686e-05/0.1438, allocations: 19.98 kB / 448.4 MB, free: 6.336 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001435/0.1439, allocations: 152.5 kB / 448.6 MB, free: 6.188 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.1439, allocations: 0 / 448.6 MB, free: 6.188 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004153/0.1444, allocations: 79.83 kB / 448.7 MB, free: 6.109 MB / 382.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: 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 (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.0001926/0.1446, allocations: 139.1 kB / 448.8 MB, free: 5.961 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006046/0.1452, allocations: 336.7 kB / 449.1 MB, free: 5.633 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.1452, allocations: 384 / 449.1 MB, free: 5.633 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002798/0.1455, allocations: 168.2 kB / 449.3 MB, free: 5.469 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003958/0.1459, allocations: 39.95 kB / 449.3 MB, free: 5.43 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001162/0.147, allocations: 0.5942 MB / 449.9 MB, free: 4.809 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003498/0.1474, allocations: 0.7608 MB / 450.7 MB, free: 4.023 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.34e-05/0.1475, allocations: 34.95 kB / 450.7 MB, free: 3.992 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.506e-05/0.1476, allocations: 31.44 kB / 450.8 MB, free: 3.961 MB / 382.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1476, allocations: 0 / 450.8 MB, free: 3.961 MB / 382.1 MB Notification: Performance of Templates: time 0.006271/0.1539, allocations: 2.837 MB / 453.6 MB, free: 1.129 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Blocks.Discrete.makefile Environment - environmentSimulation: (rm -f ModelicaTest_3.2.2_ModelicaTest.Blocks.Discrete.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Blocks.Discrete.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Blocks.Discrete.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Blocks.Discrete.sim & ./ModelicaTest_3.2.2_ModelicaTest.Blocks.Discrete -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Blocks.Discrete.pipe 2>&1) Environment - environmentSimulation: