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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001504/0.001504, allocations: 177.1 kB / 13.64 MB, free: 1.676 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.332/1.332, allocations: 221.3 MB / 235.5 MB, free: 2.949 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008308/0.0008307, allocations: 95.67 kB / 286.5 MB, free: 232 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.429e-05/2.435e-05, allocations: 3.984 kB / 343.8 MB, free: 4.332 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09019/0.09023, allocations: 50.42 MB / 394.2 MB, free: 1.871 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3184/0.4086, allocations: 82.28 MB / 476.5 MB, free: 5.281 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001856/0.4089, allocations: 71.8 kB / 476.6 MB, free: 5.215 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07202/0.4809, allocations: 26.6 MB / 0.4914 GB, free: 10.58 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.4809, allocations: 4 kB / 0.4914 GB, free: 10.58 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.314e-05/0.481, allocations: 12 kB / 0.4914 GB, free: 10.57 MB / 378.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.001412/0.4824, allocations: 0.9951 MB / 0.4924 GB, free: 9.477 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.987e-05/0.4825, allocations: 8.031 kB / 0.4924 GB, free: 9.469 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001392/0.4826, allocations: 79.06 kB / 0.4925 GB, free: 9.391 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001087/0.4837, allocations: 0.6088 MB / 0.4931 GB, free: 8.742 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.257e-05/0.4838, allocations: 15.94 kB / 0.4931 GB, free: 8.727 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.618e-05/0.4838, allocations: 31.98 kB / 0.4931 GB, free: 8.695 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005662/0.4844, allocations: 358.8 kB / 0.4934 GB, free: 8.305 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/0.4844, allocations: 0 / 0.4934 GB, free: 8.305 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.521e-05/0.4845, allocations: 11.98 kB / 0.4935 GB, free: 8.293 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.14e-05/0.4845, allocations: 11.95 kB / 0.4935 GB, free: 8.281 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003209/0.4848, allocations: 191.8 kB / 0.4936 GB, free: 8.094 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001655/0.4865, allocations: 1.423 MB / 0.495 GB, free: 6.598 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005073/0.487, allocations: 351 kB / 0.4954 GB, free: 6.219 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002616/0.4873, allocations: 191.4 kB / 0.4956 GB, free: 6.02 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.816e-05/0.4873, allocations: 0 / 0.4956 GB, free: 6.02 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005739/0.4879, allocations: 471.3 kB / 0.496 GB, free: 5.5 MB / 378.7 MB Notification: Performance of pre-optimization done (n=42): time 1.763e-06/0.4879, allocations: 4 kB / 0.496 GB, free: 5.496 MB / 378.7 MB Notification: Performance of matching and sorting (n=42): time 0.001007/0.4889, allocations: 0.6261 MB / 0.4966 GB, free: 4.836 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001966/0.4891, allocations: 460.9 kB / 0.4971 GB, free: 4.281 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001088/0.4902, allocations: 0.8356 MB / 0.4979 GB, free: 3.438 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.379e-05/0.4903, allocations: 45.69 kB / 0.4979 GB, free: 3.387 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002378/0.4905, allocations: 301 kB / 0.4982 GB, free: 3.09 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.946e-05/0.4906, allocations: 110.7 kB / 0.4983 GB, free: 2.98 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.202e-05/0.4907, allocations: 8 kB / 0.4983 GB, free: 2.973 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001149/0.4908, allocations: 334 kB / 0.4986 GB, free: 2.641 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000252/0.491, allocations: 149 kB / 0.4988 GB, free: 2.496 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004279/0.4915, allocations: 370.4 kB / 0.4991 GB, free: 2.059 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003215/0.4918, allocations: 261.5 kB / 0.4994 GB, free: 1.785 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.4918, allocations: 0 / 0.4994 GB, free: 1.785 MB / 378.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0009566/0.4928, allocations: 0.6926 MB / 0.5001 GB, free: 1.066 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.665e-05/0.4929, allocations: 97.09 kB / 0.5002 GB, free: 0.9531 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.726e-06/0.4929, allocations: 4 kB / 0.5002 GB, free: 0.9492 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.722e-05/0.4929, allocations: 4 kB / 0.5002 GB, free: 0.9453 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002692/0.4932, allocations: 67.84 kB / 0.5002 GB, free: 0.8789 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.582e-05/0.4932, allocations: 12.22 kB / 0.5002 GB, free: 0.8672 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002905/0.4935, allocations: 56.02 kB / 0.5003 GB, free: 0.8125 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.286e-05/0.4936, allocations: 24 kB / 0.5003 GB, free: 0.7891 MB / 378.7 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],$whenCondition9,$PRE.integerTable.combiTimeTable.nextTimeEvent,integerTable.y,integerTable.combiTimeTable.nextTimeEvent,$PRE.integerTable.combiTimeTable.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEventScaled,$whenCondition8,$PRE.booleanTable.combiTimeTable.nextTimeEvent,booleanTable.y,booleanTable.combiTimeTable.nextTimeEvent,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEventScaled,$whenCondition3,$PRE.stop.table.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.start.table.combiTimeTable.nextTimeEvent,start.reset[1],$PRE.stop.on,stop.on,$PRE.start.on,start.on,stop.reset[1],$whenCondition4,$whenCondition5,$PRE.stop.reset[1],$PRE.stop.table.y,stop.table.y,stop.table.combiTimeTable.nextTimeEvent,$PRE.stop.table.combiTimeTable.nextTimeEventScaled,stop.table.combiTimeTable.nextTimeEventScaled,stop.pre_reset[1],$whenCondition6,$whenCondition7,$PRE.start.reset[1],$PRE.start.table.y,start.table.y,start.table.combiTimeTable.nextTimeEvent,$PRE.start.table.combiTimeTable.nextTimeEventScaled,start.table.combiTimeTable.nextTimeEventScaled,start.pre_reset[1],$whenCondition1,timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,timeTable.nextEventScaled,booleanValue.active,integerValue.number) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002218/0.4938, allocations: 265.8 kB / 0.5006 GB, free: 0.5117 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00012/0.4939, allocations: 83.05 kB / 0.5006 GB, free: 440 kB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008154/0.4947, allocations: 0.5191 MB / 0.5012 GB, free: 15.89 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/0.4948, allocations: 4.188 kB / 0.5012 GB, free: 15.89 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.189e-06/0.4948, allocations: 0 / 0.5012 GB, free: 15.89 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.116e-06/0.4948, allocations: 7.938 kB / 0.5012 GB, free: 15.88 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001277/0.4961, allocations: 1.074 MB / 0.5022 GB, free: 14.74 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.067e-06/0.4961, allocations: 4.062 kB / 0.5022 GB, free: 14.73 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001258/0.4962, allocations: 31.92 kB / 0.5022 GB, free: 14.7 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.501e-06/0.4962, allocations: 8 kB / 0.5023 GB, free: 14.7 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.094e-05/0.4963, allocations: 15.98 kB / 0.5023 GB, free: 14.68 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.448e-06/0.4963, allocations: 4 kB / 0.5023 GB, free: 14.68 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.507e-06/0.4963, allocations: 4.109 kB / 0.5023 GB, free: 14.67 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00106/0.4974, allocations: 0.8592 MB / 0.5031 GB, free: 13.75 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000226/0.4976, allocations: 192.1 kB / 0.5033 GB, free: 13.54 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001133/0.4977, allocations: 28 kB / 0.5033 GB, free: 13.51 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002669/0.498, allocations: 27.97 kB / 0.5034 GB, free: 13.48 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.804e-05/0.4981, allocations: 39.89 kB / 0.5034 GB, free: 13.45 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.876e-05/0.4982, allocations: 31.98 kB / 0.5034 GB, free: 13.41 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0008055/0.499, allocations: 0.6553 MB / 0.5041 GB, free: 12.75 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.499, allocations: 0 / 0.5041 GB, free: 12.75 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006406/0.4996, allocations: 184 kB / 0.5042 GB, free: 12.57 MB / 394.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.nextTimeEvent,integerTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 8 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009904/0.5006, allocations: 469.9 kB / 0.5047 GB, free: 12.21 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0008019/0.5014, allocations: 0.6346 MB / 0.5053 GB, free: 11.54 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.5015, allocations: 0 / 0.5053 GB, free: 11.54 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004566/0.5019, allocations: 447.7 kB / 0.5057 GB, free: 11.07 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007028/0.5026, allocations: 151.4 kB / 0.5059 GB, free: 10.93 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001571/0.5042, allocations: 0.9836 MB / 0.5068 GB, free: 9.906 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004941/0.5047, allocations: 0.9491 MB / 0.5078 GB, free: 8.926 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003016/0.505, allocations: 121.1 kB / 0.5079 GB, free: 8.805 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001423/0.5052, allocations: 59.42 kB / 0.5079 GB, free: 8.746 MB / 394.7 MB Notification: Performance of SimCode: time 3.51e-07/0.5052, allocations: 0 / 0.5079 GB, free: 8.746 MB / 394.7 MB Notification: Performance of Templates: time 0.01535/0.5205, allocations: 9.208 MB / 0.5169 GB, free: 15.57 MB / 410.7 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Interaction1/Interaction1.csv","../files/Modelica_4.0.0_Modelica.Blocks.Examples.Interaction1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches