Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.Interaction1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Blocks.Examples.Interaction1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00113/0.00113, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001219/0.001219, allocations: 211.8 kB / 19.25 MB, free: 3.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.353/1.353, allocations: 227.4 MB / 247.4 MB, free: 10.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001143/0.001143, allocations: 61.09 kB / 307.6 MB, free: 0.6836 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08638/0.08754, allocations: 50.53 MB / 358.1 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Interaction1): time 0.003585/0.09116, allocations: 2.57 MB / 360.7 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002837/0.09401, allocations: 1.929 MB / 362.6 MB, free: 9.617 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000159/0.09419, allocations: 7.938 kB / 362.6 MB, free: 9.609 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001036/0.09523, allocations: 0.5375 MB / 363.2 MB, free: 9.07 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007801/0.09602, allocations: 493.7 kB / 363.7 MB, free: 8.59 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001131/0.09716, allocations: 0.5481 MB / 364.2 MB, free: 8.047 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007367/0.09791, allocations: 0.8261 MB / 365 MB, free: 7.219 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001788/0.0981, allocations: 109.9 kB / 365.1 MB, free: 7.113 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003201/0.09843, allocations: 330.8 kB / 365.5 MB, free: 6.789 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003405/0.09878, allocations: 370.5 kB / 365.8 MB, free: 6.426 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.195e-05/0.09887, allocations: 44 kB / 365.9 MB, free: 6.383 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003121/0.09919, allocations: 215.8 kB / 366.1 MB, free: 6.172 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001939/0.09939, allocations: 207.3 kB / 366.3 MB, free: 5.969 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002664/0.09966, allocations: 310 kB / 366.6 MB, free: 5.664 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007667/0.1004, allocations: 0.8647 MB / 367.5 MB, free: 4.797 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.1005, allocations: 3.938 kB / 367.5 MB, free: 4.793 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1005, allocations: 0 / 367.5 MB, free: 4.793 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.664e-06/0.1005, allocations: 4 kB / 367.5 MB, free: 4.789 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.001545/0.102, allocations: 1.23 MB / 368.7 MB, free: 3.461 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.97e-05/0.1021, allocations: 12.03 kB / 368.7 MB, free: 3.449 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001377/0.1022, allocations: 83.91 kB / 368.8 MB, free: 3.367 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007149/0.1029, allocations: 0.5897 MB / 369.4 MB, free: 2.734 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.39e-05/0.103, allocations: 20.38 kB / 369.4 MB, free: 2.715 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.276e-05/0.103, allocations: 28.12 kB / 369.4 MB, free: 2.688 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005414/0.1036, allocations: 346.8 kB / 369.8 MB, free: 2.301 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/0.1036, allocations: 4 kB / 369.8 MB, free: 2.297 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.497e-05/0.1036, allocations: 15.98 kB / 369.8 MB, free: 2.281 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.878e-05/0.1037, allocations: 11.94 kB / 369.8 MB, free: 2.27 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003538/0.104, allocations: 171.8 kB / 370 MB, free: 2.102 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001373/0.1054, allocations: 1.36 MB / 371.3 MB, free: 0.668 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006836/0.1061, allocations: 362.6 kB / 371.7 MB, free: 284 kB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002878/0.1064, allocations: 167.4 kB / 371.8 MB, free: 104 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.889e-05/0.1064, allocations: 15.98 kB / 371.9 MB, free: 88 kB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.1307/0.2371, allocations: 453.4 kB / 372.3 MB, free: 20.55 MB / 302.1 MB Notification: Performance of pre-optimization done (n=42): time 2.865e-06/0.2372, allocations: 2.344 kB / 372.3 MB, free: 20.55 MB / 302.1 MB Notification: Performance of matching and sorting (n=42): time 0.001478/0.2386, allocations: 0.7423 MB / 373 MB, free: 20.39 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000104/0.2388, allocations: 457.5 kB / 373.5 MB, free: 19.86 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001301/0.2401, allocations: 0.9758 MB / 374.5 MB, free: 19.49 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.765e-05/0.2401, allocations: 45.44 kB / 374.5 MB, free: 19.45 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002266/0.2404, allocations: 316.4 kB / 374.8 MB, free: 19.21 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.06e-05/0.2405, allocations: 106.2 kB / 374.9 MB, free: 19.18 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001463/0.2406, allocations: 96.36 kB / 375 MB, free: 19.13 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.584e-05/0.2407, allocations: 325.8 kB / 375.3 MB, free: 18.82 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003217/0.241, allocations: 151.6 kB / 375.5 MB, free: 18.77 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004221/0.2414, allocations: 360 kB / 375.8 MB, free: 18.5 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006161/0.2421, allocations: 0.5795 MB / 376.4 MB, free: 18.05 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.159e-06/0.2421, allocations: 1.281 kB / 376.4 MB, free: 18.05 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0009779/0.2431, allocations: 0.6836 MB / 377.1 MB, free: 17.72 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.4e-05/0.2431, allocations: 95.95 kB / 377.2 MB, free: 17.63 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.498e-06/0.2431, allocations: 4.125 kB / 377.2 MB, free: 17.63 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.115e-05/0.2432, allocations: 6.062 kB / 377.2 MB, free: 17.63 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002536/0.2434, allocations: 63.03 kB / 377.3 MB, free: 17.62 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.429e-05/0.2434, allocations: 10.28 kB / 377.3 MB, free: 17.62 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002749/0.2437, allocations: 47.73 kB / 377.3 MB, free: 17.6 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.501e-05/0.2438, allocations: 25.5 kB / 377.3 MB, free: 17.6 MB / 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.0003276/0.2441, allocations: 400.3 kB / 377.7 MB, free: 17.32 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001066/0.2442, allocations: 85.77 kB / 377.8 MB, free: 17.28 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001194/0.2443, allocations: 78.8 kB / 377.9 MB, free: 17.24 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.222e-06/0.2444, allocations: 8.219 kB / 377.9 MB, free: 17.24 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.584e-06/0.2444, allocations: 1.594 kB / 377.9 MB, free: 17.24 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.907e-06/0.2444, allocations: 9.656 kB / 377.9 MB, free: 17.24 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001065/0.2455, allocations: 0.9739 MB / 378.9 MB, free: 16.67 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.065e-06/0.2455, allocations: 1.406 kB / 378.9 MB, free: 16.67 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.509e-05/0.2456, allocations: 28.03 kB / 378.9 MB, free: 16.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.448e-06/0.2456, allocations: 9.438 kB / 378.9 MB, free: 16.66 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.488e-05/0.2456, allocations: 16.62 kB / 378.9 MB, free: 16.65 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.047e-06/0.2456, allocations: 2.625 kB / 378.9 MB, free: 16.65 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.2457, allocations: 2.062 kB / 378.9 MB, free: 16.65 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009936/0.2466, allocations: 0.783 MB / 379.7 MB, free: 16.21 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001106/0.2468, allocations: 156 kB / 379.9 MB, free: 16.08 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001143/0.2469, allocations: 26.11 kB / 379.9 MB, free: 16.07 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002415/0.2471, allocations: 25.77 kB / 379.9 MB, free: 16.06 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001094/0.2473, allocations: 37.81 kB / 380 MB, free: 16.05 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.259e-05/0.2473, allocations: 26.06 kB / 380 MB, free: 16.05 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007918/0.2481, allocations: 0.6988 MB / 380.7 MB, free: 15.77 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.2481, allocations: 0 / 380.7 MB, free: 15.77 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005627/0.2487, allocations: 150.2 kB / 380.8 MB, free: 15.75 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.001073/0.2498, allocations: 499.6 kB / 381.3 MB, free: 15.56 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009001/0.2507, allocations: 0.6266 MB / 382 MB, free: 15.22 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.2507, allocations: 1.188 kB / 382 MB, free: 15.22 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004316/0.2511, allocations: 432 kB / 382.4 MB, free: 14.93 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008285/0.252, allocations: 189.2 kB / 382.6 MB, free: 14.86 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001695/0.2537, allocations: 1.282 MB / 383.8 MB, free: 14.2 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003992/0.2541, allocations: 0.9407 MB / 384.8 MB, free: 13.47 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001267/0.2542, allocations: 59.64 kB / 384.8 MB, free: 13.46 MB / 302.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2542, allocations: 0 / 384.8 MB, free: 13.46 MB / 302.1 MB Notification: Performance of Templates: time 0.01485/0.2691, allocations: 10.02 MB / 394.9 MB, free: 9.52 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.Interaction1.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.Interaction1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.Interaction1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.Interaction1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.Interaction1.sim & ./Modelica_trunk_Modelica.Blocks.Examples.Interaction1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.Interaction1.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Blocks.Examples.Interaction1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches