Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.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.IntegerSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|backSample1.y|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|backSample1.y|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001518/0.001518, allocations: 174.9 kB / 16.45 MB, free: 5.684 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.581/1.581, allocations: 205.4 MB / 222.6 MB, free: 9.113 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.0007451/0.0007449, allocations: 82.3 kB / 270.9 MB, free: 8.355 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.06881/0.06881, allocations: 12.6 MB / 331.8 MB, free: 11.38 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003681/0.0003681, allocations: 12 kB / 392 MB, free: 66.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.069/0.06938, allocations: 50.37 MB / 442.4 MB, free: 16.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample): time 0.001631/0.07106, allocations: 1.567 MB / 443.9 MB, free: 14.87 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001156/0.07223, allocations: 1.015 MB / 445 MB, free: 13.85 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001003/0.07235, allocations: 4 kB / 445 MB, free: 13.84 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002466/0.0726, allocations: 63.72 kB / 445 MB, free: 13.78 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001651/0.07278, allocations: 67.73 kB / 445.1 MB, free: 13.71 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004826/0.07327, allocations: 215.5 kB / 445.3 MB, free: 13.5 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001467/0.07343, allocations: 159.5 kB / 445.5 MB, free: 13.35 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.348e-05/0.07352, allocations: 25.55 kB / 445.5 MB, free: 13.32 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.495e-05/0.0736, allocations: 63.72 kB / 445.5 MB, free: 13.26 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.586e-05/0.07368, allocations: 67.67 kB / 445.6 MB, free: 13.2 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.979e-05/0.07371, allocations: 4 kB / 445.6 MB, free: 13.19 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.815e-05/0.07381, allocations: 51.91 kB / 445.7 MB, free: 13.14 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.058e-05/0.07387, allocations: 43.83 kB / 445.7 MB, free: 13.1 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.718e-05/0.07392, allocations: 61.58 kB / 445.8 MB, free: 13.03 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001559/0.07408, allocations: 171.9 kB / 445.9 MB, free: 12.86 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.07409, allocations: 7.938 kB / 445.9 MB, free: 12.86 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.07409, allocations: 0 / 445.9 MB, free: 12.86 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.828e-06/0.0741, allocations: 0 / 445.9 MB, free: 12.86 MB / 298.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.0004985/0.07461, allocations: 0.5038 MB / 446.4 MB, free: 12.3 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.885e-05/0.07464, allocations: 8.031 kB / 446.5 MB, free: 12.29 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.759e-05/0.0747, allocations: 27.62 kB / 446.5 MB, free: 12.26 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002501/0.07495, allocations: 286.5 kB / 446.8 MB, free: 11.94 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.665e-05/0.07498, allocations: 4 kB / 446.8 MB, free: 11.93 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.562e-05/0.075, allocations: 11.98 kB / 446.8 MB, free: 11.92 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002853/0.07529, allocations: 181.7 kB / 447 MB, free: 11.71 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.604e-06/0.07531, allocations: 0 / 447 MB, free: 11.71 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.3e-05/0.07533, allocations: 0 / 447 MB, free: 11.71 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.07534, allocations: 0 / 447 MB, free: 11.71 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001095/0.07545, allocations: 43.91 kB / 447 MB, free: 11.67 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000376/0.07584, allocations: 395.2 kB / 447.4 MB, free: 11.23 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002069/0.07606, allocations: 146.5 kB / 447.5 MB, free: 11.05 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.113e-05/0.07615, allocations: 63.39 kB / 447.6 MB, free: 10.97 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.302e-05/0.07618, allocations: 0 / 447.6 MB, free: 10.97 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001682/0.07635, allocations: 91.38 kB / 447.7 MB, free: 10.87 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 1.463e-06/0.07636, allocations: 0 / 447.7 MB, free: 10.87 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003271/0.0767, allocations: 165.3 kB / 447.8 MB, free: 10.7 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.128e-05/0.07676, allocations: 204.1 kB / 448 MB, free: 10.46 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002415/0.07701, allocations: 330.6 kB / 448.4 MB, free: 10.13 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.432e-05/0.07703, allocations: 37.69 kB / 448.4 MB, free: 10.09 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.188e-05/0.07709, allocations: 120.4 kB / 448.5 MB, free: 9.965 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.769e-05/0.07711, allocations: 19.75 kB / 448.5 MB, free: 9.945 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.661e-06/0.07712, allocations: 4 kB / 448.5 MB, free: 9.941 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.538e-05/0.07717, allocations: 334.8 kB / 448.9 MB, free: 9.605 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.317e-05/0.07724, allocations: 23.98 kB / 448.9 MB, free: 9.582 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.339e-05/0.07733, allocations: 100.6 kB / 449 MB, free: 9.453 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.58e-05/0.07741, allocations: 39.92 kB / 449 MB, free: 9.414 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.07742, allocations: 4 kB / 449 MB, free: 9.41 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001969/0.07763, allocations: 129.4 kB / 449.2 MB, free: 9.277 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.073e-05/0.07764, allocations: 4 kB / 449.2 MB, free: 9.273 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.049e-06/0.07765, allocations: 4 kB / 449.2 MB, free: 9.27 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.087e-05/0.07767, allocations: 0 / 449.2 MB, free: 9.27 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001033/0.07778, allocations: 27.92 kB / 449.2 MB, free: 9.242 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.66e-06/0.07779, allocations: 4.188 kB / 449.2 MB, free: 9.238 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.94e-05/0.07788, allocations: 23.84 kB / 449.2 MB, free: 9.215 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.097e-06/0.07789, allocations: 4 kB / 449.2 MB, free: 9.211 MB / 298.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,table.y,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 () * Number of clocked 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 0.000101/0.078, allocations: 157.5 kB / 449.4 MB, free: 9.047 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.785e-05/0.07808, allocations: 81.28 kB / 449.5 MB, free: 8.961 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.718e-05/0.07814, allocations: 25.7 kB / 449.5 MB, free: 8.938 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.456e-06/0.07815, allocations: 4 kB / 449.5 MB, free: 8.934 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.07816, allocations: 4.094 kB / 449.5 MB, free: 8.93 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.07817, allocations: 4 kB / 449.5 MB, free: 8.926 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000141/0.07831, allocations: 249.5 kB / 449.7 MB, free: 8.633 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.07832, allocations: 0 / 449.7 MB, free: 8.633 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.04e-05/0.0784, allocations: 15.98 kB / 449.7 MB, free: 8.617 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.867e-06/0.07841, allocations: 4 kB / 449.8 MB, free: 8.613 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.053e-05/0.07842, allocations: 0 / 449.8 MB, free: 8.613 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.07843, allocations: 7.938 kB / 449.8 MB, free: 8.605 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.07843, allocations: 320 / 449.8 MB, free: 8.605 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002202/0.07866, allocations: 183.3 kB / 449.9 MB, free: 8.398 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.04e-05/0.07874, allocations: 116.8 kB / 450.1 MB, free: 8.266 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.931e-05/0.07878, allocations: 12 kB / 450.1 MB, free: 8.254 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.112e-05/0.07885, allocations: 7.984 kB / 450.1 MB, free: 8.246 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.186e-05/0.0789, allocations: 11.98 kB / 450.1 MB, free: 8.234 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.417e-05/0.07892, allocations: 8 kB / 450.1 MB, free: 8.227 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001755/0.0791, allocations: 245.9 kB / 450.3 MB, free: 7.984 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.07911, allocations: 0 / 450.3 MB, free: 7.984 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002428/0.07936, allocations: 36 kB / 450.4 MB, free: 7.949 MB / 298.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,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,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 (11): * Single equations (assignments): 9 * 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.0007504/0.08011, allocations: 429.2 kB / 450.8 MB, free: 7.52 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002013/0.08033, allocations: 84.16 kB / 450.9 MB, free: 7.438 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.08034, allocations: 4.125 kB / 450.9 MB, free: 7.434 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.475e-05/0.08041, allocations: 27.92 kB / 450.9 MB, free: 7.406 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003718/0.08079, allocations: 76.78 kB / 451 MB, free: 7.328 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005103/0.08131, allocations: 459.2 kB / 451.4 MB, free: 6.844 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001695/0.08149, allocations: 0.7478 MB / 452.2 MB, free: 6.07 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.105e-05/0.08155, allocations: 23.44 kB / 452.2 MB, free: 6.051 MB / 298.7 MB Notification: Performance of SimCode: time 2.81e-07/0.08155, allocations: 0 / 452.2 MB, free: 6.051 MB / 298.7 MB Notification: Performance of Templates: time 0.004114/0.08567, allocations: 3.062 MB / 455.3 MB, free: 2.98 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches