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.001431/0.001431, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.319/1.319, allocations: 221.5 MB / 230.3 MB, free: 7.57 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.0008074/0.0008075, allocations: 96.12 kB / 281.2 MB, free: 5.32 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.559e-05/2.571e-05, allocations: 4 kB / 337 MB, free: 10.04 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1067, allocations: 50.43 MB / 387.5 MB, free: 7.57 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3407/0.4475, allocations: 81.62 MB / 469.1 MB, free: 13.22 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002013/0.4477, allocations: 69.72 kB / 469.1 MB, free: 13.15 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06727/0.515, allocations: 26.37 MB / 495.5 MB, free: 2.746 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.714e-06/0.5151, allocations: 0 / 495.5 MB, free: 2.746 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.099e-05/0.5152, allocations: 15.98 kB / 495.5 MB, free: 2.73 MB / 362.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.001616/0.5168, allocations: 0.9917 MB / 496.5 MB, free: 1.648 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.982e-05/0.5169, allocations: 8.031 kB / 496.5 MB, free: 1.641 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001658/0.517, allocations: 79.06 kB / 496.6 MB, free: 1.562 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001197/0.5182, allocations: 0.6087 MB / 497.2 MB, free: 0.9102 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.789e-05/0.5183, allocations: 8 kB / 497.2 MB, free: 0.9023 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.549e-05/0.5184, allocations: 19.98 kB / 497.2 MB, free: 0.8828 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003675/0.5187, allocations: 172.4 kB / 497.4 MB, free: 0.7148 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005521/0.5193, allocations: 338.8 kB / 497.7 MB, free: 352 kB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.814e-05/0.5193, allocations: 3.938 kB / 497.7 MB, free: 348 kB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.235e-05/0.5194, allocations: 11.95 kB / 497.8 MB, free: 336 kB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.881e-05/0.5194, allocations: 8 kB / 497.8 MB, free: 328 kB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001843/0.5213, allocations: 1.377 MB / 499.1 MB, free: 14.88 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004899/0.5218, allocations: 332 kB / 499.5 MB, free: 14.52 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002347/0.522, allocations: 167.5 kB / 499.6 MB, free: 14.35 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.28e-05/0.522, allocations: 4 kB / 499.6 MB, free: 14.34 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005407/0.5226, allocations: 443.3 kB / 0.4883 GB, free: 13.85 MB / 378.7 MB Notification: Performance of pre-optimization done (n=42): time 1.863e-06/0.5226, allocations: 0 / 0.4883 GB, free: 13.85 MB / 378.7 MB Notification: Performance of matching and sorting (n=42): time 0.0009376/0.5235, allocations: 0.5235 MB / 0.4889 GB, free: 13.32 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002048/0.5238, allocations: 456.9 kB / 0.4893 GB, free: 12.77 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000986/0.5248, allocations: 0.8084 MB / 0.4901 GB, free: 11.95 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.733e-05/0.5248, allocations: 37.7 kB / 0.4901 GB, free: 11.91 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002351/0.525, allocations: 301.2 kB / 0.4904 GB, free: 11.61 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001058/0.5252, allocations: 106.7 kB / 0.4905 GB, free: 11.51 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.329e-05/0.5252, allocations: 4 kB / 0.4905 GB, free: 11.5 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001546/0.5254, allocations: 329.9 kB / 0.4908 GB, free: 11.18 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002128/0.5256, allocations: 141 kB / 0.491 GB, free: 11.04 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003935/0.526, allocations: 361.9 kB / 0.4913 GB, free: 10.61 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003155/0.5263, allocations: 177.5 kB / 0.4915 GB, free: 10.44 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.5263, allocations: 0 / 0.4915 GB, free: 10.44 MB / 378.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0008814/0.5272, allocations: 0.5589 MB / 0.492 GB, free: 9.871 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.554e-05/0.5273, allocations: 93.09 kB / 0.4921 GB, free: 9.762 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.289e-05/0.5273, allocations: 4 kB / 0.4921 GB, free: 9.758 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.329e-05/0.5274, allocations: 8.281 kB / 0.4921 GB, free: 9.75 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002697/0.5276, allocations: 67.84 kB / 0.4922 GB, free: 9.684 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.282e-05/0.5277, allocations: 11.98 kB / 0.4922 GB, free: 9.672 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000282/0.5279, allocations: 35.73 kB / 0.4922 GB, free: 9.637 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.355e-05/0.528, allocations: 27.94 kB / 0.4923 GB, free: 9.609 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.0002323/0.5283, allocations: 258 kB / 0.4925 GB, free: 9.336 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001183/0.5284, allocations: 87.03 kB / 0.4926 GB, free: 9.25 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006914/0.5291, allocations: 441.9 kB / 0.493 GB, free: 8.809 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.262e-06/0.5291, allocations: 4 kB / 0.493 GB, free: 8.805 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.94e-06/0.5291, allocations: 0 / 0.493 GB, free: 8.805 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.621e-06/0.5291, allocations: 0 / 0.493 GB, free: 8.805 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001133/0.5303, allocations: 0.9527 MB / 0.4939 GB, free: 7.809 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.559e-06/0.5303, allocations: 4 kB / 0.4939 GB, free: 7.805 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001255/0.5304, allocations: 35.92 kB / 0.494 GB, free: 7.77 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.577e-06/0.5304, allocations: 0 / 0.494 GB, free: 7.77 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.022e-05/0.5305, allocations: 19.98 kB / 0.494 GB, free: 7.75 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.5305, allocations: 0 / 0.494 GB, free: 7.75 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.99e-06/0.5305, allocations: 4 kB / 0.494 GB, free: 7.746 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009655/0.5314, allocations: 0.737 MB / 0.4947 GB, free: 6.961 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001865/0.5316, allocations: 188.1 kB / 0.4949 GB, free: 6.758 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001201/0.5318, allocations: 23.94 kB / 0.4949 GB, free: 6.734 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000252/0.532, allocations: 27.98 kB / 0.495 GB, free: 6.707 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001068/0.5322, allocations: 43.94 kB / 0.495 GB, free: 6.664 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.71e-05/0.5322, allocations: 23.98 kB / 0.495 GB, free: 6.641 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007224/0.5329, allocations: 0.6202 MB / 0.4956 GB, free: 6.023 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5329, allocations: 0 / 0.4956 GB, free: 6.023 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007035/0.5336, allocations: 176 kB / 0.4958 GB, free: 5.852 MB / 378.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.001008/0.5347, allocations: 442.1 kB / 0.4962 GB, free: 5.496 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007501/0.5354, allocations: 0.6034 MB / 0.4968 GB, free: 4.852 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.5354, allocations: 0.5625 kB / 0.4968 GB, free: 4.852 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003961/0.5358, allocations: 435.6 kB / 0.4972 GB, free: 4.391 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007549/0.5366, allocations: 149 kB / 0.4974 GB, free: 4.246 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001577/0.5382, allocations: 0.9659 MB / 0.4983 GB, free: 3.246 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004948/0.5387, allocations: 0.9507 MB / 0.4992 GB, free: 2.266 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002937/0.539, allocations: 121.1 kB / 0.4993 GB, free: 2.148 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001402/0.5392, allocations: 59.42 kB / 0.4994 GB, free: 2.09 MB / 378.7 MB Notification: Performance of SimCode: time 4.01e-07/0.5392, allocations: 0 / 0.4994 GB, free: 2.09 MB / 378.7 MB Notification: Performance of Templates: time 0.01447/0.5536, allocations: 8.491 MB / 0.5077 GB, free: 9.629 MB / 394.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