Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001023/0.001022, allocations: 163.3 kB / 16.8 MB, free: 5.023 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.593/1.593, allocations: 205.4 MB / 223 MB, free: 8.941 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008111/0.0008109, allocations: 76.81 kB / 271.3 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.0735/0.0735, allocations: 12.6 MB / 332.2 MB, free: 11.25 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000411/0.000411, allocations: 20 kB / 393.2 MB, free: 65.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09105/0.09148, allocations: 50.38 MB / 443.6 MB, free: 15.51 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2954/0.387, allocations: 81.88 MB / 0.5132 GB, free: 12.53 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002159/0.3872, allocations: 87.53 kB / 0.5133 GB, free: 12.52 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01373/0.401, allocations: 5.807 MB / 0.5189 GB, free: 9.059 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.766e-06/0.401, allocations: 192 / 0.5189 GB, free: 9.059 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.339e-05/0.4011, allocations: 7.938 kB / 0.5189 GB, free: 9.051 MB / 330.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.0005545/0.4016, allocations: 0.4941 MB / 0.5194 GB, free: 8.516 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.527e-05/0.4017, allocations: 12.03 kB / 0.5194 GB, free: 8.504 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.438e-05/0.4017, allocations: 16.75 kB / 0.5194 GB, free: 8.488 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003094/0.402, allocations: 276.8 kB / 0.5197 GB, free: 8.203 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.785e-05/0.4021, allocations: 11.12 kB / 0.5197 GB, free: 8.195 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.482e-05/0.4021, allocations: 7.938 kB / 0.5197 GB, free: 8.191 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002827/0.4024, allocations: 140.4 kB / 0.5199 GB, free: 8.051 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.072e-05/0.4024, allocations: 4.172 kB / 0.5199 GB, free: 8.047 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.349e-05/0.4024, allocations: 15.75 kB / 0.5199 GB, free: 8.035 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/0.4024, allocations: 0 / 0.5199 GB, free: 8.035 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.864e-05/0.4025, allocations: 38.8 kB / 0.5199 GB, free: 8.008 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003941/0.4029, allocations: 360.4 kB / 0.5203 GB, free: 7.645 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001711/0.4031, allocations: 109 kB / 0.5204 GB, free: 7.527 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.938e-05/0.4032, allocations: 48.31 kB / 0.5204 GB, free: 7.48 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.923e-05/0.4032, allocations: 7.75 kB / 0.5204 GB, free: 7.477 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001152/0.4033, allocations: 74.56 kB / 0.5205 GB, free: 7.398 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 1.813e-06/0.4034, allocations: 0 / 0.5205 GB, free: 7.398 MB / 330.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003041/0.4037, allocations: 145.2 kB / 0.5206 GB, free: 7.277 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.419e-05/0.4037, allocations: 139.2 kB / 0.5208 GB, free: 7.113 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002242/0.404, allocations: 267.1 kB / 0.521 GB, free: 6.891 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.304e-05/0.404, allocations: 25.7 kB / 0.521 GB, free: 6.859 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.168e-05/0.404, allocations: 123 kB / 0.5212 GB, free: 6.758 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.118e-05/0.4041, allocations: 15.12 kB / 0.5212 GB, free: 6.746 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.268e-06/0.4041, allocations: 0 / 0.5212 GB, free: 6.746 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.299e-05/0.4041, allocations: 329.6 kB / 0.5215 GB, free: 6.422 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.477e-05/0.4042, allocations: 30.36 kB / 0.5215 GB, free: 6.402 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.659e-05/0.4043, allocations: 80.48 kB / 0.5216 GB, free: 6.312 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001065/0.4044, allocations: 72.53 kB / 0.5217 GB, free: 6.242 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.4044, allocations: 4.031 kB / 0.5217 GB, free: 6.238 MB / 330.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001783/0.4046, allocations: 118.2 kB / 0.5218 GB, free: 6.137 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.301e-05/0.4046, allocations: 4 kB / 0.5218 GB, free: 6.133 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.4046, allocations: 4 kB / 0.5218 GB, free: 6.129 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.25e-05/0.4046, allocations: 0 / 0.5218 GB, free: 6.129 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.556e-05/0.4047, allocations: 23.56 kB / 0.5218 GB, free: 6.109 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.4047, allocations: 0 / 0.5218 GB, free: 6.109 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.013e-05/0.4048, allocations: 11.89 kB / 0.5218 GB, free: 6.098 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.936e-06/0.4048, allocations: 8.125 kB / 0.5218 GB, free: 6.09 MB / 330.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,sample.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,shiftSample1.u,sample.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 9.266e-05/0.4049, allocations: 147.5 kB / 0.522 GB, free: 5.949 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.203e-05/0.405, allocations: 60.83 kB / 0.522 GB, free: 5.887 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001952/0.4052, allocations: 110.8 kB / 0.5221 GB, free: 5.793 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.938e-06/0.4052, allocations: 4 kB / 0.5221 GB, free: 5.789 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.4052, allocations: 3.984 kB / 0.5221 GB, free: 5.785 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.4052, allocations: 0 / 0.5221 GB, free: 5.785 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001384/0.4054, allocations: 242.1 kB / 0.5224 GB, free: 5.527 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.4054, allocations: 0 / 0.5224 GB, free: 5.527 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.258e-05/0.4054, allocations: 11.94 kB / 0.5224 GB, free: 5.516 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.4054, allocations: 0 / 0.5224 GB, free: 5.516 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.977e-06/0.4054, allocations: 0 / 0.5224 GB, free: 5.516 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.4054, allocations: 4.078 kB / 0.5224 GB, free: 5.512 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.4055, allocations: 3.984 kB / 0.5224 GB, free: 5.508 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001977/0.4057, allocations: 166.2 kB / 0.5225 GB, free: 5.344 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.889e-05/0.4057, allocations: 115.9 kB / 0.5227 GB, free: 5.223 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.671e-05/0.4058, allocations: 4 kB / 0.5227 GB, free: 5.219 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.334e-05/0.4059, allocations: 8.078 kB / 0.5227 GB, free: 5.211 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.66e-05/0.4059, allocations: 10.81 kB / 0.5227 GB, free: 5.203 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.062e-05/0.4059, allocations: 4 kB / 0.5227 GB, free: 5.199 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001553/0.4061, allocations: 196.5 kB / 0.5229 GB, free: 5.039 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4061, allocations: 0 / 0.5229 GB, free: 5.039 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002812/0.4064, allocations: 43.11 kB / 0.5229 GB, free: 5 MB / 330.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,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,sample.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.0007884/0.4072, allocations: 430.8 kB / 0.5233 GB, free: 4.586 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002039/0.4074, allocations: 73.91 kB / 0.5234 GB, free: 4.531 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.4074, allocations: 0 / 0.5234 GB, free: 4.531 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.322e-05/0.4075, allocations: 27.36 kB / 0.5234 GB, free: 4.512 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000383/0.4079, allocations: 69.92 kB / 0.5235 GB, free: 4.453 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004554/0.4083, allocations: 349.2 kB / 0.5238 GB, free: 4.109 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001256/0.4085, allocations: 0.7278 MB / 0.5245 GB, free: 3.359 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 7.601e-05/0.4085, allocations: 21.55 kB / 0.5245 GB, free: 3.34 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.843e-05/0.4086, allocations: 23.42 kB / 0.5246 GB, free: 3.316 MB / 330.7 MB Notification: Performance of SimCode: time 2.71e-07/0.4086, allocations: 0 / 0.5246 GB, free: 3.316 MB / 330.7 MB Notification: Performance of Templates: time 0.004655/0.4132, allocations: 2.399 MB / 0.5269 GB, free: 0.9336 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches