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.001102/0.001102, allocations: 188.9 kB / 17.27 MB, free: 4.504 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.23/1.23, allocations: 222.9 MB / 240.9 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008866/0.0008867, allocations: 106.5 kB / 291.2 MB, free: 10.95 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007468/0.0007468, allocations: 43.94 kB / 350 MB, free: 96 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2181/0.2188, allocations: 49.43 MB / 399.5 MB, free: 33.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Interaction1): time 0.003123/0.222, allocations: 2.571 MB / 402 MB, free: 30.81 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002243/0.2243, allocations: 1.811 MB / 403.8 MB, free: 29 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001907/0.2245, allocations: 11.88 kB / 403.8 MB, free: 28.98 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008722/0.2254, allocations: 0.4989 MB / 404.3 MB, free: 28.48 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005091/0.2259, allocations: 402.8 kB / 404.7 MB, free: 28.09 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001257/0.2272, allocations: 0.6063 MB / 405.3 MB, free: 27.5 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005606/0.2278, allocations: 0.7753 MB / 406.1 MB, free: 26.72 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000181/0.2279, allocations: 105.8 kB / 406.2 MB, free: 26.61 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002301/0.2282, allocations: 286.8 kB / 406.5 MB, free: 26.33 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002415/0.2284, allocations: 346.5 kB / 406.8 MB, free: 25.99 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.839e-05/0.2285, allocations: 16 kB / 406.9 MB, free: 25.97 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002545/0.2287, allocations: 179.8 kB / 407 MB, free: 25.8 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001426/0.2289, allocations: 187.3 kB / 407.2 MB, free: 25.61 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001736/0.2291, allocations: 266.2 kB / 407.5 MB, free: 25.35 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000578/0.2297, allocations: 0.823 MB / 408.3 MB, free: 24.53 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.2297, allocations: 0 / 408.3 MB, free: 24.53 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.2297, allocations: 0 / 408.3 MB, free: 24.53 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.484e-06/0.2297, allocations: 0 / 408.3 MB, free: 24.53 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.001519/0.2312, allocations: 1.195 MB / 409.5 MB, free: 23.23 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.371e-05/0.2313, allocations: 12.03 kB / 409.5 MB, free: 23.22 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001282/0.2314, allocations: 76 kB / 409.6 MB, free: 23.15 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006524/0.2321, allocations: 0.582 MB / 410.2 MB, free: 22.52 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.439e-05/0.2321, allocations: 23.89 kB / 410.2 MB, free: 22.5 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.348e-05/0.2321, allocations: 20 kB / 410.2 MB, free: 22.48 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004443/0.2326, allocations: 358.7 kB / 410.6 MB, free: 22.09 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.041e-05/0.2326, allocations: 0 / 410.6 MB, free: 22.09 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.758e-05/0.2326, allocations: 12 kB / 410.6 MB, free: 22.08 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.895e-05/0.2327, allocations: 12 kB / 410.6 MB, free: 22.07 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002987/0.233, allocations: 179.8 kB / 410.8 MB, free: 21.89 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001107/0.2341, allocations: 1.348 MB / 412.1 MB, free: 20.47 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006152/0.2347, allocations: 350.8 kB / 412.4 MB, free: 20.09 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002485/0.235, allocations: 176.2 kB / 412.6 MB, free: 19.91 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.361e-05/0.235, allocations: 8 kB / 412.6 MB, free: 19.9 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004645/0.2355, allocations: 471.2 kB / 413.1 MB, free: 19.38 MB / 298.7 MB Notification: Performance of pre-optimization done (n=42): time 1.764e-06/0.2355, allocations: 0 / 413.1 MB, free: 19.38 MB / 298.7 MB Notification: Performance of matching and sorting (n=42): time 0.001078/0.2366, allocations: 0.7359 MB / 413.8 MB, free: 18.62 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001103/0.2367, allocations: 456.9 kB / 414.3 MB, free: 18.07 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007555/0.2375, allocations: 0.9377 MB / 415.2 MB, free: 17.12 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.31e-05/0.2375, allocations: 45.7 kB / 415.3 MB, free: 17.07 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001698/0.2377, allocations: 304.8 kB / 415.6 MB, free: 16.77 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.664e-05/0.2378, allocations: 106.6 kB / 415.7 MB, free: 16.67 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001115/0.2379, allocations: 94.12 kB / 415.7 MB, free: 16.57 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.211e-05/0.2379, allocations: 330 kB / 416.1 MB, free: 16.24 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002438/0.2382, allocations: 152.9 kB / 416.2 MB, free: 16.09 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003118/0.2385, allocations: 354.4 kB / 416.6 MB, free: 15.67 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005563/0.2391, allocations: 0.5777 MB / 417.1 MB, free: 15 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.005e-06/0.2391, allocations: 3.938 kB / 417.1 MB, free: 15 MB / 298.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007847/0.2399, allocations: 0.6621 MB / 417.8 MB, free: 14.31 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.424e-05/0.2399, allocations: 101.4 kB / 417.9 MB, free: 14.2 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.766e-06/0.24, allocations: 4.047 kB / 417.9 MB, free: 14.19 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.174e-05/0.24, allocations: 7.984 kB / 417.9 MB, free: 14.18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002209/0.2402, allocations: 71.91 kB / 418 MB, free: 14.11 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.011e-05/0.2402, allocations: 4 kB / 418 MB, free: 14.11 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002291/0.2405, allocations: 47.67 kB / 418 MB, free: 14.06 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.067e-05/0.2405, allocations: 24 kB / 418.1 MB, free: 14.04 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],$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.0002723/0.2408, allocations: 402.6 kB / 418.5 MB, free: 13.62 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.627e-05/0.2409, allocations: 83 kB / 418.5 MB, free: 13.54 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001067/0.241, allocations: 74.22 kB / 418.6 MB, free: 13.46 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.241, allocations: 4 kB / 418.6 MB, free: 13.45 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.455e-06/0.241, allocations: 7.984 kB / 418.6 MB, free: 13.45 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.399e-06/0.241, allocations: 0 / 418.6 MB, free: 13.45 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000909/0.2419, allocations: 0.9659 MB / 419.6 MB, free: 12.41 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.242, allocations: 4 kB / 419.6 MB, free: 12.41 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.333e-05/0.242, allocations: 23.92 kB / 419.6 MB, free: 12.38 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.2421, allocations: 0 / 419.6 MB, free: 12.38 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.941e-05/0.2421, allocations: 16 kB / 419.6 MB, free: 12.37 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.727e-06/0.2421, allocations: 11.92 kB / 419.6 MB, free: 12.36 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.2421, allocations: 4 kB / 419.6 MB, free: 12.35 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001341/0.2435, allocations: 1.653 MB / 421.3 MB, free: 10.61 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001109/0.2436, allocations: 148.2 kB / 421.4 MB, free: 10.45 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.09e-05/0.2437, allocations: 27.98 kB / 421.5 MB, free: 10.42 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002106/0.2439, allocations: 24.17 kB / 421.5 MB, free: 10.4 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.355e-05/0.244, allocations: 39.95 kB / 421.5 MB, free: 10.36 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.703e-05/0.244, allocations: 31.86 kB / 421.6 MB, free: 10.33 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0005678/0.2446, allocations: 0.6669 MB / 422.2 MB, free: 9.664 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.2446, allocations: 0 / 422.2 MB, free: 9.664 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006162/0.2452, allocations: 151.9 kB / 422.4 MB, free: 9.516 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.0009373/0.2462, allocations: 0.4994 MB / 422.9 MB, free: 9.172 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007411/0.2469, allocations: 0.6031 MB / 423.5 MB, free: 8.531 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.175e-06/0.2469, allocations: 384 / 423.5 MB, free: 8.531 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000391/0.2473, allocations: 442.5 kB / 423.9 MB, free: 8.062 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007721/0.2481, allocations: 170.2 kB / 424.1 MB, free: 7.898 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001574/0.2497, allocations: 1.601 MB / 425.7 MB, free: 6.246 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003057/0.25, allocations: 0.9371 MB / 426.6 MB, free: 5.281 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002637/0.2503, allocations: 109.1 kB / 426.7 MB, free: 5.176 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001108/0.2504, allocations: 59.42 kB / 426.8 MB, free: 5.117 MB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.2504, allocations: 0 / 426.8 MB, free: 5.117 MB / 298.7 MB Notification: Performance of Templates: time 0.01391/0.2643, allocations: 9.15 MB / 435.9 MB, free: 12.03 MB / 314.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@2/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