Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Interaction1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_cpp_Modelica.Blocks.Examples.Interaction1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001579/0.001579, allocations: 179.2 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.483/1.483, allocations: 205.4 MB / 222.5 MB, free: 9.102 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007518/0.0007518, allocations: 98 kB / 270.9 MB, free: 8.352 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003181/0.0003182, allocations: 8 kB / 327 MB, free: 208 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2049/0.2052, allocations: 47.58 MB / 374.5 MB, free: 45.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Interaction1): time 0.002318/0.2076, allocations: 2.102 MB / 376.6 MB, free: 43.76 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002182/0.2098, allocations: 1.598 MB / 378.2 MB, free: 42.51 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001946/0.21, allocations: 7.25 kB / 378.2 MB, free: 42.5 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000929/0.2109, allocations: 490.6 kB / 378.7 MB, free: 42.25 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005545/0.2115, allocations: 364.6 kB / 379.1 MB, free: 42.03 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001319/0.2128, allocations: 0.5219 MB / 379.6 MB, free: 41.71 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006711/0.2135, allocations: 0.6813 MB / 380.3 MB, free: 41.29 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001723/0.2137, allocations: 96.89 kB / 380.4 MB, free: 41.25 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002729/0.214, allocations: 271.5 kB / 380.6 MB, free: 41.11 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003011/0.2143, allocations: 315.3 kB / 381 MB, free: 40.94 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.529e-05/0.2143, allocations: 13.56 kB / 381 MB, free: 40.94 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000309/0.2147, allocations: 164.6 kB / 381.1 MB, free: 40.87 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001736/0.2148, allocations: 176.4 kB / 381.3 MB, free: 40.77 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001033/0.215, allocations: 138.5 kB / 381.4 MB, free: 40.67 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005109/0.2155, allocations: 0.6292 MB / 382.1 MB, free: 40.24 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.2155, allocations: 3.984 kB / 382.1 MB, free: 40.23 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.2155, allocations: 1.438 kB / 382.1 MB, free: 40.23 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.206e-06/0.2155, allocations: 0 / 382.1 MB, free: 40.23 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.00127/0.2168, allocations: 1.085 MB / 383.2 MB, free: 39.24 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.546e-05/0.2168, allocations: 13.75 kB / 383.2 MB, free: 39.23 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001188/0.217, allocations: 80.95 kB / 383.2 MB, free: 39.19 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000684/0.2176, allocations: 0.5527 MB / 383.8 MB, free: 38.73 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.539e-05/0.2177, allocations: 19.52 kB / 383.8 MB, free: 38.72 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.102e-05/0.2177, allocations: 20.41 kB / 383.8 MB, free: 38.72 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005427/0.2183, allocations: 346.2 kB / 384.2 MB, free: 38.45 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.285e-05/0.2183, allocations: 5.281 kB / 384.2 MB, free: 38.45 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.322e-05/0.2183, allocations: 15.86 kB / 384.2 MB, free: 38.44 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.165e-05/0.2184, allocations: 10.36 kB / 384.2 MB, free: 38.43 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000351/0.2187, allocations: 169.2 kB / 384.4 MB, free: 38.36 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001217/0.22, allocations: 1.344 MB / 385.7 MB, free: 37.16 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006731/0.2206, allocations: 357.5 kB / 386.1 MB, free: 36.93 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002896/0.221, allocations: 173.2 kB / 386.2 MB, free: 36.82 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.868e-05/0.221, allocations: 12.33 kB / 386.2 MB, free: 36.82 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004876/0.2215, allocations: 460 kB / 386.7 MB, free: 36.32 MB / 298.7 MB Notification: Performance of pre-optimization done (n=42): time 2.384e-06/0.2215, allocations: 0 / 386.7 MB, free: 36.32 MB / 298.7 MB Notification: Performance of matching and sorting (n=42): time 0.001213/0.2227, allocations: 0.7388 MB / 387.4 MB, free: 35.56 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001109/0.2228, allocations: 460.9 kB / 387.9 MB, free: 35 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008945/0.2238, allocations: 0.9262 MB / 388.8 MB, free: 34.07 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.019e-05/0.2238, allocations: 41.7 kB / 388.9 MB, free: 34.02 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001883/0.224, allocations: 312.7 kB / 389.2 MB, free: 33.71 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.202e-05/0.2241, allocations: 102.7 kB / 389.3 MB, free: 33.61 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.997e-05/0.2241, allocations: 12 kB / 389.3 MB, free: 33.6 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.136e-05/0.2242, allocations: 329.9 kB / 389.6 MB, free: 33.27 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002784/0.2245, allocations: 156.9 kB / 389.7 MB, free: 33.12 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000326/0.2248, allocations: 350.4 kB / 390.1 MB, free: 32.7 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003135/0.2251, allocations: 268.9 kB / 390.4 MB, free: 32.42 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.2251, allocations: 96 / 390.4 MB, free: 32.42 MB / 298.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.00084/0.226, allocations: 0.6653 MB / 391 MB, free: 31.73 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.939e-05/0.226, allocations: 97.09 kB / 391.1 MB, free: 31.62 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.125e-06/0.226, allocations: 4 kB / 391.1 MB, free: 31.61 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.83e-05/0.2261, allocations: 8 kB / 391.1 MB, free: 31.61 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002389/0.2263, allocations: 63.89 kB / 391.2 MB, free: 31.54 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.066e-05/0.2263, allocations: 11.94 kB / 391.2 MB, free: 31.53 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002851/0.2266, allocations: 56.42 kB / 391.3 MB, free: 31.48 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.102e-05/0.2267, allocations: 20 kB / 391.3 MB, free: 31.46 MB / 298.7 MB Warning: Assuming fixed start value for the following 2 variables: stop.table.y:DISCRETE(flow=false fixed = true protected = true ) "Connector of Boolean output signal" type: Boolean start.table.y:DISCRETE(flow=false fixed = true protected = true ) "Connector of Boolean output signal" type: Boolean 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.0003633/0.227, allocations: 412.2 kB / 391.7 MB, free: 31.03 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.554e-05/0.2271, allocations: 83.05 kB / 391.8 MB, free: 30.95 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001052/0.2272, allocations: 74.16 kB / 391.8 MB, free: 30.87 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.2273, allocations: 8 kB / 391.8 MB, free: 30.86 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.2273, allocations: 4 kB / 391.8 MB, free: 30.86 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.2273, allocations: 3.984 kB / 391.8 MB, free: 30.85 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008821/0.2282, allocations: 0.9581 MB / 392.8 MB, free: 29.82 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.2282, allocations: 0 / 392.8 MB, free: 29.82 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001078/0.2283, allocations: 31.92 kB / 392.8 MB, free: 29.79 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.537e-06/0.2283, allocations: 0 / 392.8 MB, free: 29.79 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.059e-05/0.2283, allocations: 16 kB / 392.8 MB, free: 29.78 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.2283, allocations: 7.984 kB / 392.9 MB, free: 29.77 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.2284, allocations: 0 / 392.9 MB, free: 29.77 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008131/0.2292, allocations: 0.7713 MB / 393.6 MB, free: 28.95 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001094/0.2293, allocations: 172.1 kB / 393.8 MB, free: 28.77 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.766e-05/0.2294, allocations: 27.98 kB / 393.8 MB, free: 28.74 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002398/0.2296, allocations: 23.98 kB / 393.8 MB, free: 28.71 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.91e-05/0.2298, allocations: 35.95 kB / 393.9 MB, free: 28.68 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.834e-05/0.2298, allocations: 23.98 kB / 393.9 MB, free: 28.66 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0006361/0.2304, allocations: 0.6591 MB / 394.6 MB, free: 28 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2304, allocations: 0 / 394.6 MB, free: 28 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005611/0.231, allocations: 163.8 kB / 394.7 MB, free: 27.84 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.0009694/0.232, allocations: 0.4892 MB / 395.2 MB, free: 27.36 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008481/0.2329, allocations: 0.6114 MB / 395.8 MB, free: 26.71 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.327e-06/0.2329, allocations: 0 / 395.8 MB, free: 26.71 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003867/0.2333, allocations: 430 kB / 396.2 MB, free: 26.26 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008083/0.2341, allocations: 167 kB / 396.4 MB, free: 26.1 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001585/0.2357, allocations: 1.327 MB / 397.7 MB, free: 24.73 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00029/0.236, allocations: 0.9297 MB / 398.7 MB, free: 23.77 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001206/0.2361, allocations: 55.42 kB / 398.7 MB, free: 23.72 MB / 298.7 MB Notification: Performance of SimCode: time 5.81e-07/0.2361, allocations: 0 / 398.7 MB, free: 23.72 MB / 298.7 MB Notification: Performance of Templates: time 0.01097/0.2471, allocations: 9.677 MB / 408.4 MB, free: 14.03 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Interaction1.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Interaction1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Interaction1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Interaction1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Interaction1.sim & ./Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Interaction1 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Interaction1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Interaction1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/Interaction1/Interaction1.csv","../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Interaction1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches