Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.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.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001936/0.001936, allocations: 196.7 kB / 18.11 MB, free: 3.734 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.674/1.674, allocations: 226.5 MB / 245.4 MB, free: 6.457 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001036/0.001036, allocations: 97.12 kB / 297.5 MB, free: 6.656 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003266/0.0003267, allocations: 8 kB / 358.1 MB, free: 10.04 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2924/0.2927, allocations: 51.29 MB / 409.4 MB, free: 27.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1049/0.3977, allocations: 82.24 MB / 491.6 MB, free: 9.242 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002783/0.398, allocations: 83.94 kB / 491.7 MB, free: 9.16 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02026/0.4183, allocations: 6.766 MB / 498.5 MB, free: 2.406 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.437e-06/0.4183, allocations: 0 / 498.5 MB, free: 2.406 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.36e-05/0.4184, allocations: 8.125 kB / 498.5 MB, free: 2.398 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0008625/0.4193, allocations: 0.5314 MB / 499 MB, free: 1.809 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.22e-05/0.4193, allocations: 8.031 kB / 499 MB, free: 1.801 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.603e-05/0.4194, allocations: 16.75 kB / 499 MB, free: 1.785 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005114/0.4199, allocations: 282.7 kB / 499.3 MB, free: 1.469 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.863e-05/0.42, allocations: 4.375 kB / 499.3 MB, free: 1.465 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.14e-05/0.42, allocations: 8.375 kB / 499.3 MB, free: 1.457 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003399/0.4203, allocations: 147 kB / 499.5 MB, free: 1.293 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.247e-05/0.4204, allocations: 192 / 499.5 MB, free: 1.293 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.084e-05/0.4204, allocations: 11.92 kB / 499.5 MB, free: 1.281 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.4204, allocations: 0 / 499.5 MB, free: 1.281 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001038/0.4205, allocations: 35.92 kB / 499.5 MB, free: 1.246 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005543/0.4211, allocations: 370.4 kB / 499.9 MB, free: 0.8281 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002094/0.4213, allocations: 111.9 kB / 500 MB, free: 0.6914 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.292e-05/0.4214, allocations: 46.56 kB / 0.4883 GB, free: 0.6367 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.47e-05/0.4214, allocations: 8 kB / 0.4883 GB, free: 0.6289 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001531/0.4216, allocations: 75.38 kB / 0.4884 GB, free: 0.543 MB / 362.7 MB Notification: Performance of pre-optimization done (n=9): time 1.823e-06/0.4216, allocations: 0 / 0.4884 GB, free: 0.543 MB / 362.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003648/0.422, allocations: 149.6 kB / 0.4885 GB, free: 400 kB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.332e-05/0.4221, allocations: 136.4 kB / 0.4887 GB, free: 232 kB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00035/0.4224, allocations: 277 kB / 0.4889 GB, free: 15.94 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.714e-05/0.4225, allocations: 25.7 kB / 0.4889 GB, free: 15.91 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.962e-05/0.4225, allocations: 120 kB / 0.4891 GB, free: 15.79 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.416e-05/0.4226, allocations: 15.81 kB / 0.4891 GB, free: 15.77 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.542e-06/0.4226, allocations: 4 kB / 0.4891 GB, free: 15.77 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001485/0.4227, allocations: 334.8 kB / 0.4894 GB, free: 15.43 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.498e-05/0.4228, allocations: 23.98 kB / 0.4894 GB, free: 15.41 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9e-05/0.4229, allocations: 66 kB / 0.4895 GB, free: 15.32 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001387/0.4231, allocations: 84.25 kB / 0.4896 GB, free: 15.22 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.4231, allocations: 0 / 0.4896 GB, free: 15.22 MB / 378.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002344/0.4233, allocations: 117.4 kB / 0.4897 GB, free: 15.1 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.721e-05/0.4233, allocations: 4 kB / 0.4897 GB, free: 15.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.4234, allocations: 0 / 0.4897 GB, free: 15.1 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.707e-05/0.4234, allocations: 4 kB / 0.4897 GB, free: 15.09 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.356e-05/0.4235, allocations: 20.05 kB / 0.4897 GB, free: 15.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.456e-06/0.4235, allocations: 4 kB / 0.4897 GB, free: 15.07 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.109e-05/0.4236, allocations: 7.938 kB / 0.4897 GB, free: 15.06 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.255e-05/0.4236, allocations: 8 kB / 0.4897 GB, free: 15.05 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample1.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,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 (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * 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.0002078/0.4238, allocations: 141.8 kB / 0.4899 GB, free: 14.91 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001015/0.4239, allocations: 69.34 kB / 0.4899 GB, free: 14.83 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002658/0.4242, allocations: 115.4 kB / 0.49 GB, free: 14.71 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.063e-05/0.4242, allocations: 4 kB / 0.49 GB, free: 14.7 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/0.4242, allocations: 3.938 kB / 0.49 GB, free: 14.7 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.519e-06/0.4242, allocations: 0 / 0.49 GB, free: 14.7 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002371/0.4245, allocations: 241.5 kB / 0.4903 GB, free: 14.41 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.4245, allocations: 0 / 0.4903 GB, free: 14.41 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.81e-05/0.4245, allocations: 11.94 kB / 0.4903 GB, free: 14.4 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/0.4245, allocations: 0 / 0.4903 GB, free: 14.4 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.56e-05/0.4246, allocations: 7.984 kB / 0.4903 GB, free: 14.39 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.4246, allocations: 4.25 kB / 0.4903 GB, free: 14.39 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.4246, allocations: 0 / 0.4903 GB, free: 14.39 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002684/0.4249, allocations: 166.5 kB / 0.4904 GB, free: 14.2 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001155/0.425, allocations: 120.8 kB / 0.4906 GB, free: 14.07 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.2e-05/0.425, allocations: 4 kB / 0.4906 GB, free: 14.06 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.497e-05/0.4251, allocations: 7.984 kB / 0.4906 GB, free: 14.05 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.644e-05/0.4251, allocations: 4 kB / 0.4906 GB, free: 14.05 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.457e-05/0.4252, allocations: 12 kB / 0.4906 GB, free: 14.04 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002205/0.4254, allocations: 200.5 kB / 0.4908 GB, free: 13.85 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.6e-07/0.4254, allocations: 0 / 0.4908 GB, free: 13.85 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000287/0.4257, allocations: 39.92 kB / 0.4908 GB, free: 13.81 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0009884/0.4267, allocations: 427.5 kB / 0.4912 GB, free: 13.53 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002358/0.4269, allocations: 80.08 kB / 0.4913 GB, free: 13.45 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.427, allocations: 0 / 0.4913 GB, free: 13.45 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 7.24e-05/0.427, allocations: 24 kB / 0.4913 GB, free: 13.43 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004288/0.4275, allocations: 76.17 kB / 0.4914 GB, free: 13.36 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006436/0.4281, allocations: 345.2 kB / 0.4917 GB, free: 12.99 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003396/0.4285, allocations: 0.7361 MB / 0.4924 GB, free: 12.23 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 9.304e-05/0.4286, allocations: 25.69 kB / 0.4925 GB, free: 12.2 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.867e-05/0.4286, allocations: 19.44 kB / 0.4925 GB, free: 12.18 MB / 378.7 MB Notification: Performance of SimCode: time 2.3e-07/0.4286, allocations: 0 / 0.4925 GB, free: 12.18 MB / 378.7 MB Notification: Performance of Templates: time 0.006392/0.435, allocations: 2.424 MB / 0.4949 GB, free: 9.785 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/ShiftSample/ShiftSample.csv","../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches