Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001317/0.001317, allocations: 116.9 kB / 18.4 MB, free: 4.648 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001356/0.001356, allocations: 190.9 kB / 21.35 MB, free: 1.711 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.439/1.439, allocations: 222.9 MB / 247 MB, free: 4.32 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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=5011,variableFilter="time|booleanTable.y|integerTable.y|start.on|start.reset.1.|stop.on|stop.reset.1.",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1") translateModel(Modelica.Blocks.Examples.Interaction1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|booleanTable.y|integerTable.y|start.on|start.reset.1.|stop.on|stop.reset.1.",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001531/0.001531, allocations: 47.92 kB / 358.7 MB, free: 8.43 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09989/0.1014, allocations: 49.43 MB / 408.1 MB, free: 6.957 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Interaction1): time 0.004077/0.1055, allocations: 2.549 MB / 410.6 MB, free: 4.398 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003303/0.1089, allocations: 1.796 MB / 412.4 MB, free: 2.598 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002269/0.1091, allocations: 7.938 kB / 412.4 MB, free: 2.59 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001274/0.1104, allocations: 0.529 MB / 413 MB, free: 2.062 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008123/0.1112, allocations: 422.5 kB / 413.4 MB, free: 1.648 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001714/0.113, allocations: 0.6785 MB / 414.1 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009695/0.1139, allocations: 0.7949 MB / 414.8 MB, free: 188 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002219/0.1142, allocations: 97.98 kB / 414.9 MB, free: 80 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004429/0.1146, allocations: 322.8 kB / 415.3 MB, free: 15.76 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004399/0.1151, allocations: 358.6 kB / 415.6 MB, free: 15.41 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.86e-05/0.1152, allocations: 40 kB / 415.6 MB, free: 15.37 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004555/0.1156, allocations: 231.8 kB / 415.9 MB, free: 15.14 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002459/0.1159, allocations: 207.3 kB / 416.1 MB, free: 14.94 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003295/0.1162, allocations: 302.1 kB / 416.4 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001042/0.1173, allocations: 0.8599 MB / 417.2 MB, free: 13.78 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.1173, allocations: 0 / 417.2 MB, free: 13.78 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.625e-06/0.1173, allocations: 0 / 417.2 MB, free: 13.78 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.548e-06/0.1173, allocations: 0 / 417.2 MB, free: 13.78 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0018/0.1191, allocations: 1.228 MB / 418.5 MB, free: 12.46 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.305e-05/0.1192, allocations: 11.89 kB / 418.5 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001593/0.1193, allocations: 84.42 kB / 418.6 MB, free: 12.37 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008572/0.1202, allocations: 0.6057 MB / 419.2 MB, free: 11.72 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.493e-05/0.1203, allocations: 23.95 kB / 419.2 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.207e-05/0.1203, allocations: 20 kB / 419.2 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006199/0.1209, allocations: 354.7 kB / 419.5 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.215e-05/0.121, allocations: 4 kB / 419.6 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.752e-05/0.121, allocations: 15.98 kB / 419.6 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.529e-05/0.121, allocations: 4 kB / 419.6 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003869/0.1214, allocations: 187.8 kB / 419.8 MB, free: 11.08 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001613/0.123, allocations: 1.325 MB / 421.1 MB, free: 9.684 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007526/0.1238, allocations: 354.8 kB / 421.4 MB, free: 9.301 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003427/0.1242, allocations: 171.3 kB / 421.6 MB, free: 9.121 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.966e-05/0.1242, allocations: 16.06 kB / 421.6 MB, free: 9.105 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006853/0.1249, allocations: 459.2 kB / 422.1 MB, free: 8.602 MB / 350.1 MB Notification: Performance of pre-optimization done (n=42): time 2.064e-06/0.1249, allocations: 4 kB / 422.1 MB, free: 8.598 MB / 350.1 MB Notification: Performance of matching and sorting (n=42): time 0.001471/0.1264, allocations: 0.7452 MB / 422.8 MB, free: 7.828 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002736/0.1267, allocations: 456.9 kB / 423.3 MB, free: 7.277 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001148/0.1278, allocations: 0.9263 MB / 424.2 MB, free: 6.344 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.277e-05/0.1279, allocations: 41.7 kB / 424.2 MB, free: 6.297 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003081/0.1282, allocations: 316.8 kB / 424.5 MB, free: 5.98 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001134/0.1283, allocations: 107.2 kB / 424.6 MB, free: 5.875 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001512/0.1285, allocations: 102.1 kB / 424.7 MB, free: 5.77 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001541/0.1287, allocations: 326 kB / 425.1 MB, free: 5.445 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003178/0.129, allocations: 152.9 kB / 425.2 MB, free: 5.293 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004958/0.1295, allocations: 350.4 kB / 425.5 MB, free: 4.875 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008237/0.1303, allocations: 0.586 MB / 426.1 MB, free: 4.203 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.1303, allocations: 0 / 426.1 MB, free: 4.203 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001176/0.1315, allocations: 0.6701 MB / 426.8 MB, free: 3.508 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.738e-05/0.1316, allocations: 101 kB / 426.9 MB, free: 3.391 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.522e-05/0.1316, allocations: 11.97 kB / 426.9 MB, free: 3.379 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.002e-05/0.1317, allocations: 4 kB / 426.9 MB, free: 3.375 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002658/0.1319, allocations: 63.91 kB / 427 MB, free: 3.312 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.431e-05/0.132, allocations: 7.938 kB / 427 MB, free: 3.305 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002912/0.1323, allocations: 51.72 kB / 427 MB, free: 3.254 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.279e-05/0.1323, allocations: 24.23 kB / 427.1 MB, free: 3.23 MB / 350.1 MB 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,stop.pre_reset[1],stop.table.combiTimeTable.nextTimeEventScaled,$PRE.stop.table.combiTimeTable.nextTimeEventScaled,stop.table.combiTimeTable.nextTimeEvent,stop.table.y,$PRE.stop.table.y,$PRE.stop.reset[1],$whenCondition5,$whenCondition4,start.pre_reset[1],start.table.combiTimeTable.nextTimeEventScaled,$PRE.start.table.combiTimeTable.nextTimeEventScaled,start.table.combiTimeTable.nextTimeEvent,start.table.y,$PRE.start.table.y,$PRE.start.reset[1],$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.0004509/0.1328, allocations: 404.2 kB / 427.5 MB, free: 2.812 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001229/0.1329, allocations: 79.53 kB / 427.5 MB, free: 2.734 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001345/0.133, allocations: 74.22 kB / 427.6 MB, free: 2.66 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.222e-06/0.1331, allocations: 4 kB / 427.6 MB, free: 2.656 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.281e-05/0.1331, allocations: 7.984 kB / 427.6 MB, free: 2.648 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.1331, allocations: 0 / 427.6 MB, free: 2.648 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001276/0.1344, allocations: 0.9731 MB / 428.6 MB, free: 1.609 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.412e-06/0.1344, allocations: 3.938 kB / 428.6 MB, free: 1.605 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001005/0.1345, allocations: 27.92 kB / 428.6 MB, free: 1.578 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.397e-06/0.1345, allocations: 0 / 428.6 MB, free: 1.578 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.738e-05/0.1346, allocations: 16 kB / 428.6 MB, free: 1.562 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.432e-06/0.1346, allocations: 3.984 kB / 428.6 MB, free: 1.559 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.1346, allocations: 0 / 428.6 MB, free: 1.559 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001165/0.1357, allocations: 0.7757 MB / 429.4 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001621/0.1359, allocations: 160.5 kB / 429.6 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001121/0.136, allocations: 31.92 kB / 429.6 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002345/0.1363, allocations: 19.98 kB / 429.6 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001098/0.1364, allocations: 39.95 kB / 429.7 MB, free: 484 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.311e-05/0.1365, allocations: 20 kB / 429.7 MB, free: 464 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.2055/0.342, allocations: 0.671 MB / 430.4 MB, free: 22.74 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.62e-07/0.342, allocations: 0 / 430.4 MB, free: 22.74 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008318/0.3429, allocations: 148.9 kB / 430.5 MB, free: 22.74 MB / 350.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.001629/0.3445, allocations: 0.4949 MB / 431 MB, free: 22.63 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008627/0.3454, allocations: 0.6085 MB / 431.6 MB, free: 22.44 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.027e-06/0.3454, allocations: 2.188 kB / 431.6 MB, free: 22.44 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004079/0.3458, allocations: 426.9 kB / 432 MB, free: 22.25 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000862/0.3467, allocations: 179.4 kB / 432.2 MB, free: 22.25 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001687/0.3484, allocations: 1.242 MB / 433.4 MB, free: 21.76 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003487/0.3487, allocations: 0.9278 MB / 434.4 MB, free: 21.06 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001385/0.3489, allocations: 60.97 kB / 434.4 MB, free: 21.05 MB / 350.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3489, allocations: 1.094 kB / 434.4 MB, free: 21.05 MB / 350.1 MB Notification: Performance of Templates: time 0.01664/0.3655, allocations: 9.847 MB / 444.3 MB, free: 19.02 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Interaction1/Interaction1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.850695976987481]