Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007262/0.0007262, allocations: 97.64 kB / 16.06 MB, free: 40 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007948/0.0007948, allocations: 182.3 kB / 16.96 MB, free: 6.895 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.211/1.211, allocations: 205.4 MB / 223.1 MB, free: 5.473 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.06205/0.06205, allocations: 12.6 MB / 284 MB, free: 8.578 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006354/0.0006355, allocations: 24.98 kB / 345.2 MB, free: 20.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08551/0.08616, allocations: 50.39 MB / 395.6 MB, free: 2.406 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample): time 0.002104/0.0883, allocations: 1.572 MB / 397.1 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001468/0.08978, allocations: 1.026 MB / 398.2 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.66e-05/0.08988, allocations: 3.938 kB / 398.2 MB, free: 15.78 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002627/0.09015, allocations: 59.8 kB / 398.2 MB, free: 15.72 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001774/0.09034, allocations: 87.7 kB / 398.3 MB, free: 15.64 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005413/0.0909, allocations: 203.7 kB / 398.5 MB, free: 15.44 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001965/0.0911, allocations: 159.5 kB / 398.7 MB, free: 15.28 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001071/0.09122, allocations: 25.56 kB / 398.7 MB, free: 15.26 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.491e-05/0.09132, allocations: 63.69 kB / 398.7 MB, free: 15.2 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.94e-05/0.09142, allocations: 75.62 kB / 398.8 MB, free: 15.12 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.689e-05/0.09145, allocations: 4 kB / 398.8 MB, free: 15.12 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001179/0.09157, allocations: 43.98 kB / 398.9 MB, free: 15.07 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.806e-05/0.09167, allocations: 55.81 kB / 398.9 MB, free: 15.02 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.448e-05/0.09177, allocations: 97.06 kB / 399 MB, free: 14.92 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002382/0.09202, allocations: 219.5 kB / 399.2 MB, free: 14.7 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.706e-06/0.09203, allocations: 0 / 399.2 MB, free: 14.7 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.09204, allocations: 0 / 399.2 MB, free: 14.7 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.498e-06/0.09205, allocations: 0 / 399.2 MB, free: 14.7 MB / 302.1 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.0006604/0.09271, allocations: 0.4923 MB / 399.7 MB, free: 14.16 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.625e-05/0.09276, allocations: 8.031 kB / 399.7 MB, free: 14.15 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.343e-05/0.09282, allocations: 24.66 kB / 399.8 MB, free: 14.12 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003063/0.09313, allocations: 291.5 kB / 400 MB, free: 13.8 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.056e-05/0.09316, allocations: 8.375 kB / 400 MB, free: 13.79 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.682e-05/0.09318, allocations: 8.125 kB / 400.1 MB, free: 13.78 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003247/0.09351, allocations: 159.6 kB / 400.2 MB, free: 13.6 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.614e-06/0.09353, allocations: 0 / 400.2 MB, free: 13.6 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.404e-05/0.09355, allocations: 4 kB / 400.2 MB, free: 13.59 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.09356, allocations: 0 / 400.2 MB, free: 13.59 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000105/0.09367, allocations: 43.89 kB / 400.3 MB, free: 13.55 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000488/0.09417, allocations: 382.3 kB / 400.6 MB, free: 13.12 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003076/0.09448, allocations: 119.8 kB / 400.7 MB, free: 12.98 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.755e-05/0.09458, allocations: 46.56 kB / 400.8 MB, free: 12.92 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.307e-05/0.09462, allocations: 11.94 kB / 400.8 MB, free: 12.91 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001959/0.09482, allocations: 75.38 kB / 400.9 MB, free: 12.82 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.483e-06/0.09483, allocations: 0 / 400.9 MB, free: 12.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003681/0.0952, allocations: 153.3 kB / 401 MB, free: 12.67 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.918e-05/0.0953, allocations: 158.5 kB / 401.2 MB, free: 12.48 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003261/0.09564, allocations: 330.6 kB / 401.5 MB, free: 12.14 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.072e-05/0.09567, allocations: 29.7 kB / 401.5 MB, free: 12.11 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.619e-05/0.09576, allocations: 128.1 kB / 401.7 MB, free: 11.98 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.78e-05/0.0958, allocations: 27.8 kB / 401.7 MB, free: 11.95 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.822e-05/0.09583, allocations: 13.72 kB / 401.7 MB, free: 11.93 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001272/0.09597, allocations: 338.8 kB / 402 MB, free: 11.59 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.386e-05/0.09605, allocations: 19.98 kB / 402 MB, free: 11.57 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.966e-05/0.09615, allocations: 90.8 kB / 402.1 MB, free: 11.46 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001456/0.09631, allocations: 88.45 kB / 402.2 MB, free: 11.36 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.09632, allocations: 0 / 402.2 MB, free: 11.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002089/0.09653, allocations: 121.4 kB / 402.3 MB, free: 11.23 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.566e-05/0.09656, allocations: 8 kB / 402.3 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.09657, allocations: 0 / 402.3 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.364e-05/0.09659, allocations: 4 kB / 402.4 MB, free: 11.22 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001006/0.09669, allocations: 19.92 kB / 402.4 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.084e-06/0.09671, allocations: 4 kB / 402.4 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.457e-05/0.09679, allocations: 19.91 kB / 402.4 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.058e-05/0.09681, allocations: 8 kB / 402.4 MB, free: 11.17 MB / 302.1 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 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001352/0.09695, allocations: 149.8 kB / 402.5 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.721e-05/0.09703, allocations: 65.36 kB / 402.6 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.512e-05/0.0971, allocations: 25.7 kB / 402.6 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-06/0.09712, allocations: 7.938 kB / 402.6 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.09713, allocations: 0 / 402.6 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.09714, allocations: 8 kB / 402.7 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002008/0.09734, allocations: 237.6 kB / 402.9 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.09735, allocations: 0 / 402.9 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.959e-05/0.09742, allocations: 12 kB / 402.9 MB, free: 10.61 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.09743, allocations: 3.938 kB / 402.9 MB, free: 10.61 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.023e-05/0.09744, allocations: 0 / 402.9 MB, free: 10.61 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.843e-06/0.09745, allocations: 7.984 kB / 402.9 MB, free: 10.6 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.09746, allocations: 0 / 402.9 MB, free: 10.6 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002582/0.09772, allocations: 166.4 kB / 403.1 MB, free: 10.41 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.842e-05/0.09783, allocations: 112.9 kB / 403.2 MB, free: 10.29 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.311e-05/0.09787, allocations: 7.984 kB / 403.2 MB, free: 10.28 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.208e-05/0.09794, allocations: 4 kB / 403.2 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.473e-05/0.098, allocations: 7.984 kB / 403.2 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.041e-05/0.09803, allocations: 12 kB / 403.2 MB, free: 10.25 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002334/0.09827, allocations: 237.9 kB / 403.4 MB, free: 10.02 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.09828, allocations: 4 kB / 403.5 MB, free: 10.02 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002595/0.09854, allocations: 39.98 kB / 403.5 MB, free: 9.977 MB / 302.1 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,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,sample.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009191/0.09947, allocations: 431.6 kB / 403.9 MB, free: 9.543 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002221/0.0997, allocations: 75.83 kB / 404 MB, free: 9.469 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.09971, allocations: 0 / 404 MB, free: 9.469 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.492e-05/0.09979, allocations: 27.98 kB / 404 MB, free: 9.441 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003927/0.1002, allocations: 65.64 kB / 404.1 MB, free: 9.379 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005911/0.1008, allocations: 412.4 kB / 404.5 MB, free: 8.949 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003128/0.1011, allocations: 0.7439 MB / 405.2 MB, free: 8.18 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.978e-05/0.1012, allocations: 29.53 kB / 405.3 MB, free: 8.148 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.417e-05/0.1013, allocations: 19.44 kB / 405.3 MB, free: 8.133 MB / 302.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1013, allocations: 0 / 405.3 MB, free: 8.133 MB / 302.1 MB Notification: Performance of Templates: time 0.005896/0.1072, allocations: 2.705 MB / 408 MB, free: 5.422 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.makefile Environment - environmentSimulation: (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches