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.001672/0.001672, allocations: 177.6 kB / 8.045 MB, free: 1.027 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.513/1.513, allocations: 205.3 MB / 213.8 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008322/0.0008321, allocations: 86.16 kB / 261.8 MB, free: 1.691 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.07243/0.07243, allocations: 12.6 MB / 322.3 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.679e-05/1.656e-05, allocations: 4 kB / 378.9 MB, free: 6.516 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.273/0.2731, allocations: 50.38 MB / 429.3 MB, free: 18.34 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1093/0.3825, allocations: 81.08 MB / 0.4984 GB, free: 1.148 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002426/0.3828, allocations: 75.95 kB / 0.4985 GB, free: 1.074 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01521/0.398, allocations: 5.755 MB / 0.5041 GB, free: 11.32 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3981, allocations: 0 / 0.5041 GB, free: 11.32 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.063e-05/0.3981, allocations: 4 kB / 0.5041 GB, free: 11.32 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.0005615/0.3987, allocations: 475.7 kB / 0.5046 GB, free: 10.8 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.757e-05/0.3987, allocations: 11.97 kB / 0.5046 GB, free: 10.79 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.417e-05/0.3988, allocations: 23.66 kB / 0.5046 GB, free: 10.77 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003733/0.3992, allocations: 257.8 kB / 0.5049 GB, free: 10.47 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.118e-05/0.3992, allocations: 7.953 kB / 0.5049 GB, free: 10.46 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.557e-05/0.3992, allocations: 4 kB / 0.5049 GB, free: 10.46 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001043/0.3993, allocations: 35.98 kB / 0.5049 GB, free: 10.43 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002388/0.3996, allocations: 134.8 kB / 0.505 GB, free: 10.27 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.909e-06/0.3996, allocations: 3.938 kB / 0.505 GB, free: 10.27 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.165e-05/0.3996, allocations: 0 / 0.505 GB, free: 10.27 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.138e-06/0.3996, allocations: 0 / 0.505 GB, free: 10.27 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004212/0.4001, allocations: 339 kB / 0.5054 GB, free: 9.891 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001486/0.4002, allocations: 99.91 kB / 0.5055 GB, free: 9.766 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.423e-05/0.4003, allocations: 38.7 kB / 0.5055 GB, free: 9.719 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.794e-05/0.4003, allocations: 4 kB / 0.5055 GB, free: 9.715 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001112/0.4004, allocations: 79.23 kB / 0.5056 GB, free: 9.625 MB / 362.7 MB Notification: Performance of pre-optimization done (n=9): time 1.483e-06/0.4004, allocations: 0 / 0.5056 GB, free: 9.625 MB / 362.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002314/0.4007, allocations: 109.4 kB / 0.5057 GB, free: 9.512 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.856e-05/0.4008, allocations: 144.5 kB / 0.5058 GB, free: 9.34 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002307/0.401, allocations: 224.5 kB / 0.506 GB, free: 9.117 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.96e-05/0.401, allocations: 29.7 kB / 0.5061 GB, free: 9.082 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.971e-05/0.4011, allocations: 120 kB / 0.5062 GB, free: 8.961 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.818e-05/0.4011, allocations: 7.906 kB / 0.5062 GB, free: 8.953 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.378e-06/0.4011, allocations: 4 kB / 0.5062 GB, free: 8.949 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001228/0.4013, allocations: 326.8 kB / 0.5065 GB, free: 8.621 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.427e-05/0.4013, allocations: 16 kB / 0.5065 GB, free: 8.605 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.676e-05/0.4014, allocations: 74.06 kB / 0.5066 GB, free: 8.512 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.838e-05/0.4014, allocations: 31.95 kB / 0.5066 GB, free: 8.48 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.4014, allocations: 0 / 0.5066 GB, free: 8.48 MB / 362.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001515/0.4016, allocations: 101.5 kB / 0.5067 GB, free: 8.375 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.357e-05/0.4016, allocations: 8 kB / 0.5067 GB, free: 8.367 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.468e-06/0.4016, allocations: 0 / 0.5067 GB, free: 8.367 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.242e-05/0.4016, allocations: 4 kB / 0.5067 GB, free: 8.363 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.797e-05/0.4017, allocations: 15.98 kB / 0.5067 GB, free: 8.348 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.354e-06/0.4017, allocations: 11.88 kB / 0.5067 GB, free: 8.336 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.558e-05/0.4018, allocations: 7.906 kB / 0.5068 GB, free: 8.328 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.127e-06/0.4018, allocations: 4 kB / 0.5068 GB, free: 8.324 MB / 362.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 () * 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 7.964e-05/0.4019, allocations: 117 kB / 0.5069 GB, free: 8.203 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001106/0.402, allocations: 61.44 kB / 0.5069 GB, free: 8.137 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001822/0.4022, allocations: 103.5 kB / 0.507 GB, free: 8.027 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.856e-06/0.4022, allocations: 0 / 0.507 GB, free: 8.027 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.77e-06/0.4023, allocations: 4 kB / 0.507 GB, free: 8.023 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-06/0.4023, allocations: 0 / 0.507 GB, free: 8.023 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001793/0.4024, allocations: 202.1 kB / 0.5072 GB, free: 7.789 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.4025, allocations: 0 / 0.5072 GB, free: 7.789 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.596e-05/0.4025, allocations: 8.062 kB / 0.5072 GB, free: 7.781 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.027e-06/0.4025, allocations: 7.953 kB / 0.5072 GB, free: 7.773 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.767e-06/0.4025, allocations: 128 / 0.5072 GB, free: 7.773 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.426e-06/0.4025, allocations: 11.94 kB / 0.5073 GB, free: 7.762 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.4025, allocations: 3.938 kB / 0.5073 GB, free: 7.758 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002037/0.4028, allocations: 181.9 kB / 0.5074 GB, free: 7.543 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.63e-05/0.4029, allocations: 108.9 kB / 0.5075 GB, free: 7.418 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.228e-05/0.4029, allocations: 7.984 kB / 0.5075 GB, free: 7.41 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.347e-05/0.403, allocations: 4 kB / 0.5075 GB, free: 7.406 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.252e-05/0.403, allocations: 7.984 kB / 0.5076 GB, free: 7.398 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.086e-05/0.403, allocations: 7.984 kB / 0.5076 GB, free: 7.391 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001656/0.4032, allocations: 184.5 kB / 0.5077 GB, free: 7.207 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.4032, allocations: 0 / 0.5077 GB, free: 7.207 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002424/0.4034, allocations: 31.94 kB / 0.5078 GB, free: 7.176 MB / 362.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) * 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.000718/0.4042, allocations: 359.3 kB / 0.5081 GB, free: 6.824 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001581/0.4043, allocations: 59.92 kB / 0.5082 GB, free: 6.766 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/0.4044, allocations: 0 / 0.5082 GB, free: 6.766 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.932e-05/0.4044, allocations: 32.17 kB / 0.5082 GB, free: 6.734 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003029/0.4047, allocations: 55.77 kB / 0.5082 GB, free: 6.684 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004168/0.4051, allocations: 228.1 kB / 0.5085 GB, free: 6.43 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00029/0.4054, allocations: 0.7321 MB / 0.5092 GB, free: 5.672 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.098e-05/0.4055, allocations: 29.31 kB / 0.5092 GB, free: 5.645 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.201e-05/0.4056, allocations: 15.44 kB / 0.5092 GB, free: 5.629 MB / 362.7 MB Notification: Performance of SimCode: time 2.51e-07/0.4056, allocations: 0 / 0.5092 GB, free: 5.629 MB / 362.7 MB Notification: Performance of Templates: time 0.004656/0.4102, allocations: 2.242 MB / 0.5114 GB, free: 3.395 MB / 362.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/jenkins/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