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.001159/0.001159, allocations: 179.6 kB / 15.8 MB, free: 6.34 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.57/1.57, allocations: 205.4 MB / 221.9 MB, free: 13.83 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.0009198/0.0009199, allocations: 86.86 kB / 270.3 MB, free: 13.35 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.06705/0.06705, allocations: 12.6 MB / 331.1 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003461/0.0003461, allocations: 11.81 kB / 392 MB, free: 54.87 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08647/0.08683, allocations: 50.37 MB / 442.4 MB, free: 10.94 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1045/0.1914, allocations: 81.84 MB / 0.5119 GB, free: 8.984 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002705/0.1917, allocations: 79.95 kB / 0.512 GB, free: 8.906 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0152/0.2069, allocations: 5.811 MB / 0.5177 GB, free: 3.086 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.207, allocations: 0 / 0.5177 GB, free: 3.086 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.67e-05/0.207, allocations: 0 / 0.5177 GB, free: 3.086 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.00063/0.2076, allocations: 0.5079 MB / 0.5182 GB, free: 2.523 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.2077, allocations: 12.03 kB / 0.5182 GB, free: 2.512 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.145e-05/0.2077, allocations: 15.81 kB / 0.5182 GB, free: 2.496 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003455/0.2081, allocations: 261.7 kB / 0.5184 GB, free: 2.203 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.38e-05/0.2081, allocations: 7.953 kB / 0.5184 GB, free: 2.195 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.803e-05/0.2082, allocations: 11.94 kB / 0.5185 GB, free: 2.184 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002894/0.2085, allocations: 144.2 kB / 0.5186 GB, free: 2.02 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.198e-05/0.2085, allocations: 7.922 kB / 0.5186 GB, free: 2.012 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.225e-05/0.2085, allocations: 0 / 0.5186 GB, free: 2.012 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.552e-06/0.2085, allocations: 4 kB / 0.5186 GB, free: 2.008 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.607e-05/0.2086, allocations: 31.98 kB / 0.5186 GB, free: 1.977 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000474/0.2091, allocations: 374.4 kB / 0.519 GB, free: 1.555 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002085/0.2093, allocations: 116.1 kB / 0.5191 GB, free: 1.414 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.994e-05/0.2093, allocations: 0 / 0.5191 GB, free: 1.414 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000145/0.2095, allocations: 79.5 kB / 0.5192 GB, free: 1.324 MB / 362.7 MB Notification: Performance of pre-optimization done (n=9): time 1.473e-06/0.2095, allocations: 3.938 kB / 0.5192 GB, free: 1.32 MB / 362.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003314/0.2098, allocations: 149.5 kB / 0.5193 GB, free: 1.168 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.723e-05/0.2099, allocations: 136.5 kB / 0.5195 GB, free: 1.004 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002333/0.2102, allocations: 236.2 kB / 0.5197 GB, free: 0.7656 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.984e-05/0.2102, allocations: 25.7 kB / 0.5197 GB, free: 0.7344 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.92e-05/0.2103, allocations: 116.1 kB / 0.5198 GB, free: 0.6172 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.399e-05/0.2103, allocations: 19.8 kB / 0.5198 GB, free: 0.5977 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.288e-06/0.2103, allocations: 0 / 0.5198 GB, free: 0.5977 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001175/0.2104, allocations: 334.8 kB / 0.5202 GB, free: 268 kB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.7e-05/0.2105, allocations: 23.98 kB / 0.5202 GB, free: 244 kB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.511e-05/0.2106, allocations: 69.94 kB / 0.5202 GB, free: 152 kB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.606e-05/0.2107, allocations: 32.02 kB / 0.5203 GB, free: 120 kB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.2107, allocations: 0 / 0.5203 GB, free: 120 kB / 362.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002083/0.2109, allocations: 113.4 kB / 0.5204 GB, free: 0 / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.1836/0.3944, allocations: 5.828 kB / 0.5204 GB, free: 84.23 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.712e-05/0.3945, allocations: 1.062 kB / 0.5204 GB, free: 84.23 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.893e-05/0.3945, allocations: 3.406 kB / 0.5204 GB, free: 84.23 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001524/0.3947, allocations: 8.781 kB / 0.5204 GB, free: 84.23 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.628e-06/0.3947, allocations: 5.156 kB / 0.5204 GB, free: 84.23 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001601/0.3949, allocations: 12.09 kB / 0.5204 GB, free: 84.23 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.213e-05/0.3949, allocations: 4.578 kB / 0.5204 GB, free: 84.23 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 () * 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.0001685/0.3951, allocations: 157.4 kB / 0.5206 GB, free: 84.12 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000126/0.3952, allocations: 59.42 kB / 0.5206 GB, free: 84.09 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002627/0.3955, allocations: 116.6 kB / 0.5207 GB, free: 84.04 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.951e-06/0.3955, allocations: 2.031 kB / 0.5207 GB, free: 84.04 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.3955, allocations: 2 kB / 0.5207 GB, free: 84.04 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.3955, allocations: 3.438 kB / 0.5208 GB, free: 84.04 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002166/0.3958, allocations: 230.8 kB / 0.521 GB, free: 83.86 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.3958, allocations: 2.219 kB / 0.521 GB, free: 83.86 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.209e-05/0.3958, allocations: 10.38 kB / 0.521 GB, free: 83.86 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.3958, allocations: 0 / 0.521 GB, free: 83.86 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.309e-05/0.3958, allocations: 5.719 kB / 0.521 GB, free: 83.86 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.3958, allocations: 5.062 kB / 0.521 GB, free: 83.86 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.3959, allocations: 1.031 kB / 0.521 GB, free: 83.86 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002312/0.3961, allocations: 183.8 kB / 0.5212 GB, free: 83.74 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001063/0.3962, allocations: 123.2 kB / 0.5213 GB, free: 83.65 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.383e-05/0.3962, allocations: 3.766 kB / 0.5213 GB, free: 83.65 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.934e-05/0.3963, allocations: 8.234 kB / 0.5213 GB, free: 83.65 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.977e-05/0.3964, allocations: 13.3 kB / 0.5213 GB, free: 83.64 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.161e-05/0.3964, allocations: 6.297 kB / 0.5213 GB, free: 83.64 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001712/0.3966, allocations: 191.2 kB / 0.5215 GB, free: 83.57 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3966, allocations: 0.9844 kB / 0.5215 GB, free: 83.57 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000279/0.3969, allocations: 38.59 kB / 0.5215 GB, free: 83.57 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) * 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.0008594/0.3977, allocations: 426.3 kB / 0.5219 GB, free: 83.29 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002342/0.398, allocations: 73.73 kB / 0.522 GB, free: 83.29 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.398, allocations: 3.281 kB / 0.522 GB, free: 83.29 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.739e-05/0.3981, allocations: 31.59 kB / 0.522 GB, free: 83.29 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003349/0.3984, allocations: 62.73 kB / 0.5221 GB, free: 83.29 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005387/0.399, allocations: 343.5 kB / 0.5224 GB, free: 83.07 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001748/0.3991, allocations: 0.7361 MB / 0.5232 GB, free: 82.37 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 8.22e-05/0.3992, allocations: 28.17 kB / 0.5232 GB, free: 82.36 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.574e-05/0.3993, allocations: 21.44 kB / 0.5232 GB, free: 82.35 MB / 362.7 MB Notification: Performance of SimCode: time 3e-07/0.3993, allocations: 0 / 0.5232 GB, free: 82.35 MB / 362.7 MB Notification: Performance of Templates: time 0.006746/0.406, allocations: 2.368 MB / 0.5255 GB, free: 82.12 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