Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.Interaction1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_Modelica.Blocks.Examples.Interaction1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000791/0.0007912, allocations: 94.11 kB / 17 MB, free: 6.129 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009594/0.0009597, allocations: 195.9 kB / 17.91 MB, free: 5.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.406/1.406, allocations: 227.7 MB / 246.4 MB, free: 11.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001988/0.0001988, allocations: 8 kB / 307.1 MB, free: 1.172 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09477/0.09498, allocations: 51.52 MB / 358.6 MB, free: 13.65 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Interaction1): time 0.00296/0.09799, allocations: 2.153 MB / 360.8 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002794/0.1008, allocations: 1.812 MB / 362.6 MB, free: 9.664 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001969/0.101, allocations: 15.88 kB / 362.6 MB, free: 9.648 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001156/0.1022, allocations: 494.3 kB / 363.1 MB, free: 9.168 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008093/0.103, allocations: 402.7 kB / 363.5 MB, free: 8.773 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001225/0.1042, allocations: 441.8 kB / 363.9 MB, free: 8.348 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000948/0.1052, allocations: 0.7245 MB / 364.6 MB, free: 7.621 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002342/0.1054, allocations: 93.72 kB / 364.7 MB, free: 7.531 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003769/0.1058, allocations: 282.8 kB / 365 MB, free: 7.254 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004005/0.1062, allocations: 318.7 kB / 365.3 MB, free: 6.941 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.065e-05/0.1063, allocations: 12 kB / 365.3 MB, free: 6.93 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003943/0.1067, allocations: 171.8 kB / 365.5 MB, free: 6.762 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002066/0.1069, allocations: 187.4 kB / 365.7 MB, free: 6.578 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000146/0.1071, allocations: 133.3 kB / 365.8 MB, free: 6.441 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006866/0.1078, allocations: 0.6511 MB / 366.5 MB, free: 5.789 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.522e-06/0.1078, allocations: 0 / 366.5 MB, free: 5.789 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.374e-06/0.1078, allocations: 0 / 366.5 MB, free: 5.789 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.118e-05/0.1078, allocations: 4 kB / 366.5 MB, free: 5.785 MB / 302.1 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.001568/0.1094, allocations: 1.109 MB / 367.6 MB, free: 4.578 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.896e-05/0.1094, allocations: 12.03 kB / 367.6 MB, free: 4.566 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001378/0.1096, allocations: 82.97 kB / 367.7 MB, free: 4.484 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000794/0.1104, allocations: 0.5579 MB / 368.2 MB, free: 3.883 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.833e-05/0.1104, allocations: 31.91 kB / 368.2 MB, free: 3.852 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.945e-05/0.1105, allocations: 20 kB / 368.3 MB, free: 3.832 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005917/0.1111, allocations: 350.8 kB / 368.6 MB, free: 3.441 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.361e-05/0.1111, allocations: 3.984 kB / 368.6 MB, free: 3.438 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.6e-05/0.1111, allocations: 15.98 kB / 368.6 MB, free: 3.422 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.608e-05/0.1112, allocations: 8 kB / 368.6 MB, free: 3.414 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003582/0.1115, allocations: 175.7 kB / 368.8 MB, free: 3.242 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001475/0.113, allocations: 1.352 MB / 370.2 MB, free: 1.816 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006655/0.1137, allocations: 354.8 kB / 370.5 MB, free: 1.434 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002843/0.114, allocations: 175.4 kB / 370.7 MB, free: 1.25 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.89e-05/0.114, allocations: 4.172 kB / 370.7 MB, free: 1.246 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006188/0.1147, allocations: 471 kB / 371.1 MB, free: 0.7305 MB / 302.1 MB Notification: Performance of pre-optimization done (n=42): time 1.533e-06/0.1147, allocations: 0 / 371.1 MB, free: 0.7305 MB / 302.1 MB Notification: Performance of matching and sorting (n=42): time 0.1798/0.2945, allocations: 0.7298 MB / 371.9 MB, free: 19.34 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001281/0.2946, allocations: 459.1 kB / 372.3 MB, free: 18.81 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001393/0.296, allocations: 0.9711 MB / 373.3 MB, free: 18.68 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.404e-05/0.2961, allocations: 42.88 kB / 373.3 MB, free: 18.65 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000221/0.2964, allocations: 313.2 kB / 373.6 MB, free: 18.57 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001102/0.2965, allocations: 108.7 kB / 373.7 MB, free: 18.56 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.878e-05/0.2965, allocations: 11.5 kB / 373.8 MB, free: 18.56 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.323e-05/0.2966, allocations: 325.4 kB / 374.1 MB, free: 18.25 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003444/0.2969, allocations: 149.8 kB / 374.2 MB, free: 18.25 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004407/0.2974, allocations: 353.9 kB / 374.6 MB, free: 18.05 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003813/0.2978, allocations: 257.2 kB / 374.8 MB, free: 17.96 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/0.2978, allocations: 4.938 kB / 374.8 MB, free: 17.96 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001098/0.2989, allocations: 0.6619 MB / 375.5 MB, free: 17.78 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.655e-05/0.299, allocations: 100.1 kB / 375.6 MB, free: 17.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.404e-05/0.299, allocations: 3.75 kB / 375.6 MB, free: 17.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.218e-05/0.299, allocations: 11.55 kB / 375.6 MB, free: 17.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002666/0.2993, allocations: 66.05 kB / 375.7 MB, free: 17.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.196e-05/0.2993, allocations: 7.359 kB / 375.7 MB, free: 17.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002801/0.2996, allocations: 54.97 kB / 375.7 MB, free: 17.67 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.2e-05/0.2996, allocations: 24.31 kB / 375.7 MB, free: 17.67 MB / 302.1 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.0003857/0.3, allocations: 402.2 kB / 376.1 MB, free: 17.45 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001012/0.3001, allocations: 86.11 kB / 376.2 MB, free: 17.41 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001435/0.3003, allocations: 79.38 kB / 376.3 MB, free: 17.4 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/0.3003, allocations: 4.125 kB / 376.3 MB, free: 17.4 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.316e-06/0.3003, allocations: 2.359 kB / 376.3 MB, free: 17.4 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.304e-06/0.3003, allocations: 5.766 kB / 376.3 MB, free: 17.4 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001128/0.3015, allocations: 0.9758 MB / 377.3 MB, free: 16.82 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.878e-06/0.3015, allocations: 5.609 kB / 377.3 MB, free: 16.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.61e-05/0.3016, allocations: 25.34 kB / 377.3 MB, free: 16.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.228e-06/0.3016, allocations: 6.219 kB / 377.3 MB, free: 16.82 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.689e-05/0.3016, allocations: 20.47 kB / 377.3 MB, free: 16.81 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.975e-06/0.3017, allocations: 2.75 kB / 377.3 MB, free: 16.81 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.3017, allocations: 5.312 kB / 377.4 MB, free: 16.8 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009937/0.3027, allocations: 0.7676 MB / 378.1 MB, free: 16.38 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001235/0.3028, allocations: 173.8 kB / 378.3 MB, free: 16.23 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001107/0.3029, allocations: 23.59 kB / 378.3 MB, free: 16.22 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000235/0.3032, allocations: 27.7 kB / 378.3 MB, free: 16.21 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001052/0.3033, allocations: 34.75 kB / 378.4 MB, free: 16.21 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.511e-05/0.3033, allocations: 28.77 kB / 378.4 MB, free: 16.2 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0008056/0.3041, allocations: 0.6979 MB / 379.1 MB, free: 15.91 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.132e-06/0.3041, allocations: 0 / 379.1 MB, free: 15.91 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005769/0.3047, allocations: 160.1 kB / 379.3 MB, free: 15.9 MB / 302.1 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.001051/0.3058, allocations: 494.6 kB / 379.7 MB, free: 15.71 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008466/0.3066, allocations: 0.617 MB / 380.4 MB, free: 15.35 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.3067, allocations: 1.062 kB / 380.4 MB, free: 15.35 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004679/0.3071, allocations: 438.3 kB / 380.8 MB, free: 15.06 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007853/0.3079, allocations: 168 kB / 381 MB, free: 15.01 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00194/0.3099, allocations: 1.306 MB / 382.3 MB, free: 14.3 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005688/0.3105, allocations: 0.9489 MB / 383.2 MB, free: 13.56 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003785/0.3108, allocations: 115 kB / 383.3 MB, free: 13.54 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001487/0.311, allocations: 57.08 kB / 383.4 MB, free: 13.52 MB / 302.1 MB Notification: Performance of SimCode: time 5.41e-07/0.311, allocations: 0 / 383.4 MB, free: 13.52 MB / 302.1 MB Notification: Performance of Templates: time 0.0177/0.3287, allocations: 8.623 MB / 392 MB, free: 10.69 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.Interaction1.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.Interaction1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.Interaction1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.Interaction1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.Interaction1.sim & ./Modelica_trunk_Modelica.Blocks.Examples.Interaction1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.Interaction1.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.Interaction1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches