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.001492/0.001491, allocations: 178.4 kB / 8.405 MB, free: 0.6719 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.099/2.099, allocations: 205.3 MB / 214.1 MB, free: 1.746 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.001098/0.001098, allocations: 94.34 kB / 262.2 MB, free: 1.688 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.102/0.102, allocations: 12.6 MB / 322.7 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.414e-05/2.417e-05, allocations: 4 kB / 378.9 MB, free: 6.902 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3175/0.3175, allocations: 50.37 MB / 429.3 MB, free: 18.41 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1425/0.4601, allocations: 81.21 MB / 0.4985 GB, free: 1.09 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003269/0.4605, allocations: 79.95 kB / 0.4986 GB, free: 1.012 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02743/0.488, allocations: 6.021 MB / 0.5045 GB, free: 10.99 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.883e-06/0.488, allocations: 0 / 0.5045 GB, free: 10.99 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.614e-05/0.4881, allocations: 8 kB / 0.5045 GB, free: 10.98 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.0008786/0.489, allocations: 499.4 kB / 0.505 GB, free: 10.44 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.189e-05/0.489, allocations: 12.03 kB / 0.505 GB, free: 10.43 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.351e-05/0.4891, allocations: 23.72 kB / 0.505 GB, free: 10.41 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006867/0.4898, allocations: 302.4 kB / 0.5053 GB, free: 10.07 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.653e-05/0.4899, allocations: 3.953 kB / 0.5053 GB, free: 10.07 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.383e-05/0.4899, allocations: 8 kB / 0.5053 GB, free: 10.06 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001753/0.4901, allocations: 43.98 kB / 0.5053 GB, free: 10.02 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004192/0.4906, allocations: 165.3 kB / 0.5055 GB, free: 9.824 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.289e-05/0.4906, allocations: 0 / 0.5055 GB, free: 9.824 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.114e-05/0.4906, allocations: 4 kB / 0.5055 GB, free: 9.82 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.208e-06/0.4906, allocations: 3.984 kB / 0.5055 GB, free: 9.816 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008099/0.4915, allocations: 383.8 kB / 0.5059 GB, free: 9.395 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002856/0.4918, allocations: 134.5 kB / 0.506 GB, free: 9.227 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001214/0.4919, allocations: 51.5 kB / 0.506 GB, free: 9.164 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.964e-05/0.492, allocations: 8.062 kB / 0.5061 GB, free: 9.156 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002106/0.4922, allocations: 83.38 kB / 0.5061 GB, free: 9.062 MB / 362.7 MB Notification: Performance of pre-optimization done (n=11): time 3.957e-06/0.4922, allocations: 0 / 0.5061 GB, free: 9.062 MB / 362.7 MB Notification: Performance of matching and sorting (n=11): time 0.0004304/0.4926, allocations: 129.3 kB / 0.5063 GB, free: 8.93 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001295/0.4928, allocations: 192 kB / 0.5064 GB, free: 8.699 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005146/0.4933, allocations: 290.3 kB / 0.5067 GB, free: 8.414 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.782e-05/0.4934, allocations: 29.7 kB / 0.5067 GB, free: 8.379 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001233/0.4935, allocations: 182.8 kB / 0.5069 GB, free: 8.195 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.766e-05/0.4935, allocations: 15.81 kB / 0.5069 GB, free: 8.18 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.767e-06/0.4936, allocations: 0 / 0.5069 GB, free: 8.18 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001323/0.4937, allocations: 314.8 kB / 0.5072 GB, free: 7.863 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.98e-05/0.4938, allocations: 20 kB / 0.5073 GB, free: 7.844 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001626/0.494, allocations: 108.6 kB / 0.5074 GB, free: 7.707 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000108/0.4941, allocations: 39.88 kB / 0.5074 GB, free: 7.668 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.4941, allocations: 3.938 kB / 0.5074 GB, free: 7.664 MB / 362.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002914/0.4944, allocations: 113.5 kB / 0.5075 GB, free: 7.547 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.205e-05/0.4945, allocations: 4 kB / 0.5075 GB, free: 7.543 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.4945, allocations: 0 / 0.5075 GB, free: 7.543 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.262e-05/0.4945, allocations: 4 kB / 0.5075 GB, free: 7.539 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002144/0.4947, allocations: 19.98 kB / 0.5075 GB, free: 7.52 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.288e-06/0.4948, allocations: 8.125 kB / 0.5075 GB, free: 7.512 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001633/0.4949, allocations: 11.94 kB / 0.5076 GB, free: 7.5 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.99e-05/0.495, allocations: 4 kB / 0.5076 GB, free: 7.496 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 0.0001407/0.4951, allocations: 120.9 kB / 0.5077 GB, free: 7.371 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001632/0.4953, allocations: 69.36 kB / 0.5077 GB, free: 7.297 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003544/0.4957, allocations: 115.5 kB / 0.5078 GB, free: 7.172 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.845e-06/0.4957, allocations: 8.094 kB / 0.5079 GB, free: 7.164 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.969e-05/0.4957, allocations: 0 / 0.5079 GB, free: 7.164 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.957e-06/0.4957, allocations: 4 kB / 0.5079 GB, free: 7.16 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003237/0.4961, allocations: 234 kB / 0.5081 GB, free: 6.895 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.4961, allocations: 3.938 kB / 0.5081 GB, free: 6.891 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001431/0.4963, allocations: 12 kB / 0.5081 GB, free: 6.879 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.273e-05/0.4963, allocations: 7.953 kB / 0.5081 GB, free: 6.871 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.799e-05/0.4963, allocations: 3.984 kB / 0.5081 GB, free: 6.867 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.781e-06/0.4963, allocations: 4.125 kB / 0.5081 GB, free: 6.863 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.421e-06/0.4963, allocations: 4 kB / 0.5081 GB, free: 6.859 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003829/0.4967, allocations: 216.4 kB / 0.5083 GB, free: 6.602 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001873/0.4969, allocations: 124.8 kB / 0.5084 GB, free: 6.461 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.421e-05/0.497, allocations: 4 kB / 0.5084 GB, free: 6.457 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001298/0.4971, allocations: 11.94 kB / 0.5085 GB, free: 6.445 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.386e-05/0.4972, allocations: 7.984 kB / 0.5085 GB, free: 6.438 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.582e-05/0.4973, allocations: 7.984 kB / 0.5085 GB, free: 6.43 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003672/0.4976, allocations: 234 kB / 0.5087 GB, free: 6.199 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.4976, allocations: 0 / 0.5087 GB, free: 6.199 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004595/0.4981, allocations: 43.94 kB / 0.5087 GB, free: 6.156 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.001112/0.4992, allocations: 365.4 kB / 0.5091 GB, free: 5.805 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003354/0.4996, allocations: 91.88 kB / 0.5092 GB, free: 5.715 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.334e-06/0.4996, allocations: 4 kB / 0.5092 GB, free: 5.711 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001004/0.4997, allocations: 28 kB / 0.5092 GB, free: 5.684 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006095/0.5004, allocations: 69.38 kB / 0.5093 GB, free: 5.613 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008339/0.5012, allocations: 331.2 kB / 0.5096 GB, free: 5.25 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004082/0.5016, allocations: 0.7516 MB / 0.5103 GB, free: 4.469 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.831e-05/0.5017, allocations: 19.44 kB / 0.5103 GB, free: 4.453 MB / 362.7 MB Notification: Performance of SimCode: time 1.173e-06/0.5018, allocations: 7.875 kB / 0.5103 GB, free: 4.445 MB / 362.7 MB Notification: Performance of Templates: time 0.008664/0.5104, allocations: 3.115 MB / 0.5134 GB, free: 1.328 MB / 362.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/jenkins1/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