Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.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.RealSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="backSample1.y|sample.y|shiftSample1.y|time",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="backSample1.y|sample.y|shiftSample1.y|time",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002077/0.002076, allocations: 177.7 kB / 8.406 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.056/2.056, allocations: 205.3 MB / 214.1 MB, free: 1.734 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.001071/0.001071, allocations: 74.3 kB / 262.1 MB, free: 1.695 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.09678/0.09678, allocations: 12.6 MB / 322.7 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.997e-05/2.995e-05, allocations: 4 kB / 378.9 MB, free: 6.895 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3394/0.3394, allocations: 50.37 MB / 429.3 MB, free: 18.41 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1355/0.475, allocations: 77.69 MB / 0.4951 GB, free: 4.617 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002985/0.4754, allocations: 79.95 kB / 0.4952 GB, free: 4.539 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006624/0.482, allocations: 1.549 MB / 0.4967 GB, free: 2.988 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.4821, allocations: 0 / 0.4967 GB, free: 2.988 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.302e-05/0.4821, allocations: 0 / 0.4967 GB, free: 2.988 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0004717/0.4826, allocations: 362.2 kB / 0.497 GB, free: 2.59 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.366e-05/0.4826, allocations: 12.03 kB / 0.497 GB, free: 2.578 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.573e-05/0.4827, allocations: 11.91 kB / 0.497 GB, free: 2.566 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002857/0.483, allocations: 201.3 kB / 0.4972 GB, free: 2.332 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.394e-05/0.483, allocations: 7.953 kB / 0.4972 GB, free: 2.324 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.957e-05/0.4831, allocations: 4 kB / 0.4972 GB, free: 2.32 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001191/0.4832, allocations: 19.94 kB / 0.4973 GB, free: 2.301 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002913/0.4835, allocations: 122.7 kB / 0.4974 GB, free: 2.156 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.28e-05/0.4835, allocations: 0 / 0.4974 GB, free: 2.156 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.613e-05/0.4836, allocations: 11.94 kB / 0.4974 GB, free: 2.145 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.652e-06/0.4836, allocations: 0 / 0.4974 GB, free: 2.145 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005077/0.4841, allocations: 268 kB / 0.4977 GB, free: 1.836 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000137/0.4842, allocations: 86.44 kB / 0.4977 GB, free: 1.715 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.621e-05/0.4843, allocations: 39.48 kB / 0.4978 GB, free: 1.664 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.218e-05/0.4844, allocations: 4 kB / 0.4978 GB, free: 1.66 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.823e-05/0.4844, allocations: 34.56 kB / 0.4978 GB, free: 1.617 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 2.565e-06/0.4844, allocations: 0 / 0.4978 GB, free: 1.617 MB / 346.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002546/0.4847, allocations: 73.44 kB / 0.4979 GB, free: 1.539 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.019e-05/0.4848, allocations: 136.5 kB / 0.498 GB, free: 1.375 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001854/0.485, allocations: 133.8 kB / 0.4981 GB, free: 1.23 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.028e-05/0.485, allocations: 25.7 kB / 0.4982 GB, free: 1.199 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.417e-05/0.4851, allocations: 154.8 kB / 0.4983 GB, free: 1.043 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.959e-05/0.4851, allocations: 4 kB / 0.4983 GB, free: 1.039 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.999e-06/0.4852, allocations: 0 / 0.4983 GB, free: 1.039 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001153/0.4853, allocations: 314.8 kB / 0.4986 GB, free: 0.7227 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.929e-05/0.4853, allocations: 4 kB / 0.4986 GB, free: 0.7188 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.952e-05/0.4854, allocations: 53.08 kB / 0.4987 GB, free: 0.6484 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.857e-05/0.4855, allocations: 12 kB / 0.4987 GB, free: 0.6367 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.297e-06/0.4855, allocations: 3.938 kB / 0.4987 GB, free: 0.6328 MB / 346.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001607/0.4856, allocations: 65.58 kB / 0.4987 GB, free: 0.5625 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.194e-05/0.4857, allocations: 8 kB / 0.4988 GB, free: 0.5547 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.495e-06/0.4857, allocations: 0 / 0.4988 GB, free: 0.5547 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.055e-05/0.4857, allocations: 4 kB / 0.4988 GB, free: 0.5508 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001589/0.4859, allocations: 11.98 kB / 0.4988 GB, free: 0.5391 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.971e-06/0.4859, allocations: 7.938 kB / 0.4988 GB, free: 0.5312 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.525e-05/0.486, allocations: 7.906 kB / 0.4988 GB, free: 0.5234 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.345e-05/0.486, allocations: 4 kB / 0.4988 GB, free: 0.5195 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 6 * 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 9.005e-05/0.4861, allocations: 113.1 kB / 0.4989 GB, free: 412 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001431/0.4863, allocations: 65.48 kB / 0.499 GB, free: 340 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.462e-05/0.4864, allocations: 15.95 kB / 0.499 GB, free: 328 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.569e-06/0.4864, allocations: 0 / 0.499 GB, free: 328 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.046e-06/0.4864, allocations: 4 kB / 0.499 GB, free: 324 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.529e-06/0.4864, allocations: 0 / 0.499 GB, free: 324 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002156/0.4866, allocations: 150.2 kB / 0.4991 GB, free: 136 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.679e-06/0.4866, allocations: 7.922 kB / 0.4991 GB, free: 128 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001287/0.4868, allocations: 16.09 kB / 0.4991 GB, free: 112 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.839e-06/0.4868, allocations: 0 / 0.4991 GB, free: 112 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.661e-05/0.4868, allocations: 7.953 kB / 0.4991 GB, free: 104 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.835e-06/0.4868, allocations: 0 / 0.4991 GB, free: 104 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.634e-06/0.4869, allocations: 7.922 kB / 0.4992 GB, free: 96 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002616/0.4871, allocations: 220.3 kB / 0.4994 GB, free: 15.84 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.211e-05/0.4872, allocations: 93 kB / 0.4995 GB, free: 15.73 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.153e-05/0.4873, allocations: 0 / 0.4995 GB, free: 15.73 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001255/0.4874, allocations: 4 kB / 0.4995 GB, free: 15.72 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.298e-05/0.4875, allocations: 7.984 kB / 0.4995 GB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.013e-05/0.4875, allocations: 4 kB / 0.4995 GB, free: 15.71 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001117/0.4876, allocations: 119.8 kB / 0.4996 GB, free: 15.59 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.4876, allocations: 0 / 0.4996 GB, free: 15.59 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000357/0.488, allocations: 4 kB / 0.4996 GB, free: 15.59 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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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 Backend phase and start with SimCode phase: time 0.0001234/0.4881, allocations: 99.19 kB / 0.4997 GB, free: 15.48 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001457/0.4883, allocations: 27.94 kB / 0.4997 GB, free: 15.45 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.4883, allocations: 0 / 0.4997 GB, free: 15.45 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.569e-05/0.4883, allocations: 7.984 kB / 0.4997 GB, free: 15.45 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004168/0.4888, allocations: 44.17 kB / 0.4998 GB, free: 15.41 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004283/0.4892, allocations: 156.4 kB / 0.4999 GB, free: 15.22 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000311/0.4895, allocations: 0.7002 MB / 0.5006 GB, free: 14.49 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.668e-05/0.4896, allocations: 11.44 kB / 0.5006 GB, free: 14.48 MB / 362.7 MB Notification: Performance of SimCode: time 9.22e-07/0.4896, allocations: 0 / 0.5006 GB, free: 14.48 MB / 362.7 MB Notification: Performance of Templates: time 0.003551/0.4932, allocations: 0.971 MB / 0.5016 GB, free: 13.52 MB / 362.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches