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) 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 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001367/0.001368, allocations: 117.7 kB / 17.7 MB, free: 5.305 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.001458/0.001458, allocations: 191 kB / 18.63 MB, free: 4.379 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.388/1.388, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001692/0.001693, allocations: 42.47 kB / 302 MB, free: 5.184 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.1056, allocations: 49.44 MB / 351.5 MB, free: 3.711 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Interaction1): time 0.003713/0.1094, allocations: 2.522 MB / 354 MB, free: 1.164 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002671/0.1121, allocations: 1.8 MB / 355.8 MB, free: 15.36 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001651/0.1122, allocations: 15.94 kB / 355.8 MB, free: 15.34 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001049/0.1133, allocations: 0.5247 MB / 356.4 MB, free: 14.82 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006747/0.114, allocations: 438.4 kB / 356.8 MB, free: 14.39 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001436/0.1154, allocations: 0.672 MB / 357.5 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008037/0.1162, allocations: 0.791 MB / 358.2 MB, free: 12.94 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002433/0.1165, allocations: 105.8 kB / 358.3 MB, free: 12.83 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003312/0.1168, allocations: 326.8 kB / 358.7 MB, free: 12.51 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004085/0.1172, allocations: 358.7 kB / 359 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.731e-05/0.1173, allocations: 40 kB / 359.1 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003554/0.1177, allocations: 231.8 kB / 359.3 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002057/0.1179, allocations: 207.3 kB / 359.5 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002637/0.1182, allocations: 302.2 kB / 359.8 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008144/0.119, allocations: 0.8488 MB / 360.6 MB, free: 10.54 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.119, allocations: 0 / 360.6 MB, free: 10.54 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.119, allocations: 3.938 kB / 360.6 MB, free: 10.54 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.756e-06/0.119, allocations: 0 / 360.6 MB, free: 10.54 MB / 302.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.001572/0.1206, allocations: 1.199 MB / 361.8 MB, free: 9.238 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.177e-05/0.1207, allocations: 15.89 kB / 361.8 MB, free: 9.223 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001257/0.1208, allocations: 84 kB / 361.9 MB, free: 9.141 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008156/0.1216, allocations: 0.5781 MB / 362.5 MB, free: 8.52 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.29e-05/0.1217, allocations: 31.83 kB / 362.5 MB, free: 8.488 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.131e-05/0.1217, allocations: 23.98 kB / 362.6 MB, free: 8.465 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005645/0.1223, allocations: 358.6 kB / 362.9 MB, free: 8.074 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.005e-05/0.1223, allocations: 0 / 362.9 MB, free: 8.074 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.454e-05/0.1223, allocations: 11.98 kB / 362.9 MB, free: 8.062 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.093e-05/0.1224, allocations: 8 kB / 362.9 MB, free: 8.055 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003587/0.1227, allocations: 183.8 kB / 363.1 MB, free: 7.875 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001462/0.1242, allocations: 1.329 MB / 364.4 MB, free: 6.473 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006794/0.1249, allocations: 354.8 kB / 364.8 MB, free: 6.09 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002897/0.1252, allocations: 171.4 kB / 365 MB, free: 5.91 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.219e-05/0.1252, allocations: 12.05 kB / 365 MB, free: 5.898 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005695/0.1258, allocations: 467.1 kB / 365.4 MB, free: 5.387 MB / 302.1 MB Notification: Performance of pre-optimization done (n=42): time 2.325e-06/0.1258, allocations: 0 / 365.4 MB, free: 5.387 MB / 302.1 MB Notification: Performance of matching and sorting (n=42): time 0.001284/0.1271, allocations: 0.7389 MB / 366.2 MB, free: 4.625 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002229/0.1273, allocations: 460.9 kB / 366.6 MB, free: 4.07 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001077/0.1284, allocations: 0.9262 MB / 367.5 MB, free: 3.137 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.008e-05/0.1285, allocations: 41.7 kB / 367.6 MB, free: 3.09 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002632/0.1288, allocations: 316.7 kB / 367.9 MB, free: 2.777 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.925e-05/0.1289, allocations: 110.6 kB / 368 MB, free: 2.668 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001489/0.129, allocations: 102 kB / 368.1 MB, free: 2.562 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001456/0.1292, allocations: 322 kB / 368.4 MB, free: 2.242 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002941/0.1295, allocations: 152.9 kB / 368.6 MB, free: 2.094 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004533/0.1299, allocations: 354.5 kB / 368.9 MB, free: 1.672 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007493/0.1307, allocations: 0.5783 MB / 369.5 MB, free: 1.008 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.1307, allocations: 3.938 kB / 369.5 MB, free: 1.004 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001068/0.1318, allocations: 0.669 MB / 370.2 MB, free: 316 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.339e-05/0.1319, allocations: 101.1 kB / 370.3 MB, free: 196 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.648e-06/0.1319, allocations: 4 kB / 370.3 MB, free: 192 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.962e-05/0.1319, allocations: 4 kB / 370.3 MB, free: 188 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002469/0.1322, allocations: 67.84 kB / 370.3 MB, free: 120 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.069e-05/0.1322, allocations: 4 kB / 370.3 MB, free: 116 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002766/0.1325, allocations: 47.95 kB / 370.4 MB, free: 68 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.917e-05/0.1325, allocations: 27.98 kB / 370.4 MB, free: 40 kB / 302.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.1606/0.2931, allocations: 392.9 kB / 370.8 MB, free: 25.37 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002785/0.2934, allocations: 80.22 kB / 370.9 MB, free: 25.37 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002413/0.2936, allocations: 78.19 kB / 370.9 MB, free: 25.35 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.588e-06/0.2937, allocations: 3.562 kB / 370.9 MB, free: 25.35 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.178e-06/0.2937, allocations: 3.062 kB / 370.9 MB, free: 25.35 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.787e-06/0.2937, allocations: 3.359 kB / 371 MB, free: 25.35 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001712/0.2954, allocations: 0.9583 MB / 371.9 MB, free: 25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.488e-06/0.2954, allocations: 1.469 kB / 371.9 MB, free: 25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001235/0.2956, allocations: 24.89 kB / 371.9 MB, free: 25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.514e-06/0.2956, allocations: 1.562 kB / 371.9 MB, free: 25 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.613e-05/0.2956, allocations: 21.02 kB / 372 MB, free: 25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.782e-06/0.2957, allocations: 3.547 kB / 372 MB, free: 25 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.908e-06/0.2957, allocations: 6.328 kB / 372 MB, free: 24.99 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001332/0.297, allocations: 0.7745 MB / 372.7 MB, free: 24.74 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001665/0.2972, allocations: 152.1 kB / 372.9 MB, free: 24.64 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001194/0.2973, allocations: 23.02 kB / 372.9 MB, free: 24.64 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002441/0.2976, allocations: 24.22 kB / 372.9 MB, free: 24.64 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001279/0.2977, allocations: 40.64 kB / 373 MB, free: 24.64 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.977e-05/0.2978, allocations: 23.77 kB / 373 MB, free: 24.64 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001094/0.2989, allocations: 0.6707 MB / 373.7 MB, free: 24.55 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2989, allocations: 0 / 373.7 MB, free: 24.55 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007249/0.2996, allocations: 154.4 kB / 373.8 MB, free: 24.55 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.001184/0.3008, allocations: 0.5067 MB / 374.3 MB, free: 24.41 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009779/0.3018, allocations: 0.6181 MB / 374.9 MB, free: 24.1 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.3018, allocations: 0 / 374.9 MB, free: 24.1 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004567/0.3023, allocations: 433.2 kB / 375.4 MB, free: 23.81 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007422/0.303, allocations: 169.3 kB / 375.5 MB, free: 23.77 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001696/0.3047, allocations: 1.174 MB / 376.7 MB, free: 23.19 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004243/0.3051, allocations: 0.9358 MB / 377.6 MB, free: 22.46 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002556/0.3054, allocations: 107.2 kB / 377.7 MB, free: 22.45 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001288/0.3055, allocations: 57.45 kB / 377.8 MB, free: 22.44 MB / 302.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3056, allocations: 6.719 kB / 377.8 MB, free: 22.43 MB / 302.1 MB Notification: Performance of Templates: time 0.01532/0.3209, allocations: 9.303 MB / 387.1 MB, free: 19.58 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.makefile (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 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Interaction1/Interaction1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches