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/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001137/0.001137, allocations: 187 kB / 17.92 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.152/1.152, allocations: 205.1 MB / 223.7 MB, free: 8.477 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008939/0.0008939, allocations: 105.6 kB / 271.2 MB, free: 8.434 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007318/0.0007318, allocations: 43.94 kB / 327.2 MB, free: 340 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1931/0.1938, allocations: 46.62 MB / 373.8 MB, free: 45.65 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Interaction1): time 0.003098/0.197, allocations: 2.553 MB / 376.4 MB, free: 43.8 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002008/0.199, allocations: 1.714 MB / 378.1 MB, free: 42.47 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001524/0.1992, allocations: 15.5 kB / 378.1 MB, free: 42.46 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009415/0.2001, allocations: 0.5051 MB / 378.6 MB, free: 42.18 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005239/0.2006, allocations: 394.2 kB / 379 MB, free: 41.93 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001203/0.2018, allocations: 0.5663 MB / 379.5 MB, free: 41.57 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000632/0.2025, allocations: 0.7668 MB / 380.3 MB, free: 41.15 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001961/0.2027, allocations: 111.7 kB / 380.4 MB, free: 41.09 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002687/0.203, allocations: 288.3 kB / 380.7 MB, free: 40.94 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002979/0.2033, allocations: 340.6 kB / 381 MB, free: 40.76 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.529e-05/0.2033, allocations: 16.59 kB / 381.1 MB, free: 40.76 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003024/0.2036, allocations: 176.2 kB / 381.2 MB, free: 40.68 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001662/0.2038, allocations: 191.4 kB / 381.4 MB, free: 40.57 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001869/0.204, allocations: 272.7 kB / 381.7 MB, free: 40.37 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005776/0.2046, allocations: 0.8165 MB / 382.5 MB, free: 39.79 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.2046, allocations: 0 / 382.5 MB, free: 39.79 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.81e-07/0.2046, allocations: 1.281 kB / 382.5 MB, free: 39.79 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.143e-06/0.2046, allocations: 0 / 382.5 MB, free: 39.79 MB / 298.7 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.001277/0.2059, allocations: 1.195 MB / 383.7 MB, free: 38.72 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.135e-05/0.206, allocations: 9.906 kB / 383.7 MB, free: 38.72 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001154/0.2061, allocations: 80.64 kB / 383.8 MB, free: 38.68 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006263/0.2067, allocations: 0.5779 MB / 384.4 MB, free: 38.19 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.609e-05/0.2068, allocations: 27.56 kB / 384.4 MB, free: 38.18 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.247e-05/0.2068, allocations: 33.11 kB / 384.4 MB, free: 38.16 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000492/0.2073, allocations: 347.8 kB / 384.8 MB, free: 37.89 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.056e-05/0.2073, allocations: 0 / 384.8 MB, free: 37.89 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.848e-05/0.2074, allocations: 8.219 kB / 384.8 MB, free: 37.89 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.176e-05/0.2074, allocations: 10.42 kB / 384.8 MB, free: 37.89 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003379/0.2077, allocations: 178.7 kB / 384.9 MB, free: 37.8 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001133/0.2089, allocations: 1.349 MB / 386.3 MB, free: 36.6 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006403/0.2095, allocations: 358.2 kB / 386.6 MB, free: 36.37 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002406/0.2098, allocations: 173.1 kB / 386.8 MB, free: 36.21 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.874e-05/0.2098, allocations: 11.92 kB / 386.8 MB, free: 36.2 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004253/0.2102, allocations: 475.1 kB / 387.3 MB, free: 35.68 MB / 298.7 MB Notification: Performance of pre-optimization done (n=42): time 1.823e-06/0.2103, allocations: 0 / 387.3 MB, free: 35.68 MB / 298.7 MB Notification: Performance of matching and sorting (n=42): time 0.001034/0.2113, allocations: 0.7242 MB / 388 MB, free: 34.93 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.592e-05/0.2114, allocations: 464.9 kB / 388.5 MB, free: 34.37 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007486/0.2121, allocations: 0.9301 MB / 389.4 MB, free: 33.43 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.308e-05/0.2122, allocations: 53.69 kB / 389.5 MB, free: 33.37 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001576/0.2124, allocations: 308.8 kB / 389.8 MB, free: 33.07 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.929e-05/0.2124, allocations: 98.7 kB / 389.9 MB, free: 32.97 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001066/0.2125, allocations: 102 kB / 390 MB, free: 32.86 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.382e-05/0.2126, allocations: 322 kB / 390.3 MB, free: 32.54 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00024/0.2128, allocations: 152.9 kB / 390.4 MB, free: 32.39 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003045/0.2131, allocations: 358.4 kB / 390.8 MB, free: 31.97 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000826/0.214, allocations: 0.7821 MB / 391.5 MB, free: 31.08 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.556e-06/0.214, allocations: 4 kB / 391.5 MB, free: 31.07 MB / 298.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0008179/0.2148, allocations: 0.6654 MB / 392.2 MB, free: 30.38 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.243e-05/0.2149, allocations: 105 kB / 392.3 MB, free: 30.26 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.193e-06/0.2149, allocations: 4.047 kB / 392.3 MB, free: 30.26 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.633e-05/0.2149, allocations: 7.984 kB / 392.3 MB, free: 30.25 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002102/0.2151, allocations: 63.91 kB / 392.4 MB, free: 30.19 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.666e-06/0.2151, allocations: 16.16 kB / 392.4 MB, free: 30.17 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002361/0.2154, allocations: 43.67 kB / 392.5 MB, free: 30.13 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.966e-05/0.2154, allocations: 24 kB / 392.5 MB, free: 30.11 MB / 298.7 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.0002964/0.2157, allocations: 403.6 kB / 392.9 MB, free: 29.69 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.751e-05/0.2158, allocations: 95 kB / 393 MB, free: 29.6 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.791e-05/0.2159, allocations: 82.12 kB / 393 MB, free: 29.51 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.808e-06/0.2159, allocations: 4 kB / 393 MB, free: 29.5 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.2159, allocations: 0 / 393 MB, free: 29.5 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.2159, allocations: 0 / 393 MB, free: 29.5 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008514/0.2168, allocations: 0.9582 MB / 394 MB, free: 28.48 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.2168, allocations: 0 / 394 MB, free: 28.48 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.215e-05/0.2169, allocations: 27.92 kB / 394 MB, free: 28.45 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.2169, allocations: 4 kB / 394 MB, free: 28.45 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.921e-05/0.217, allocations: 23.92 kB / 394.1 MB, free: 28.42 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.936e-06/0.217, allocations: 4 kB / 394.1 MB, free: 28.42 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.217, allocations: 0 / 394.1 MB, free: 28.42 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001243/0.2182, allocations: 1.643 MB / 395.7 MB, free: 26.69 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00011/0.2183, allocations: 152.1 kB / 395.9 MB, free: 26.52 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.945e-05/0.2184, allocations: 27.98 kB / 395.9 MB, free: 26.49 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002153/0.2187, allocations: 19.98 kB / 395.9 MB, free: 26.47 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.879e-05/0.2188, allocations: 43.89 kB / 395.9 MB, free: 26.43 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.327e-05/0.2188, allocations: 27.98 kB / 396 MB, free: 26.4 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0005432/0.2194, allocations: 0.6708 MB / 396.6 MB, free: 25.73 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2194, allocations: 0 / 396.6 MB, free: 25.73 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005668/0.2199, allocations: 151.9 kB / 396.8 MB, free: 25.59 MB / 298.7 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.0008613/0.2208, allocations: 0.4929 MB / 397.3 MB, free: 25.1 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006717/0.2215, allocations: 0.6111 MB / 397.9 MB, free: 24.45 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.2215, allocations: 0 / 397.9 MB, free: 24.45 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000369/0.2219, allocations: 441.9 kB / 398.3 MB, free: 23.98 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007297/0.2226, allocations: 162.1 kB / 398.5 MB, free: 23.82 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001457/0.2241, allocations: 1.596 MB / 400.1 MB, free: 22.18 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003033/0.2244, allocations: 0.941 MB / 401 MB, free: 21.21 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002406/0.2246, allocations: 117.1 kB / 401.1 MB, free: 21.1 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001016/0.2248, allocations: 51.42 kB / 401.2 MB, free: 21.05 MB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.2248, allocations: 0 / 401.2 MB, free: 21.05 MB / 298.7 MB Notification: Performance of Templates: time 0.01182/0.2366, allocations: 9.166 MB / 410.4 MB, free: 11.87 MB / 298.7 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/jenkins/ws/OpenModelicaLibraryTestingWork@2/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