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.001783/0.001783, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001947/0.001947, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.492/1.492, allocations: 227.4 MB / 247.5 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001177/0.001177, allocations: 59.94 kB / 308.4 MB, free: 15.91 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1046, allocations: 50.53 MB / 358.9 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Interaction1): time 0.00388/0.1086, allocations: 2.578 MB / 361.5 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002878/0.1115, allocations: 1.933 MB / 363.4 MB, free: 8.828 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001787/0.1117, allocations: 11.88 kB / 363.4 MB, free: 8.816 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001085/0.1127, allocations: 0.5446 MB / 364 MB, free: 8.273 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000794/0.1136, allocations: 486.3 kB / 364.4 MB, free: 7.797 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001174/0.1147, allocations: 0.549 MB / 365 MB, free: 7.254 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007593/0.1155, allocations: 0.8261 MB / 365.8 MB, free: 6.426 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001913/0.1157, allocations: 106 kB / 365.9 MB, free: 6.324 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003182/0.116, allocations: 342.7 kB / 366.2 MB, free: 5.988 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003722/0.1164, allocations: 362.6 kB / 366.6 MB, free: 5.633 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.338e-05/0.1165, allocations: 40 kB / 366.6 MB, free: 5.594 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003399/0.1168, allocations: 231.7 kB / 366.9 MB, free: 5.367 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002115/0.1171, allocations: 211.4 kB / 367.1 MB, free: 5.16 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002642/0.1173, allocations: 326 kB / 367.4 MB, free: 4.84 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007842/0.1181, allocations: 0.8721 MB / 368.3 MB, free: 3.965 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.935e-06/0.1181, allocations: 0 / 368.3 MB, free: 3.965 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.1181, allocations: 4 kB / 368.3 MB, free: 3.961 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.475e-06/0.1182, allocations: 0 / 368.3 MB, free: 3.961 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.001564/0.1197, allocations: 1.222 MB / 369.5 MB, free: 2.641 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.105e-05/0.1198, allocations: 8.031 kB / 369.5 MB, free: 2.633 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001319/0.1199, allocations: 87.91 kB / 369.6 MB, free: 2.547 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008077/0.1207, allocations: 0.6091 MB / 370.2 MB, free: 1.895 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.686e-05/0.1208, allocations: 16.38 kB / 370.2 MB, free: 1.879 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.116e-05/0.1208, allocations: 28.12 kB / 370.2 MB, free: 1.852 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005624/0.1214, allocations: 350.7 kB / 370.6 MB, free: 1.461 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.132e-05/0.1214, allocations: 0 / 370.6 MB, free: 1.461 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.333e-05/0.1214, allocations: 23.91 kB / 370.6 MB, free: 1.438 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.092e-05/0.1215, allocations: 7.984 kB / 370.6 MB, free: 1.43 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003629/0.1218, allocations: 175.8 kB / 370.8 MB, free: 1.258 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.164/0.2859, allocations: 1.342 MB / 372.1 MB, free: 19.68 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007324/0.2866, allocations: 355.8 kB / 372.5 MB, free: 19.58 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002921/0.2869, allocations: 171.6 kB / 372.6 MB, free: 19.55 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.14e-05/0.287, allocations: 9.719 kB / 372.6 MB, free: 19.55 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005501/0.2875, allocations: 458.7 kB / 373.1 MB, free: 19.31 MB / 302.1 MB Notification: Performance of pre-optimization done (n=42): time 2.124e-06/0.2875, allocations: 0.5312 kB / 373.1 MB, free: 19.31 MB / 302.1 MB Notification: Performance of matching and sorting (n=42): time 0.001411/0.289, allocations: 0.7471 MB / 373.8 MB, free: 19.18 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000105/0.2891, allocations: 459 kB / 374.3 MB, free: 18.65 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00123/0.2903, allocations: 0.972 MB / 375.3 MB, free: 18.45 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.092e-05/0.2904, allocations: 45.78 kB / 375.3 MB, free: 18.41 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000206/0.2906, allocations: 313.8 kB / 375.6 MB, free: 18.17 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.752e-05/0.2907, allocations: 111.6 kB / 375.7 MB, free: 18.12 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001302/0.2908, allocations: 96.16 kB / 375.8 MB, free: 18.08 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.086e-05/0.2909, allocations: 328.2 kB / 376.1 MB, free: 17.77 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002727/0.2911, allocations: 155.9 kB / 376.3 MB, free: 17.71 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003656/0.2915, allocations: 354.7 kB / 376.6 MB, free: 17.45 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005948/0.2921, allocations: 0.5757 MB / 377.2 MB, free: 17.01 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.878e-06/0.2921, allocations: 1.375 kB / 377.2 MB, free: 17.01 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0009258/0.2931, allocations: 0.6719 MB / 377.9 MB, free: 16.69 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.725e-05/0.2931, allocations: 97.95 kB / 378 MB, free: 16.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.667e-06/0.2932, allocations: 3.938 kB / 378 MB, free: 16.59 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.139e-05/0.2932, allocations: 6.672 kB / 378 MB, free: 16.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002584/0.2934, allocations: 67.09 kB / 378 MB, free: 16.58 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.351e-05/0.2935, allocations: 9.438 kB / 378.1 MB, free: 16.58 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002788/0.2937, allocations: 49.2 kB / 378.1 MB, free: 16.57 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.069e-05/0.2938, allocations: 22.72 kB / 378.1 MB, free: 16.57 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],$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.000363/0.2942, allocations: 404.8 kB / 378.5 MB, free: 16.28 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001111/0.2943, allocations: 84.05 kB / 378.6 MB, free: 16.24 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001334/0.2944, allocations: 79.86 kB / 378.7 MB, free: 16.21 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.891e-06/0.2944, allocations: 5.406 kB / 378.7 MB, free: 16.21 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.337e-06/0.2945, allocations: 2.125 kB / 378.7 MB, free: 16.21 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.945e-06/0.2945, allocations: 2.828 kB / 378.7 MB, free: 16.21 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001492/0.296, allocations: 0.9795 MB / 379.7 MB, free: 15.63 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.296, allocations: 3.938 kB / 379.7 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.833e-05/0.2961, allocations: 22.92 kB / 379.7 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.991e-06/0.2961, allocations: 3.234 kB / 379.7 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.335e-05/0.2961, allocations: 18.97 kB / 379.7 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.2962, allocations: 1.375 kB / 379.7 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.359e-06/0.2962, allocations: 2.375 kB / 379.7 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00121/0.2974, allocations: 0.7902 MB / 380.5 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001417/0.2975, allocations: 156.2 kB / 380.7 MB, free: 15.04 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001017/0.2976, allocations: 22.55 kB / 380.7 MB, free: 15.03 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002237/0.2979, allocations: 27.08 kB / 380.7 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.93e-05/0.298, allocations: 32.83 kB / 380.7 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.608e-05/0.298, allocations: 22.77 kB / 380.8 MB, free: 15.01 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0008541/0.2989, allocations: 0.6997 MB / 381.5 MB, free: 14.73 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.2989, allocations: 0 / 381.5 MB, free: 14.73 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005628/0.2995, allocations: 150.9 kB / 381.6 MB, free: 14.72 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 (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.001148/0.3006, allocations: 0.4948 MB / 382.1 MB, free: 14.53 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000996/0.3016, allocations: 0.6082 MB / 382.7 MB, free: 14.19 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.075e-06/0.3016, allocations: 0.9375 kB / 382.7 MB, free: 14.19 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006304/0.3023, allocations: 443.5 kB / 383.2 MB, free: 13.9 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008962/0.3032, allocations: 187.1 kB / 383.3 MB, free: 13.84 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001924/0.3051, allocations: 1.204 MB / 384.5 MB, free: 13.24 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004756/0.3056, allocations: 0.9483 MB / 385.5 MB, free: 12.51 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002787/0.3059, allocations: 111.9 kB / 385.6 MB, free: 12.48 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00013/0.306, allocations: 59.59 kB / 385.7 MB, free: 12.47 MB / 302.1 MB Notification: Performance of SimCode: time 5.21e-07/0.306, allocations: 0 / 385.7 MB, free: 12.47 MB / 302.1 MB Notification: Performance of Templates: time 0.0169/0.323, allocations: 9.428 MB / 395.1 MB, free: 9.039 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/Interaction1/Interaction1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.Interaction1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches