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.001262/0.001262, allocations: 103.5 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001161/0.001161, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.448/1.448, allocations: 227.4 MB / 246.3 MB, free: 10.84 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001603/0.001603, allocations: 59.31 kB / 306.2 MB, free: 1.082 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09646/0.09809, allocations: 50.54 MB / 356.8 MB, free: 14.55 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Interaction1): time 0.004579/0.1027, allocations: 2.619 MB / 359.4 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003561/0.1063, allocations: 1.952 MB / 361.4 MB, free: 9.949 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003956/0.1067, allocations: 7.938 kB / 361.4 MB, free: 9.941 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001252/0.108, allocations: 0.5061 MB / 361.9 MB, free: 9.438 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001013/0.109, allocations: 458.6 kB / 362.3 MB, free: 8.988 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001351/0.1104, allocations: 485.8 kB / 362.8 MB, free: 8.52 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001049/0.1115, allocations: 0.8065 MB / 363.6 MB, free: 7.711 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002801/0.1118, allocations: 106 kB / 363.7 MB, free: 7.609 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005732/0.1123, allocations: 290.7 kB / 364 MB, free: 7.324 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000502/0.1128, allocations: 346.5 kB / 364.3 MB, free: 6.984 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.672e-05/0.113, allocations: 20 kB / 364.3 MB, free: 6.965 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004169/0.1134, allocations: 187.7 kB / 364.5 MB, free: 6.781 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002331/0.1136, allocations: 187.4 kB / 364.7 MB, free: 6.598 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003595/0.114, allocations: 286 kB / 365 MB, free: 6.316 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000949/0.1149, allocations: 0.849 MB / 365.8 MB, free: 5.465 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.115, allocations: 0 / 365.8 MB, free: 5.465 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.62e-07/0.115, allocations: 0 / 365.8 MB, free: 5.465 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.049e-05/0.115, allocations: 0 / 365.8 MB, free: 5.465 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.001918/0.1169, allocations: 1.222 MB / 367.1 MB, free: 4.145 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.7e-05/0.117, allocations: 19.97 kB / 367.1 MB, free: 4.125 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001602/0.1171, allocations: 83.89 kB / 367.2 MB, free: 4.043 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008097/0.118, allocations: 0.5897 MB / 367.7 MB, free: 3.41 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.735e-05/0.118, allocations: 20.38 kB / 367.8 MB, free: 3.391 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.621e-05/0.118, allocations: 28.11 kB / 367.8 MB, free: 3.363 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006399/0.1187, allocations: 358.7 kB / 368.1 MB, free: 2.965 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.081e-05/0.1187, allocations: 0 / 368.1 MB, free: 2.965 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.539e-05/0.1188, allocations: 8 kB / 368.2 MB, free: 2.957 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.788e-05/0.1188, allocations: 8 kB / 368.2 MB, free: 2.949 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003958/0.1192, allocations: 175.8 kB / 368.3 MB, free: 2.777 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001719/0.1209, allocations: 1.356 MB / 369.7 MB, free: 1.348 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007387/0.1217, allocations: 354.8 kB / 370 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003407/0.122, allocations: 175.4 kB / 370.2 MB, free: 0.7812 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.307e-05/0.1221, allocations: 4 kB / 370.2 MB, free: 0.7773 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006594/0.1227, allocations: 459 kB / 370.7 MB, free: 280 kB / 302.1 MB Notification: Performance of pre-optimization done (n=42): time 2.164e-06/0.1228, allocations: 0 / 370.7 MB, free: 280 kB / 302.1 MB Notification: Performance of matching and sorting (n=42): time 0.1638/0.2866, allocations: 0.7434 MB / 371.4 MB, free: 20.6 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000134/0.2868, allocations: 461.4 kB / 371.9 MB, free: 20.07 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001283/0.2881, allocations: 0.971 MB / 372.8 MB, free: 19.94 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.782e-05/0.2881, allocations: 43.66 kB / 372.9 MB, free: 19.91 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002081/0.2883, allocations: 320.1 kB / 373.2 MB, free: 19.83 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.45e-05/0.2884, allocations: 109.7 kB / 373.3 MB, free: 19.79 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001411/0.2886, allocations: 97.31 kB / 373.4 MB, free: 19.74 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.297e-05/0.2886, allocations: 329.6 kB / 373.7 MB, free: 19.43 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003034/0.2889, allocations: 151.4 kB / 373.8 MB, free: 19.38 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004291/0.2894, allocations: 354.4 kB / 374.2 MB, free: 19.11 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008433/0.2902, allocations: 0.5792 MB / 374.8 MB, free: 18.68 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.152e-06/0.2903, allocations: 0.9062 kB / 374.8 MB, free: 18.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001329/0.2916, allocations: 0.6704 MB / 375.4 MB, free: 18.37 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.473e-05/0.2917, allocations: 98.45 kB / 375.5 MB, free: 18.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.346e-05/0.2917, allocations: 4.125 kB / 375.5 MB, free: 18.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.733e-05/0.2917, allocations: 6.109 kB / 375.6 MB, free: 18.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002923/0.292, allocations: 66.73 kB / 375.6 MB, free: 18.26 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.056e-05/0.2921, allocations: 7 kB / 375.6 MB, free: 18.26 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003277/0.2924, allocations: 50.45 kB / 375.7 MB, free: 18.24 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.536e-05/0.2925, allocations: 27.77 kB / 375.7 MB, free: 18.23 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.0004668/0.2929, allocations: 397.8 kB / 376.1 MB, free: 17.96 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001309/0.2931, allocations: 81.36 kB / 376.2 MB, free: 17.92 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001449/0.2932, allocations: 86.64 kB / 376.3 MB, free: 17.88 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.444e-06/0.2932, allocations: 4.5 kB / 376.3 MB, free: 17.88 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.432e-05/0.2933, allocations: 1.188 kB / 376.3 MB, free: 17.88 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.644e-06/0.2933, allocations: 13.56 kB / 376.3 MB, free: 17.88 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001161/0.2944, allocations: 0.9816 MB / 377.3 MB, free: 17.3 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.2945, allocations: 2.312 kB / 377.3 MB, free: 17.3 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.337e-05/0.2945, allocations: 25.11 kB / 377.3 MB, free: 17.29 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/0.2946, allocations: 1.594 kB / 377.3 MB, free: 17.29 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.578e-05/0.2946, allocations: 17.14 kB / 377.3 MB, free: 17.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.426e-06/0.2946, allocations: 2.188 kB / 377.3 MB, free: 17.29 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.2946, allocations: 1.25 kB / 377.3 MB, free: 17.29 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009949/0.2956, allocations: 0.7706 MB / 378.1 MB, free: 16.86 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000129/0.2958, allocations: 155.7 kB / 378.2 MB, free: 16.72 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00013/0.2959, allocations: 27.97 kB / 378.3 MB, free: 16.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002528/0.2962, allocations: 23.95 kB / 378.3 MB, free: 16.71 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001585/0.2963, allocations: 39.25 kB / 378.3 MB, free: 16.7 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.2e-05/0.2964, allocations: 22.98 kB / 378.3 MB, free: 16.69 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0009619/0.2974, allocations: 0.6996 MB / 379 MB, free: 16.41 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2974, allocations: 0 / 379 MB, free: 16.41 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000747/0.2981, allocations: 151.6 kB / 379.2 MB, free: 16.4 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.001065/0.2992, allocations: 0.4924 MB / 379.7 MB, free: 16.21 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008671/0.3001, allocations: 0.6213 MB / 380.3 MB, free: 15.87 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.449e-06/0.3001, allocations: 1.469 kB / 380.3 MB, free: 15.87 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004554/0.3005, allocations: 436.6 kB / 380.7 MB, free: 15.58 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008343/0.3014, allocations: 165.6 kB / 380.9 MB, free: 15.52 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001859/0.3033, allocations: 1.379 MB / 382.3 MB, free: 14.75 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004119/0.3037, allocations: 0.9419 MB / 383.2 MB, free: 14.02 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000328/0.304, allocations: 115 kB / 383.3 MB, free: 13.99 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000129/0.3042, allocations: 52.83 kB / 383.4 MB, free: 13.98 MB / 302.1 MB Notification: Performance of SimCode: time 6.51e-07/0.3042, allocations: 0 / 383.4 MB, free: 13.98 MB / 302.1 MB Notification: Performance of Templates: time 0.01763/0.3218, allocations: 8.974 MB / 392.3 MB, free: 10.95 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