Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.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.Clocked.Examples.Elementary.BooleanSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001952/0.001965, allocations: 113.7 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.003155/0.003155, allocations: 202.8 kB / 19.4 MB, free: 3.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.792/2.792, allocations: 227.4 MB / 247.6 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002768/0.002768, allocations: 59.91 kB / 359.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6444/0.6472, allocations: 50.55 MB / 409.9 MB, free: 1.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample): time 0.008174/0.6555, allocations: 1.933 MB / 411.9 MB, free: 15.81 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004673/0.6602, allocations: 1.223 MB / 413.1 MB, free: 14.58 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003777/0.6607, allocations: 7.938 kB / 413.1 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001317/0.6621, allocations: 147.5 kB / 413.2 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009337/0.6631, allocations: 159.3 kB / 413.4 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001266/0.6644, allocations: 171 kB / 413.6 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006602/0.6651, allocations: 207.4 kB / 413.8 MB, free: 13.9 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00025/0.6653, allocations: 33.66 kB / 413.8 MB, free: 13.87 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003122/0.6657, allocations: 75.7 kB / 413.9 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002903/0.666, allocations: 87.55 kB / 413.9 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.574e-05/0.666, allocations: 12 kB / 414 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003495/0.6664, allocations: 51.97 kB / 414 MB, free: 13.65 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000158/0.6666, allocations: 43.83 kB / 414.1 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002144/0.6668, allocations: 79.48 kB / 414.1 MB, free: 13.53 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008988/0.6677, allocations: 227 kB / 414.4 MB, free: 13.31 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.534e-05/0.6678, allocations: 4 kB / 414.4 MB, free: 13.3 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.116e-06/0.6678, allocations: 0 / 414.4 MB, free: 13.3 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.967e-05/0.6678, allocations: 0 / 414.4 MB, free: 13.3 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.001955/0.6698, allocations: 0.517 MB / 414.9 MB, free: 12.73 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.412e-05/0.6699, allocations: 12.02 kB / 414.9 MB, free: 12.72 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001661/0.6701, allocations: 24.66 kB / 414.9 MB, free: 12.7 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007846/0.6709, allocations: 282.7 kB / 415.2 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.825e-05/0.6709, allocations: 8.375 kB / 415.2 MB, free: 12.38 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.019e-05/0.671, allocations: 20 kB / 415.2 MB, free: 12.36 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007226/0.6717, allocations: 175.5 kB / 415.4 MB, free: 12.16 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.027e-05/0.6718, allocations: 3.984 kB / 415.4 MB, free: 12.16 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.018e-05/0.6718, allocations: 4 kB / 415.4 MB, free: 12.15 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.249e-05/0.6719, allocations: 0 / 415.4 MB, free: 12.15 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002101/0.6721, allocations: 39.92 kB / 415.4 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001011/0.6731, allocations: 375.2 kB / 415.8 MB, free: 11.69 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004416/0.6736, allocations: 126.5 kB / 415.9 MB, free: 11.53 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001827/0.6738, allocations: 63.36 kB / 416 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.268e-05/0.6739, allocations: 12.05 kB / 416 MB, free: 11.44 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003009/0.6742, allocations: 67.39 kB / 416.1 MB, free: 11.36 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 4.329e-06/0.6742, allocations: 4 kB / 416.1 MB, free: 11.36 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0007107/0.6749, allocations: 157.3 kB / 416.2 MB, free: 11.2 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000199/0.6751, allocations: 162.1 kB / 416.4 MB, free: 11 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005516/0.6757, allocations: 286.5 kB / 416.7 MB, free: 10.71 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.752e-05/0.6758, allocations: 34.08 kB / 416.7 MB, free: 10.67 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001621/0.6759, allocations: 124.4 kB / 416.8 MB, free: 10.54 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.455e-05/0.676, allocations: 15.81 kB / 416.8 MB, free: 10.53 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001078/0.6761, allocations: 29.7 kB / 416.9 MB, free: 10.49 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002226/0.6763, allocations: 334.8 kB / 417.2 MB, free: 10.16 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001075/0.6765, allocations: 23.98 kB / 417.2 MB, free: 10.13 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001763/0.6766, allocations: 83.72 kB / 417.3 MB, free: 10.02 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002279/0.6769, allocations: 97.91 kB / 417.4 MB, free: 9.906 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.6769, allocations: 0 / 417.4 MB, free: 9.906 MB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003837/0.6773, allocations: 125.3 kB / 417.5 MB, free: 9.777 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.296e-05/0.6773, allocations: 14.95 kB / 417.5 MB, free: 9.766 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.243e-05/0.6774, allocations: 0 / 417.5 MB, free: 9.766 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.653e-05/0.6774, allocations: 4 kB / 417.5 MB, free: 9.762 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001424/0.6776, allocations: 12.25 kB / 417.5 MB, free: 9.75 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.583e-05/0.6776, allocations: 4.188 kB / 417.5 MB, free: 9.746 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001466/0.6778, allocations: 23.92 kB / 417.6 MB, free: 9.723 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.057e-05/0.6778, allocations: 7.984 kB / 417.6 MB, free: 9.715 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,sample1.u,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * 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.0002401/0.678, allocations: 149.7 kB / 417.7 MB, free: 9.559 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001922/0.6782, allocations: 77.34 kB / 417.8 MB, free: 9.477 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001052/0.6784, allocations: 25.66 kB / 417.8 MB, free: 9.445 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.672e-05/0.6784, allocations: 11.92 kB / 417.8 MB, free: 9.434 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.015e-05/0.6784, allocations: 4.094 kB / 417.8 MB, free: 9.43 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.291e-05/0.6784, allocations: 7.938 kB / 417.8 MB, free: 9.422 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004028/0.6788, allocations: 225.6 kB / 418.1 MB, free: 9.152 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.6789, allocations: 4 kB / 418.1 MB, free: 9.148 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.102e-05/0.6789, allocations: 4 kB / 418.1 MB, free: 9.145 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.591e-06/0.6789, allocations: 3.938 kB / 418.1 MB, free: 9.141 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.084e-05/0.679, allocations: 4 kB / 418.1 MB, free: 9.137 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.679, allocations: 0 / 418.1 MB, free: 9.137 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.743e-06/0.679, allocations: 4 kB / 418.1 MB, free: 9.133 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004347/0.6794, allocations: 179.3 kB / 418.3 MB, free: 8.93 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001664/0.6796, allocations: 104.9 kB / 418.4 MB, free: 8.809 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.86e-05/0.6797, allocations: 8 kB / 418.4 MB, free: 8.801 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.836e-05/0.6798, allocations: 4 kB / 418.4 MB, free: 8.797 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.728e-05/0.6799, allocations: 7.984 kB / 418.4 MB, free: 8.789 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.231e-05/0.6799, allocations: 11.94 kB / 418.4 MB, free: 8.777 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003386/0.6803, allocations: 210 kB / 418.6 MB, free: 8.574 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6803, allocations: 3.938 kB / 418.6 MB, free: 8.57 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004758/0.6807, allocations: 32 kB / 418.6 MB, free: 8.539 MB / 334.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: 9 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.00168/0.6824, allocations: 419.8 kB / 419 MB, free: 8.262 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003536/0.6828, allocations: 76.16 kB / 419.1 MB, free: 8.188 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.091e-06/0.6828, allocations: 4.062 kB / 419.1 MB, free: 8.184 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000108/0.683, allocations: 31.92 kB / 419.1 MB, free: 8.152 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007067/0.6837, allocations: 70.73 kB / 419.2 MB, free: 8.086 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001106/0.6848, allocations: 375.6 kB / 419.6 MB, free: 7.672 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005503/0.6854, allocations: 0.7365 MB / 420.3 MB, free: 6.91 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.937e-05/0.6855, allocations: 27.36 kB / 420.3 MB, free: 6.887 MB / 334.1 MB Notification: Performance of SimCode: time 2.425e-06/0.6855, allocations: 0 / 420.3 MB, free: 6.887 MB / 334.1 MB Notification: Performance of Templates: time 0.009637/0.6951, allocations: 2.882 MB / 423.2 MB, free: 4.02 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/BackSample/BackSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches