Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.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.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="backSample1.y|sample.y|shiftSample1.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="backSample1.y|sample.y|shiftSample1.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001349/0.00135, allocations: 180.9 kB / 8.049 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.569/1.569, 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.0007634/0.0007632, allocations: 86.62 kB / 261.8 MB, free: 1.68 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.07333/0.07333, allocations: 12.61 MB / 322.4 MB, free: 15.19 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.67e-05/1.673e-05, allocations: 0 / 378.9 MB, free: 6.496 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2224/0.2225, allocations: 50.37 MB / 429.3 MB, free: 18.33 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1019/0.3244, allocations: 81.19 MB / 0.4985 GB, free: 1.027 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002204/0.3247, allocations: 79.95 kB / 0.4986 GB, free: 0.9492 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01546/0.3402, allocations: 5.864 MB / 0.5043 GB, free: 11.09 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.3402, allocations: 0 / 0.5043 GB, free: 11.09 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.538e-05/0.3403, allocations: 8 kB / 0.5043 GB, free: 11.08 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0005849/0.3408, allocations: 483.7 kB / 0.5048 GB, free: 10.55 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.1e-05/0.3409, allocations: 8.031 kB / 0.5048 GB, free: 10.55 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.807e-05/0.341, allocations: 23.72 kB / 0.5048 GB, free: 10.52 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003875/0.3414, allocations: 273.6 kB / 0.5051 GB, free: 10.21 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.553e-05/0.3414, allocations: 3.938 kB / 0.5051 GB, free: 10.21 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.959e-05/0.3414, allocations: 7.953 kB / 0.5051 GB, free: 10.2 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001041/0.3415, allocations: 39.98 kB / 0.5051 GB, free: 10.16 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002631/0.3418, allocations: 161.1 kB / 0.5053 GB, free: 9.98 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.709e-06/0.3418, allocations: 3.938 kB / 0.5053 GB, free: 9.977 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.261e-05/0.3418, allocations: 0 / 0.5053 GB, free: 9.977 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.038e-06/0.3418, allocations: 0 / 0.5053 GB, free: 9.977 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004397/0.3423, allocations: 351.9 kB / 0.5056 GB, free: 9.586 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001528/0.3424, allocations: 122.5 kB / 0.5058 GB, free: 9.43 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.388e-05/0.3425, allocations: 47.56 kB / 0.5058 GB, free: 9.371 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.61e-05/0.3426, allocations: 7.922 kB / 0.5058 GB, free: 9.363 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001247/0.3427, allocations: 75.39 kB / 0.5059 GB, free: 9.277 MB / 362.7 MB Notification: Performance of pre-optimization done (n=11): time 1.423e-06/0.3427, allocations: 0 / 0.5059 GB, free: 9.277 MB / 362.7 MB Notification: Performance of matching and sorting (n=11): time 0.000235/0.3429, allocations: 121.3 kB / 0.506 GB, free: 9.152 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.904e-05/0.343, allocations: 162.2 kB / 0.5061 GB, free: 8.957 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002374/0.3433, allocations: 236.6 kB / 0.5064 GB, free: 8.723 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.593e-05/0.3433, allocations: 25.7 kB / 0.5064 GB, free: 8.691 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.723e-05/0.3434, allocations: 120.4 kB / 0.5065 GB, free: 8.566 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.437e-05/0.3434, allocations: 19.75 kB / 0.5065 GB, free: 8.547 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.739e-06/0.3434, allocations: 0 / 0.5065 GB, free: 8.547 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001151/0.3435, allocations: 330.8 kB / 0.5068 GB, free: 8.215 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.925e-05/0.3436, allocations: 20 kB / 0.5069 GB, free: 8.195 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.967e-05/0.3437, allocations: 79.78 kB / 0.5069 GB, free: 8.09 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.81e-05/0.3437, allocations: 27.94 kB / 0.507 GB, free: 8.062 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.3437, allocations: 7.953 kB / 0.507 GB, free: 8.055 MB / 362.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001622/0.3439, allocations: 121.3 kB / 0.5071 GB, free: 7.93 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.283e-05/0.3439, allocations: 4 kB / 0.5071 GB, free: 7.926 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.3439, allocations: 8.062 kB / 0.5071 GB, free: 7.918 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.259e-05/0.344, allocations: 0 / 0.5071 GB, free: 7.918 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.111e-05/0.344, allocations: 19.98 kB / 0.5071 GB, free: 7.898 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.747e-06/0.3441, allocations: 4 kB / 0.5071 GB, free: 7.895 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.148e-05/0.3441, allocations: 4.188 kB / 0.5071 GB, free: 7.891 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.983e-05/0.3442, allocations: 8 kB / 0.5071 GB, free: 7.883 MB / 362.7 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 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.u,sample.y) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9e-05/0.3443, allocations: 116.9 kB / 0.5073 GB, free: 7.762 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.524e-05/0.3444, allocations: 69.41 kB / 0.5073 GB, free: 7.688 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001949/0.3446, allocations: 115.4 kB / 0.5074 GB, free: 7.566 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.3446, allocations: 4 kB / 0.5074 GB, free: 7.562 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.3446, allocations: 0 / 0.5074 GB, free: 7.562 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.142e-06/0.3446, allocations: 4.078 kB / 0.5074 GB, free: 7.559 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001749/0.3448, allocations: 210.1 kB / 0.5076 GB, free: 7.316 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.3448, allocations: 0 / 0.5076 GB, free: 7.316 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.513e-05/0.3448, allocations: 7.938 kB / 0.5076 GB, free: 7.309 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.14e-06/0.3449, allocations: 7.953 kB / 0.5077 GB, free: 7.301 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.768e-06/0.3449, allocations: 0 / 0.5077 GB, free: 7.301 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.965e-06/0.3449, allocations: 4 kB / 0.5077 GB, free: 7.297 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.3449, allocations: 0 / 0.5077 GB, free: 7.297 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000213/0.3451, allocations: 200.6 kB / 0.5078 GB, free: 7.055 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001033/0.3452, allocations: 116.8 kB / 0.508 GB, free: 6.922 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.18e-05/0.3453, allocations: 4 kB / 0.508 GB, free: 6.918 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.944e-05/0.3453, allocations: 7.984 kB / 0.508 GB, free: 6.91 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.493e-05/0.3454, allocations: 8 kB / 0.508 GB, free: 6.902 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.326e-05/0.3454, allocations: 11.94 kB / 0.508 GB, free: 6.891 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001736/0.3456, allocations: 192.4 kB / 0.5082 GB, free: 6.699 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3456, allocations: 0 / 0.5082 GB, free: 6.699 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002578/0.3458, allocations: 35.92 kB / 0.5082 GB, free: 6.664 MB / 362.7 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,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,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 (12): * Single equations (assignments): 10 * 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.0007256/0.3466, allocations: 353.1 kB / 0.5085 GB, free: 6.32 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001731/0.3468, allocations: 71.92 kB / 0.5086 GB, free: 6.25 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.3468, allocations: 3.938 kB / 0.5086 GB, free: 6.246 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.932e-05/0.3468, allocations: 24 kB / 0.5086 GB, free: 6.223 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003346/0.3472, allocations: 64.53 kB / 0.5087 GB, free: 6.16 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004135/0.3476, allocations: 248.8 kB / 0.5089 GB, free: 5.883 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002908/0.3479, allocations: 0.7399 MB / 0.5097 GB, free: 5.113 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.558e-05/0.348, allocations: 25.84 kB / 0.5097 GB, free: 5.086 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.338e-05/0.348, allocations: 23.44 kB / 0.5097 GB, free: 5.062 MB / 362.7 MB Notification: Performance of SimCode: time 2.6e-07/0.348, allocations: 0 / 0.5097 GB, free: 5.062 MB / 362.7 MB Notification: Performance of Templates: time 0.0053/0.3533, allocations: 2.409 MB / 0.5121 GB, free: 2.66 MB / 362.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:backSample1.y,sample.y,shiftSample1.y,time Variables in the result:backSample1.backCounter,backSample1.resolution,backSample1.y,backSample1.y_start,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample.y,shiftSample1.resolution,shiftSample1.shiftCounter,shiftSample1.y,table.combiTimeTable.columns[1],table.combiTimeTable.extrapolation,table.combiTimeTable.nout,table.combiTimeTable.offset[1],table.combiTimeTable.p_offset[1],table.combiTimeTable.shiftTime,table.combiTimeTable.smoothness,table.combiTimeTable.startTime,table.combiTimeTable.t_max,table.combiTimeTable.t_maxScaled,table.combiTimeTable.t_min,table.combiTimeTable.t_minScaled,table.combiTimeTable.tableOnFile,table.combiTimeTable.table[1,1],table.combiTimeTable.table[1,2],table.combiTimeTable.table[2,1],table.combiTimeTable.table[2,2],table.combiTimeTable.table[3,1],table.combiTimeTable.table[3,2],table.combiTimeTable.timeEvents,table.combiTimeTable.timeScale,table.combiTimeTable.verboseExtrapolation,table.combiTimeTable.verboseRead,table.extrapolation,table.n,table.realToBoolean.threshold,table.shiftTime,table.startTime,table.startValue,table.table[1],table.table[2],time