Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Blocks.Examples.Interaction1.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_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_trunk_cpp_Modelica.Blocks.Examples.Interaction1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009572/0.0009571, allocations: 197.8 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.324/1.324, allocations: 226.6 MB / 244.3 MB, free: 8.207 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007804/0.0007807, allocations: 96.72 kB / 296.4 MB, free: 6.984 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002433/0.0002431, allocations: 8 kB / 356.2 MB, free: 11.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2599/0.2602, allocations: 51.29 MB / 407.5 MB, free: 27.81 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Interaction1): time 0.002346/0.2626, allocations: 2.16 MB / 409.6 MB, free: 25.64 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002304/0.2649, allocations: 1.866 MB / 411.5 MB, free: 23.77 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001886/0.2651, allocations: 10.12 kB / 411.5 MB, free: 23.77 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009363/0.266, allocations: 486.1 kB / 412 MB, free: 23.29 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006367/0.2667, allocations: 418.1 kB / 412.4 MB, free: 22.89 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001247/0.2679, allocations: 0.5475 MB / 413 MB, free: 22.36 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005557/0.2685, allocations: 0.7168 MB / 413.7 MB, free: 21.64 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001794/0.2687, allocations: 97.66 kB / 413.8 MB, free: 21.54 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002432/0.269, allocations: 278.8 kB / 414 MB, free: 21.27 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002538/0.2692, allocations: 326.7 kB / 414.4 MB, free: 20.95 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.796e-05/0.2693, allocations: 12 kB / 414.4 MB, free: 20.94 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000273/0.2695, allocations: 171.7 kB / 414.5 MB, free: 20.77 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001398/0.2697, allocations: 179.4 kB / 414.7 MB, free: 20.59 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.648e-05/0.2698, allocations: 141.3 kB / 414.8 MB, free: 20.45 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004566/0.2703, allocations: 0.6557 MB / 415.5 MB, free: 19.79 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.2703, allocations: 0 / 415.5 MB, free: 19.79 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2703, allocations: 0 / 415.5 MB, free: 19.79 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.157e-06/0.2703, allocations: 0 / 415.5 MB, free: 19.79 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.001219/0.2715, allocations: 1.102 MB / 416.6 MB, free: 18.59 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.091e-05/0.2716, allocations: 8.031 kB / 416.6 MB, free: 18.59 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.931e-05/0.2717, allocations: 79.06 kB / 416.7 MB, free: 18.51 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006005/0.2723, allocations: 0.5657 MB / 417.3 MB, free: 17.9 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.891e-05/0.2723, allocations: 19.95 kB / 417.3 MB, free: 17.88 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.882e-05/0.2724, allocations: 23.95 kB / 417.3 MB, free: 17.86 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004682/0.2728, allocations: 358.7 kB / 417.7 MB, free: 17.46 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/0.2729, allocations: 0 / 417.7 MB, free: 17.46 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.409e-05/0.2729, allocations: 15.98 kB / 417.7 MB, free: 17.44 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.315e-05/0.2729, allocations: 15.94 kB / 417.7 MB, free: 17.43 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000317/0.2732, allocations: 175.8 kB / 417.9 MB, free: 17.25 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001096/0.2743, allocations: 1.352 MB / 419.2 MB, free: 15.83 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005756/0.2749, allocations: 350.8 kB / 419.5 MB, free: 15.45 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002423/0.2752, allocations: 175.5 kB / 419.7 MB, free: 15.27 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.218e-05/0.2752, allocations: 16.02 kB / 419.7 MB, free: 15.25 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004547/0.2757, allocations: 455.3 kB / 420.2 MB, free: 14.75 MB / 298.7 MB Notification: Performance of pre-optimization done (n=42): time 1.883e-06/0.2757, allocations: 0 / 420.2 MB, free: 14.75 MB / 298.7 MB Notification: Performance of matching and sorting (n=42): time 0.001045/0.2768, allocations: 0.7492 MB / 420.9 MB, free: 13.98 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.965e-05/0.2769, allocations: 456.9 kB / 421.4 MB, free: 13.43 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008475/0.2777, allocations: 0.9732 MB / 422.3 MB, free: 12.45 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.639e-05/0.2778, allocations: 41.7 kB / 422.4 MB, free: 12.4 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001788/0.278, allocations: 316.8 kB / 422.7 MB, free: 12.09 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.24e-05/0.278, allocations: 102.6 kB / 422.8 MB, free: 11.98 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.894e-05/0.278, allocations: 12 kB / 422.8 MB, free: 11.97 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.197e-05/0.2781, allocations: 330 kB / 423.1 MB, free: 11.64 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002472/0.2784, allocations: 148.9 kB / 423.3 MB, free: 11.5 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003187/0.2787, allocations: 354.4 kB / 423.6 MB, free: 11.08 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002975/0.279, allocations: 259.8 kB / 423.9 MB, free: 10.81 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.826e-06/0.279, allocations: 0 / 423.9 MB, free: 10.81 MB / 298.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007908/0.2798, allocations: 0.6691 MB / 424.5 MB, free: 10.11 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.584e-05/0.2799, allocations: 97.09 kB / 424.6 MB, free: 10 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-06/0.2799, allocations: 0 / 424.6 MB, free: 10 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.574e-05/0.2799, allocations: 8.281 kB / 424.7 MB, free: 9.992 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002302/0.2801, allocations: 68.52 kB / 424.7 MB, free: 9.926 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.103e-05/0.2801, allocations: 7.938 kB / 424.7 MB, free: 9.918 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002494/0.2804, allocations: 55.95 kB / 424.8 MB, free: 9.863 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.118e-05/0.2804, allocations: 24 kB / 424.8 MB, free: 9.84 MB / 298.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 () * 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.0003006/0.2807, allocations: 398.6 kB / 425.2 MB, free: 9.43 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.321e-05/0.2808, allocations: 91 kB / 425.3 MB, free: 9.34 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001018/0.2809, allocations: 78.59 kB / 425.4 MB, free: 9.258 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.03e-06/0.281, allocations: 7.984 kB / 425.4 MB, free: 9.25 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.094e-06/0.281, allocations: 4 kB / 425.4 MB, free: 9.246 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.099e-06/0.281, allocations: 0 / 425.4 MB, free: 9.246 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008576/0.2818, allocations: 0.9737 MB / 426.3 MB, free: 8.203 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.2819, allocations: 3.953 kB / 426.3 MB, free: 8.199 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.912e-05/0.2819, allocations: 28.11 kB / 426.4 MB, free: 8.172 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.282, allocations: 4 kB / 426.4 MB, free: 8.168 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.276e-05/0.282, allocations: 23.98 kB / 426.4 MB, free: 8.145 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.282, allocations: 0 / 426.4 MB, free: 8.145 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.282, allocations: 3.984 kB / 426.4 MB, free: 8.141 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008252/0.2828, allocations: 0.7787 MB / 427.2 MB, free: 7.316 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001125/0.283, allocations: 176 kB / 427.4 MB, free: 7.125 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.158e-05/0.2831, allocations: 24 kB / 427.4 MB, free: 7.102 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002307/0.2833, allocations: 31.97 kB / 427.4 MB, free: 7.07 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.338e-05/0.2834, allocations: 35.95 kB / 427.4 MB, free: 7.035 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.473e-05/0.2834, allocations: 23.92 kB / 427.5 MB, free: 7.012 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0005974/0.284, allocations: 0.6943 MB / 428.2 MB, free: 6.312 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.284, allocations: 4 kB / 428.2 MB, free: 6.309 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004657/0.2845, allocations: 155.8 kB / 428.3 MB, free: 6.156 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.0009018/0.2854, allocations: 488.1 kB / 428.8 MB, free: 5.812 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006873/0.2861, allocations: 0.6073 MB / 429.4 MB, free: 5.168 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.2861, allocations: 4 kB / 429.4 MB, free: 5.164 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003631/0.2865, allocations: 432.9 kB / 429.8 MB, free: 4.707 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007393/0.2873, allocations: 161.9 kB / 430 MB, free: 4.555 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00152/0.2888, allocations: 1.378 MB / 431.4 MB, free: 3.133 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003174/0.2891, allocations: 0.9448 MB / 432.3 MB, free: 2.16 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001138/0.2892, allocations: 59.42 kB / 432.4 MB, free: 2.102 MB / 298.7 MB Notification: Performance of SimCode: time 5.11e-07/0.2892, allocations: 0 / 432.4 MB, free: 2.102 MB / 298.7 MB Notification: Performance of Templates: time 0.01234/0.3016, allocations: 9.934 MB / 442.3 MB, free: 8.188 MB / 314.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Blocks.Examples.Interaction1.makefile (rm -f Modelica_trunk_cpp_Modelica.Blocks.Examples.Interaction1.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Blocks.Examples.Interaction1.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Blocks.Examples.Interaction1.pipe >> ../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.Interaction1.sim & ./Modelica_trunk_cpp_Modelica.Blocks.Examples.Interaction1 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Blocks.Examples.Interaction1.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_trunk_cpp_Modelica.Blocks.Examples.Interaction1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches