Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.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.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001618/0.001618, allocations: 181 kB / 13.7 MB, free: 1.625 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.093/2.093, allocations: 205.2 MB / 219.4 MB, free: 14.2 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.001097/0.001096, allocations: 78.72 kB / 267.6 MB, free: 14.03 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1032/0.1032, allocations: 12.61 MB / 328.2 MB, free: 11.13 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.98e-05/5.004e-05, allocations: 4 kB / 386 MB, free: 1.281 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3483/0.3484, allocations: 50.37 MB / 436.4 MB, free: 14.14 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1471/0.4956, allocations: 78.27 MB / 0.5026 GB, free: 15.77 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002984/0.496, allocations: 71.95 kB / 0.5026 GB, free: 15.7 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008841/0.5048, allocations: 1.997 MB / 0.5046 GB, free: 13.69 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.5049, allocations: 0 / 0.5046 GB, free: 13.69 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.446e-05/0.5049, allocations: 0 / 0.5046 GB, free: 13.69 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004883/0.5054, allocations: 350.4 kB / 0.5049 GB, free: 13.3 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.077e-05/0.5055, allocations: 8.031 kB / 0.5049 GB, free: 13.3 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.6e-05/0.5055, allocations: 7.906 kB / 0.5049 GB, free: 13.29 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002788/0.5058, allocations: 202.7 kB / 0.5051 GB, free: 13.05 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.569e-05/0.5059, allocations: 8 kB / 0.5051 GB, free: 13.04 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.48e-05/0.5059, allocations: 0 / 0.5051 GB, free: 13.04 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003125/0.5062, allocations: 109.8 kB / 0.5052 GB, free: 12.91 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.555e-05/0.5062, allocations: 7.938 kB / 0.5052 GB, free: 12.91 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.357e-05/0.5063, allocations: 0 / 0.5052 GB, free: 12.91 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.911e-06/0.5063, allocations: 0 / 0.5052 GB, free: 12.91 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.26e-05/0.5064, allocations: 16 kB / 0.5053 GB, free: 12.89 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004943/0.5069, allocations: 286.5 kB / 0.5055 GB, free: 12.55 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001187/0.507, allocations: 67.86 kB / 0.5056 GB, free: 12.46 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.207e-05/0.5071, allocations: 30.58 kB / 0.5056 GB, free: 12.42 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.745e-05/0.5071, allocations: 0 / 0.5056 GB, free: 12.42 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.237e-05/0.5072, allocations: 34.56 kB / 0.5057 GB, free: 12.38 MB / 362.7 MB Notification: Performance of pre-optimization done (n=4): time 1.643e-06/0.5072, allocations: 0 / 0.5057 GB, free: 12.38 MB / 362.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002281/0.5074, allocations: 61.53 kB / 0.5057 GB, free: 12.31 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.577e-05/0.5075, allocations: 110.8 kB / 0.5058 GB, free: 12.18 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001644/0.5077, allocations: 132.7 kB / 0.5059 GB, free: 12.04 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.409e-05/0.5077, allocations: 29.7 kB / 0.506 GB, free: 12.01 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.335e-05/0.5078, allocations: 154.6 kB / 0.5061 GB, free: 11.86 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.888e-05/0.5078, allocations: 4 kB / 0.5061 GB, free: 11.85 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.479e-06/0.5079, allocations: 4.094 kB / 0.5061 GB, free: 11.85 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000127/0.508, allocations: 314.8 kB / 0.5064 GB, free: 11.53 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.778e-05/0.508, allocations: 8 kB / 0.5064 GB, free: 11.52 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.722e-05/0.5081, allocations: 27.42 kB / 0.5065 GB, free: 11.48 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.22e-05/0.5081, allocations: 12 kB / 0.5065 GB, free: 11.47 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.5082, allocations: 7.875 kB / 0.5065 GB, free: 11.46 MB / 362.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001603/0.5083, allocations: 61.53 kB / 0.5065 GB, free: 11.4 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.961e-05/0.5084, allocations: 7.938 kB / 0.5065 GB, free: 11.39 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.772e-06/0.5084, allocations: 96 / 0.5065 GB, free: 11.39 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.914e-05/0.5084, allocations: 7.984 kB / 0.5066 GB, free: 11.38 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000142/0.5086, allocations: 15.98 kB / 0.5066 GB, free: 11.37 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.497e-06/0.5086, allocations: 3.984 kB / 0.5066 GB, free: 11.36 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.2e-05/0.5087, allocations: 8.125 kB / 0.5066 GB, free: 11.36 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.008e-05/0.5087, allocations: 0 / 0.5066 GB, free: 11.36 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (4): * Single equations (assignments): 4 * 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 8.586e-05/0.5088, allocations: 116.7 kB / 0.5067 GB, free: 11.23 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001199/0.5089, allocations: 53.53 kB / 0.5067 GB, free: 11.18 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.736e-05/0.509, allocations: 11.66 kB / 0.5068 GB, free: 11.17 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.792e-06/0.509, allocations: 4 kB / 0.5068 GB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.73e-06/0.509, allocations: 0 / 0.5068 GB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.509, allocations: 0 / 0.5068 GB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002334/0.5093, allocations: 173.6 kB / 0.5069 GB, free: 10.95 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.811e-06/0.5093, allocations: 8.047 kB / 0.5069 GB, free: 10.94 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001114/0.5094, allocations: 8 kB / 0.5069 GB, free: 10.93 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.29e-06/0.5094, allocations: 0 / 0.5069 GB, free: 10.93 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.346e-05/0.5094, allocations: 4 kB / 0.5069 GB, free: 10.93 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.5095, allocations: 0 / 0.5069 GB, free: 10.93 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.5095, allocations: 0 / 0.5069 GB, free: 10.93 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002331/0.5097, allocations: 203.6 kB / 0.5071 GB, free: 10.7 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.898e-05/0.5098, allocations: 92.94 kB / 0.5072 GB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.399e-05/0.5098, allocations: 4 kB / 0.5072 GB, free: 10.58 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001087/0.51, allocations: 8 kB / 0.5072 GB, free: 10.57 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.27e-05/0.51, allocations: 0 / 0.5072 GB, free: 10.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.104e-05/0.51, allocations: 3.953 kB / 0.5072 GB, free: 10.57 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001154/0.5102, allocations: 115.9 kB / 0.5074 GB, free: 10.46 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.2e-07/0.5102, allocations: 0 / 0.5074 GB, free: 10.46 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002934/0.5105, allocations: 8 kB / 0.5074 GB, free: 10.45 MB / 362.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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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.0001242/0.5106, allocations: 91.25 kB / 0.5074 GB, free: 10.35 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001288/0.5107, allocations: 23.94 kB / 0.5075 GB, free: 10.32 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.554e-06/0.5108, allocations: 0 / 0.5075 GB, free: 10.32 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.578e-05/0.5108, allocations: 4 kB / 0.5075 GB, free: 10.32 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000339/0.5111, allocations: 24.45 kB / 0.5075 GB, free: 10.3 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003811/0.5115, allocations: 152.4 kB / 0.5076 GB, free: 10.11 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003111/0.5119, allocations: 0.6965 MB / 0.5083 GB, free: 9.391 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.259e-05/0.5119, allocations: 11.44 kB / 0.5083 GB, free: 9.383 MB / 362.7 MB Notification: Performance of SimCode: time 1.232e-06/0.5119, allocations: 0 / 0.5083 GB, free: 9.383 MB / 362.7 MB Notification: Performance of Templates: time 0.002918/0.5149, allocations: 0.7944 MB / 0.5091 GB, free: 8.59 MB / 362.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches