Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.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/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/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.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_cpp_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_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002606/0.002605, allocations: 181.6 kB / 17.46 MB, free: 4.359 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.669/2.669, allocations: 205.4 MB / 223.6 MB, free: 9.023 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.001176/0.001176, allocations: 96.91 kB / 272 MB, free: 8.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.1286/0.1286, allocations: 12.21 MB / 332.4 MB, free: 11.63 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007165/0.0007166, allocations: 16 kB / 392.7 MB, free: 67.06 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1588/0.1595, allocations: 50.29 MB / 443 MB, free: 16.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5233/0.6829, allocations: 81.87 MB / 0.5126 GB, free: 12.46 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002887/0.6833, allocations: 86.69 kB / 0.5127 GB, free: 12.45 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02445/0.7077, allocations: 6.48 MB / 0.519 GB, free: 9.746 MB / 330.7 MB Notification: Performance of FrontEnd: time 5.36e-06/0.7078, allocations: 0 / 0.519 GB, free: 9.746 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.226e-05/0.7079, allocations: 7.938 kB / 0.519 GB, free: 9.738 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.001195/0.7091, allocations: 0.5372 MB / 0.5195 GB, free: 9.164 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.148e-05/0.7092, allocations: 8.031 kB / 0.5195 GB, free: 9.156 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001539/0.7093, allocations: 24.66 kB / 0.5196 GB, free: 9.133 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007408/0.7101, allocations: 300.7 kB / 0.5198 GB, free: 8.82 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.13e-05/0.7102, allocations: 384 / 0.5198 GB, free: 8.82 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.787e-05/0.7102, allocations: 12.06 kB / 0.5199 GB, free: 8.812 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005287/0.7108, allocations: 171.9 kB / 0.52 GB, free: 8.645 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.618e-05/0.7108, allocations: 192 / 0.52 GB, free: 8.645 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.686e-05/0.7108, allocations: 11.88 kB / 0.52 GB, free: 8.637 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.136e-06/0.7109, allocations: 0 / 0.52 GB, free: 8.637 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001889/0.7111, allocations: 33.86 kB / 0.5201 GB, free: 8.613 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000822/0.7119, allocations: 404.4 kB / 0.5204 GB, free: 8.211 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000372/0.7123, allocations: 130.6 kB / 0.5206 GB, free: 8.078 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001385/0.7124, allocations: 44.31 kB / 0.5206 GB, free: 8.035 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.057e-05/0.7125, allocations: 0 / 0.5206 GB, free: 8.035 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002372/0.7127, allocations: 82.06 kB / 0.5207 GB, free: 7.953 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 3.456e-06/0.7128, allocations: 4 kB / 0.5207 GB, free: 7.949 MB / 330.7 MB Notification: Performance of matching and sorting (n=9): time 0.0006044/0.7134, allocations: 161.7 kB / 0.5208 GB, free: 7.816 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.488e-05/0.7135, allocations: 154.2 kB / 0.521 GB, free: 7.629 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005498/0.714, allocations: 327.9 kB / 0.5213 GB, free: 7.355 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.887e-05/0.7141, allocations: 32.77 kB / 0.5213 GB, free: 7.32 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001001/0.7142, allocations: 132.7 kB / 0.5215 GB, free: 7.215 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.771e-05/0.7143, allocations: 23 kB / 0.5215 GB, free: 7.199 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.017e-05/0.7143, allocations: 4 kB / 0.5215 GB, free: 7.195 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001017/0.7144, allocations: 335.1 kB / 0.5218 GB, free: 6.867 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001175/0.7145, allocations: 26.42 kB / 0.5218 GB, free: 6.852 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001777/0.7147, allocations: 96.52 kB / 0.5219 GB, free: 6.746 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002479/0.715, allocations: 83.84 kB / 0.522 GB, free: 6.668 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.715, allocations: 0 / 0.522 GB, free: 6.668 MB / 330.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003817/0.7154, allocations: 135.4 kB / 0.5221 GB, free: 6.555 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.651e-05/0.7154, allocations: 8.75 kB / 0.5221 GB, free: 6.547 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.202e-05/0.7155, allocations: 4 kB / 0.5222 GB, free: 6.543 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.343e-05/0.7155, allocations: 0 / 0.5222 GB, free: 6.543 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000184/0.7157, allocations: 19.98 kB / 0.5222 GB, free: 6.523 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.265e-05/0.7158, allocations: 0 / 0.5222 GB, free: 6.523 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001448/0.7159, allocations: 8 kB / 0.5222 GB, free: 6.516 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.995e-05/0.716, allocations: 0 / 0.5222 GB, free: 6.516 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 0.0002225/0.7162, allocations: 173 kB / 0.5223 GB, free: 6.352 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001298/0.7163, allocations: 68.47 kB / 0.5224 GB, free: 6.281 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000418/0.7168, allocations: 127.9 kB / 0.5225 GB, free: 6.176 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.264e-06/0.7168, allocations: 4 kB / 0.5225 GB, free: 6.172 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.208e-06/0.7168, allocations: 0 / 0.5225 GB, free: 6.172 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.364e-06/0.7168, allocations: 0 / 0.5225 GB, free: 6.172 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003159/0.7172, allocations: 250.5 kB / 0.5228 GB, free: 5.906 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.357e-06/0.7172, allocations: 0 / 0.5228 GB, free: 5.906 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000103/0.7173, allocations: 12 kB / 0.5228 GB, free: 5.895 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.15e-06/0.7173, allocations: 0 / 0.5228 GB, free: 5.895 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.117e-05/0.7173, allocations: 10.98 kB / 0.5228 GB, free: 5.887 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.913e-06/0.7174, allocations: 7.938 kB / 0.5228 GB, free: 5.879 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.7174, allocations: 0 / 0.5228 GB, free: 5.879 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004118/0.7178, allocations: 176.7 kB / 0.523 GB, free: 5.711 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001508/0.718, allocations: 123 kB / 0.5231 GB, free: 5.582 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.209e-05/0.718, allocations: 0 / 0.5231 GB, free: 5.582 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001263/0.7182, allocations: 11.44 kB / 0.5231 GB, free: 5.574 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.908e-05/0.7183, allocations: 7.984 kB / 0.5231 GB, free: 5.566 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.712e-05/0.7183, allocations: 4 kB / 0.5231 GB, free: 5.562 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003447/0.7186, allocations: 243.5 kB / 0.5233 GB, free: 5.367 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.51e-07/0.7187, allocations: 3.938 kB / 0.5233 GB, free: 5.363 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005314/0.7192, allocations: 55.11 kB / 0.5234 GB, free: 5.316 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.001566/0.7208, allocations: 424.4 kB / 0.5238 GB, free: 4.906 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004344/0.7212, allocations: 98 kB / 0.5239 GB, free: 4.832 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.361e-06/0.7213, allocations: 4 kB / 0.5239 GB, free: 4.828 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001283/0.7214, allocations: 27.48 kB / 0.5239 GB, free: 4.809 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006907/0.7221, allocations: 66.98 kB / 0.524 GB, free: 4.758 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009468/0.7231, allocations: 442.3 kB / 0.5244 GB, free: 4.324 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000262/0.7233, allocations: 0.7356 MB / 0.5251 GB, free: 3.566 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.749e-05/0.7235, allocations: 26.61 kB / 0.5252 GB, free: 3.543 MB / 330.7 MB Notification: Performance of SimCode: time 8.32e-07/0.7235, allocations: 4 kB / 0.5252 GB, free: 3.539 MB / 330.7 MB Notification: Performance of Templates: time 0.008176/0.7317, allocations: 2.939 MB / 0.528 GB, free: 0.6172 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches