Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.Interaction1.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) 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(Modelica.Blocks.Examples.Interaction1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booleanTable.y|integerTable.y|start.on|start.reset.1.|stop.on|stop.reset.1.",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.Interaction1") translateModel(Modelica.Blocks.Examples.Interaction1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booleanTable.y|integerTable.y|start.on|start.reset.1.|stop.on|stop.reset.1.",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.Interaction1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001059/0.00106, allocations: 108.6 kB / 17.93 MB, free: 5.656 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.001188/0.001188, allocations: 193.8 kB / 18.86 MB, free: 4.734 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.447/1.447, allocations: 205.1 MB / 224.7 MB, free: 12.47 MB / 190.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: Performance of FrontEnd - loaded program: time 0.001433/0.001433, allocations: 55.92 kB / 280.8 MB, free: 3.5 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.1096, allocations: 46.63 MB / 327.4 MB, free: 4.805 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Interaction1): time 0.005354/0.115, allocations: 2.544 MB / 330 MB, free: 2.238 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003491/0.1185, allocations: 1.688 MB / 331.7 MB, free: 0.5391 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005019/0.119, allocations: 11.88 kB / 331.7 MB, free: 0.5273 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001406/0.1205, allocations: 0.5106 MB / 332.2 MB, free: 16 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009831/0.1215, allocations: 394.8 kB / 332.6 MB, free: 15.63 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001665/0.1232, allocations: 0.585 MB / 333.2 MB, free: 15.04 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009451/0.1241, allocations: 0.791 MB / 333.9 MB, free: 14.25 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002176/0.1243, allocations: 109.7 kB / 334.1 MB, free: 14.14 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003601/0.1247, allocations: 334.7 kB / 334.4 MB, free: 13.82 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003799/0.1251, allocations: 374.6 kB / 334.7 MB, free: 13.45 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.706e-05/0.1252, allocations: 40 kB / 334.8 MB, free: 13.41 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003562/0.1255, allocations: 207.8 kB / 335 MB, free: 13.21 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002138/0.1258, allocations: 215.3 kB / 335.2 MB, free: 13 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002618/0.126, allocations: 302.2 kB / 335.5 MB, free: 12.7 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000772/0.1268, allocations: 0.6474 MB / 336.1 MB, free: 12.05 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.534e-06/0.1268, allocations: 4 kB / 336.1 MB, free: 12.05 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1268, allocations: 0 / 336.1 MB, free: 12.05 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.348e-05/0.1269, allocations: 0 / 336.1 MB, free: 12.05 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.001864/0.1287, allocations: 1.203 MB / 337.3 MB, free: 10.75 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.76e-05/0.1288, allocations: 11.89 kB / 337.4 MB, free: 10.73 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000164/0.129, allocations: 80 kB / 337.4 MB, free: 10.66 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001109/0.1301, allocations: 0.5741 MB / 338 MB, free: 10.04 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.665e-05/0.1301, allocations: 24.34 kB / 338 MB, free: 10.02 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.978e-05/0.1302, allocations: 24.12 kB / 338.1 MB, free: 9.992 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008871/0.1311, allocations: 354.7 kB / 338.4 MB, free: 9.598 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.564e-05/0.1311, allocations: 0 / 338.4 MB, free: 9.598 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.561e-05/0.1312, allocations: 19.98 kB / 338.4 MB, free: 9.578 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.402e-05/0.1312, allocations: 11.91 kB / 338.4 MB, free: 9.566 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005407/0.1318, allocations: 171.8 kB / 338.6 MB, free: 9.398 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002206/0.134, allocations: 1.337 MB / 339.9 MB, free: 7.988 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001051/0.1351, allocations: 358.7 kB / 340.3 MB, free: 7.602 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004777/0.1356, allocations: 179.3 kB / 340.5 MB, free: 7.414 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.083e-05/0.1356, allocations: 8 kB / 340.5 MB, free: 7.406 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009707/0.1366, allocations: 467.2 kB / 340.9 MB, free: 6.895 MB / 286.1 MB Notification: Performance of pre-optimization done (n=42): time 3.426e-06/0.1366, allocations: 4 kB / 340.9 MB, free: 6.891 MB / 286.1 MB Notification: Performance of matching and sorting (n=42): time 0.002166/0.1388, allocations: 0.7358 MB / 341.7 MB, free: 6.129 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000325/0.1392, allocations: 460.9 kB / 342.1 MB, free: 5.574 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001701/0.1409, allocations: 0.9301 MB / 343 MB, free: 4.637 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 7.421e-05/0.141, allocations: 45.69 kB / 343.1 MB, free: 4.586 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004014/0.1414, allocations: 304.8 kB / 343.4 MB, free: 4.285 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001537/0.1415, allocations: 114.5 kB / 343.5 MB, free: 4.172 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002218/0.1418, allocations: 102 kB / 343.6 MB, free: 4.066 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001729/0.142, allocations: 326 kB / 343.9 MB, free: 3.742 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004454/0.1424, allocations: 152.9 kB / 344.1 MB, free: 3.59 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006635/0.1431, allocations: 350.4 kB / 344.4 MB, free: 3.172 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001653/0.1448, allocations: 0.7762 MB / 345.2 MB, free: 2.285 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/0.1448, allocations: 0 / 345.2 MB, free: 2.285 MB / 286.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001712/0.1465, allocations: 0.673 MB / 345.9 MB, free: 1.586 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001122/0.1466, allocations: 105 kB / 346 MB, free: 1.465 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.404e-05/0.1467, allocations: 4 kB / 346 MB, free: 1.461 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.915e-05/0.1467, allocations: 8.281 kB / 346 MB, free: 1.453 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003744/0.1471, allocations: 63.84 kB / 346 MB, free: 1.391 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.635e-05/0.1471, allocations: 8 kB / 346 MB, free: 1.383 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004673/0.1476, allocations: 51.86 kB / 346.1 MB, free: 1.332 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.114e-05/0.1477, allocations: 27.98 kB / 346.1 MB, free: 1.305 MB / 286.1 MB Warning: Assuming fixed start value for the following 2 variables: stop.table.y:DISCRETE(flow=false fixed = true protected = true ) "Connector of Boolean output signal" type: Boolean start.table.y:DISCRETE(flow=false fixed = true protected = true ) "Connector of Boolean output signal" type: Boolean Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 51 ($PRE.start.pre_reset[1],$PRE.stop.pre_reset[1],$PRE.integerTable.combiTimeTable.nextTimeEvent,$whenCondition9,integerTable.combiTimeTable.nextTimeEventScaled,$PRE.integerTable.combiTimeTable.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEvent,integerTable.y,$PRE.booleanTable.combiTimeTable.nextTimeEvent,$whenCondition8,booleanTable.combiTimeTable.nextTimeEventScaled,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.y,$PRE.stop.table.combiTimeTable.nextTimeEvent,$whenCondition3,$PRE.start.table.combiTimeTable.nextTimeEvent,$whenCondition2,stop.on,$PRE.stop.on,start.reset[1],stop.reset[1],start.on,$PRE.start.on,$PRE.stop.table.y,$PRE.stop.reset[1],stop.pre_reset[1],stop.table.combiTimeTable.nextTimeEventScaled,$PRE.stop.table.combiTimeTable.nextTimeEventScaled,stop.table.combiTimeTable.nextTimeEvent,stop.table.y,$whenCondition5,$whenCondition4,$PRE.start.table.y,$PRE.start.reset[1],start.pre_reset[1],start.table.combiTimeTable.nextTimeEventScaled,$PRE.start.table.combiTimeTable.nextTimeEventScaled,start.table.combiTimeTable.nextTimeEvent,start.table.y,$whenCondition7,$whenCondition6,timeTable.nextEventScaled,timeTable.nextEvent,$PRE.timeTable.nextEvent,timeTable.last,timeTable.b,timeTable.a,$whenCondition1,booleanValue.active,integerValue.number) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 3 * 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.0006936/0.1484, allocations: 390.9 kB / 346.5 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001799/0.1486, allocations: 83.12 kB / 346.6 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001856/0.1488, allocations: 82.19 kB / 346.7 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.508e-06/0.1488, allocations: 8 kB / 346.7 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.164e-05/0.1488, allocations: 8 kB / 346.7 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.522e-06/0.1488, allocations: 0 / 346.7 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001761/0.1506, allocations: 0.962 MB / 347.6 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.722e-06/0.1506, allocations: 0 / 347.6 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000139/0.1508, allocations: 31.86 kB / 347.7 MB, free: 15.65 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.86e-06/0.1508, allocations: 0 / 347.7 MB, free: 15.65 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.507e-05/0.1508, allocations: 23.92 kB / 347.7 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.1509, allocations: 4 kB / 347.7 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.079e-06/0.1509, allocations: 4 kB / 347.7 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001519/0.1524, allocations: 0.7634 MB / 348.5 MB, free: 14.81 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002064/0.1526, allocations: 152.1 kB / 348.6 MB, free: 14.64 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001531/0.1528, allocations: 31.92 kB / 348.7 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000357/0.1532, allocations: 27.92 kB / 348.7 MB, free: 14.58 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001364/0.1533, allocations: 35.95 kB / 348.7 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.914e-05/0.1534, allocations: 23.98 kB / 348.7 MB, free: 14.52 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001183/0.1546, allocations: 0.6708 MB / 349.4 MB, free: 13.86 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.1546, allocations: 0 / 349.4 MB, free: 13.86 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008605/0.1555, allocations: 144 kB / 349.5 MB, free: 13.71 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 32 ($whenCondition1,timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled,$whenCondition3,$whenCondition2,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,start.reset[1],start.on,start.table.y,start.table.combiTimeTable.nextTimeEvent,start.table.combiTimeTable.nextTimeEventScaled,start.pre_reset[1],stop.reset[1],stop.on,stop.table.y,stop.table.combiTimeTable.nextTimeEvent,stop.table.combiTimeTable.nextTimeEventScaled,stop.pre_reset[1],$whenCondition8,booleanTable.y,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,$whenCondition9,integerTable.y,integerTable.combiTimeTable.nextTimeEvent,integerTable.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 26 (integerTable.combiTimeTable.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEvent,stop.table.combiTimeTable.nextTimeEvent,start.table.combiTimeTable.nextTimeEvent,stop.table.combiTimeTable.nextTimeEventScaled,$whenCondition5,stop.on,$whenCondition4,stop.pre_reset[1],stop.reset[1],stop.table.y,start.table.combiTimeTable.nextTimeEventScaled,$whenCondition7,start.on,$whenCondition6,start.pre_reset[1],start.reset[1],start.table.y,timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 8 * 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.001746/0.1572, allocations: 0.4922 MB / 350 MB, free: 13.23 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001373/0.1586, allocations: 0.6236 MB / 350.7 MB, free: 12.57 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.2e-06/0.1586, allocations: 64 / 350.7 MB, free: 12.57 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007662/0.1594, allocations: 434.4 kB / 351.1 MB, free: 12.11 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00145/0.1609, allocations: 187.7 kB / 351.3 MB, free: 11.92 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003342/0.1642, allocations: 1.405 MB / 352.7 MB, free: 10.47 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008347/0.1651, allocations: 0.9289 MB / 353.6 MB, free: 9.516 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002264/0.1653, allocations: 63.72 kB / 353.7 MB, free: 9.453 MB / 302.1 MB Notification: Performance of SimCode: time 6.31e-07/0.1653, allocations: 0 / 353.7 MB, free: 9.453 MB / 302.1 MB Notification: Performance of Templates: time 0.02508/0.1904, allocations: 9.765 MB / 363.4 MB, free: 15.67 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.Interaction1.makefile (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.Interaction1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.Interaction1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.Interaction1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.Interaction1.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.Interaction1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.Interaction1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.Interaction1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/Interaction1/Interaction1.csv","../files/Modelica_3.2.3_Modelica.Blocks.Examples.Interaction1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches