Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Blocks.Examples.Interaction1.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_cpp_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_cpp_Modelica.Blocks.Examples.Interaction1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001067/0.001067, allocations: 196 kB / 17.38 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.253/1.253, allocations: 226.6 MB / 244.7 MB, free: 6.449 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007367/0.0007367, allocations: 99.16 kB / 296.8 MB, free: 6.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001993/0.0001993, allocations: 7.984 kB / 356.7 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1747/0.1749, allocations: 51.3 MB / 408 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Interaction1): time 0.002002/0.1769, allocations: 2.164 MB / 410.2 MB, free: 25.52 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001972/0.1789, allocations: 1.855 MB / 412.1 MB, free: 23.67 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001395/0.1791, allocations: 7.938 kB / 412.1 MB, free: 23.66 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007954/0.1799, allocations: 491.8 kB / 412.6 MB, free: 23.18 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005492/0.1804, allocations: 419.5 kB / 413 MB, free: 22.78 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001057/0.1815, allocations: 0.5605 MB / 413.5 MB, free: 22.23 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004833/0.182, allocations: 0.7168 MB / 414.2 MB, free: 21.52 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000155/0.1822, allocations: 105.9 kB / 414.3 MB, free: 21.41 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002184/0.1824, allocations: 282.8 kB / 414.6 MB, free: 21.13 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002449/0.1826, allocations: 318.8 kB / 414.9 MB, free: 20.82 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.65e-05/0.1827, allocations: 12 kB / 414.9 MB, free: 20.81 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002263/0.1829, allocations: 167.8 kB / 415.1 MB, free: 20.64 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000139/0.1831, allocations: 179.4 kB / 415.3 MB, free: 20.47 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001778/0.1833, allocations: 296 kB / 415.6 MB, free: 20.17 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000409/0.1837, allocations: 0.6478 MB / 416.2 MB, free: 19.52 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.399e-06/0.1837, allocations: 0 / 416.2 MB, free: 19.52 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.1837, allocations: 3.984 kB / 416.2 MB, free: 19.52 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.993e-06/0.1837, allocations: 0 / 416.2 MB, free: 19.52 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.001105/0.1848, allocations: 1.106 MB / 417.3 MB, free: 18.32 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.978e-05/0.1849, allocations: 11.97 kB / 417.3 MB, free: 18.3 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.419e-05/0.185, allocations: 80 kB / 417.4 MB, free: 18.23 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005989/0.1856, allocations: 0.5936 MB / 418 MB, free: 17.59 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.791e-05/0.1856, allocations: 24.33 kB / 418 MB, free: 17.57 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.682e-05/0.1856, allocations: 28.12 kB / 418.1 MB, free: 17.54 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000463/0.1861, allocations: 354.7 kB / 418.4 MB, free: 17.14 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.151e-05/0.1861, allocations: 3.938 kB / 418.4 MB, free: 17.14 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.142e-05/0.1862, allocations: 11.98 kB / 418.4 MB, free: 17.13 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.083e-05/0.1862, allocations: 11.98 kB / 418.4 MB, free: 17.12 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003152/0.1865, allocations: 179.8 kB / 418.6 MB, free: 16.94 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001048/0.1876, allocations: 1.344 MB / 420 MB, free: 15.52 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005631/0.1882, allocations: 362.7 kB / 420.3 MB, free: 15.13 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002463/0.1884, allocations: 167.4 kB / 420.5 MB, free: 14.96 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.96e-05/0.1884, allocations: 7.984 kB / 420.5 MB, free: 14.95 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004429/0.1889, allocations: 459.2 kB / 420.9 MB, free: 14.45 MB / 298.7 MB Notification: Performance of pre-optimization done (n=42): time 1.773e-06/0.1889, allocations: 0 / 420.9 MB, free: 14.45 MB / 298.7 MB Notification: Performance of matching and sorting (n=42): time 0.001072/0.19, allocations: 0.7391 MB / 421.7 MB, free: 13.68 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.521e-05/0.1901, allocations: 452.9 kB / 422.1 MB, free: 13.14 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008549/0.1909, allocations: 0.9732 MB / 423.1 MB, free: 12.15 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.824e-05/0.191, allocations: 45.69 kB / 423.1 MB, free: 12.1 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001718/0.1912, allocations: 308.8 kB / 423.4 MB, free: 11.8 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.826e-05/0.1912, allocations: 122.5 kB / 423.5 MB, free: 11.68 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.133e-05/0.1913, allocations: 8 kB / 423.6 MB, free: 11.67 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.514e-05/0.1913, allocations: 326 kB / 423.9 MB, free: 11.34 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002549/0.1916, allocations: 148.9 kB / 424 MB, free: 11.2 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003313/0.1919, allocations: 350.4 kB / 424.4 MB, free: 10.78 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000547/0.1925, allocations: 0.5842 MB / 424.9 MB, free: 10.11 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.1925, allocations: 0 / 424.9 MB, free: 10.11 MB / 298.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0008165/0.1933, allocations: 0.6663 MB / 425.6 MB, free: 9.422 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.365e-05/0.1934, allocations: 105.3 kB / 425.7 MB, free: 9.301 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.244e-06/0.1934, allocations: 8 kB / 425.7 MB, free: 9.293 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.508e-05/0.1934, allocations: 4 kB / 425.7 MB, free: 9.289 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002221/0.1936, allocations: 59.91 kB / 425.8 MB, free: 9.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.358e-06/0.1937, allocations: 7.938 kB / 425.8 MB, free: 9.223 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002427/0.1939, allocations: 51.67 kB / 425.8 MB, free: 9.172 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.066e-05/0.1939, allocations: 27.98 kB / 425.9 MB, free: 9.145 MB / 298.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002812/0.1942, allocations: 398.7 kB / 426.3 MB, free: 8.734 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.975e-05/0.1943, allocations: 86.91 kB / 426.3 MB, free: 8.648 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001054/0.1944, allocations: 82.58 kB / 426.4 MB, free: 8.562 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/0.1944, allocations: 4 kB / 426.4 MB, free: 8.559 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.1944, allocations: 128 / 426.4 MB, free: 8.559 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.1945, allocations: 4 kB / 426.4 MB, free: 8.555 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008729/0.1953, allocations: 0.9777 MB / 427.4 MB, free: 7.508 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.085e-06/0.1953, allocations: 4 kB / 427.4 MB, free: 7.504 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.531e-05/0.1954, allocations: 19.94 kB / 427.4 MB, free: 7.484 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.487e-06/0.1954, allocations: 4 kB / 427.4 MB, free: 7.48 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.191e-05/0.1955, allocations: 19.92 kB / 427.5 MB, free: 7.461 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/0.1955, allocations: 0 / 427.5 MB, free: 7.461 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.1955, allocations: 4 kB / 427.5 MB, free: 7.457 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000829/0.1963, allocations: 0.7787 MB / 428.2 MB, free: 6.633 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001124/0.1965, allocations: 171.9 kB / 428.4 MB, free: 6.445 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.799e-05/0.1966, allocations: 31.92 kB / 428.4 MB, free: 6.414 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002285/0.1968, allocations: 27.98 kB / 428.5 MB, free: 6.387 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.945e-05/0.1969, allocations: 36.14 kB / 428.5 MB, free: 6.352 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.554e-05/0.1969, allocations: 23.98 kB / 428.5 MB, free: 6.328 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0006132/0.1976, allocations: 0.6981 MB / 429.2 MB, free: 5.625 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1976, allocations: 0 / 429.2 MB, free: 5.625 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004665/0.198, allocations: 151.9 kB / 429.4 MB, free: 5.477 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 (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.000896/0.1989, allocations: 499 kB / 429.9 MB, free: 5.117 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007165/0.1997, allocations: 0.6032 MB / 430.5 MB, free: 4.477 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.1997, allocations: 0 / 430.5 MB, free: 4.477 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003797/0.2001, allocations: 434.5 kB / 430.9 MB, free: 4.016 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007761/0.2009, allocations: 163.8 kB / 431 MB, free: 3.863 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00147/0.2023, allocations: 1.369 MB / 432.4 MB, free: 2.453 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002948/0.2026, allocations: 0.941 MB / 433.4 MB, free: 1.484 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001184/0.2028, allocations: 55.42 kB / 433.4 MB, free: 1.43 MB / 298.7 MB Notification: Performance of SimCode: time 3e-07/0.2028, allocations: 0 / 433.4 MB, free: 1.43 MB / 298.7 MB Notification: Performance of Templates: time 0.01205/0.2148, allocations: 9.926 MB / 443.3 MB, free: 7.52 MB / 314.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Blocks.Examples.Interaction1.makefile (rm -f Modelica_trunk_cpp_Modelica.Blocks.Examples.Interaction1.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Blocks.Examples.Interaction1.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Blocks.Examples.Interaction1.pipe >> ../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.Interaction1.sim & ./Modelica_trunk_cpp_Modelica.Blocks.Examples.Interaction1 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Blocks.Examples.Interaction1.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_trunk_cpp_Modelica.Blocks.Examples.Interaction1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches