Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.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.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00167/0.00167, 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.143/2.143, 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.001072/0.001071, allocations: 82.7 kB / 267.6 MB, free: 14.04 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.09569/0.09569, allocations: 12.6 MB / 328.2 MB, free: 11.16 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.93e-05/3.961e-05, allocations: 8 kB / 386 MB, free: 1.301 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2965/0.2965, allocations: 50.37 MB / 436.3 MB, free: 14.16 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1387/0.4353, allocations: 78.43 MB / 0.5027 GB, free: 15.63 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000313/0.4357, allocations: 75.95 kB / 0.5028 GB, free: 15.55 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006595/0.4423, allocations: 1.547 MB / 0.5043 GB, free: 14 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.4423, allocations: 0 / 0.5043 GB, free: 14 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.237e-05/0.4424, allocations: 0 / 0.5043 GB, free: 14 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0004513/0.4428, allocations: 350.4 kB / 0.5046 GB, free: 13.61 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.454e-05/0.4429, allocations: 12.03 kB / 0.5046 GB, free: 13.6 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.637e-05/0.4429, allocations: 15.75 kB / 0.5047 GB, free: 13.59 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002538/0.4432, allocations: 203.3 kB / 0.5048 GB, free: 13.34 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.511e-05/0.4432, allocations: 7.953 kB / 0.5049 GB, free: 13.34 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.632e-05/0.4433, allocations: 4 kB / 0.5049 GB, free: 13.33 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003257/0.4436, allocations: 130.7 kB / 0.505 GB, free: 13.18 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.247e-05/0.4436, allocations: 4 kB / 0.505 GB, free: 13.18 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.195e-05/0.4436, allocations: 4 kB / 0.505 GB, free: 13.17 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/0.4437, allocations: 0 / 0.505 GB, free: 13.17 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.805e-05/0.4437, allocations: 19.94 kB / 0.505 GB, free: 13.15 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005461/0.4443, allocations: 374.7 kB / 0.5054 GB, free: 12.73 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001378/0.4445, allocations: 83.62 kB / 0.5054 GB, free: 12.61 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.848e-05/0.4446, allocations: 43.48 kB / 0.5055 GB, free: 12.55 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.286e-05/0.4446, allocations: 7.984 kB / 0.5055 GB, free: 12.55 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.426e-05/0.4447, allocations: 42.5 kB / 0.5055 GB, free: 12.5 MB / 362.7 MB Notification: Performance of pre-optimization done (n=6): time 2.094e-06/0.4447, allocations: 0 / 0.5055 GB, free: 12.5 MB / 362.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002721/0.445, allocations: 69.53 kB / 0.5056 GB, free: 12.42 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.649e-05/0.4451, allocations: 140.6 kB / 0.5057 GB, free: 12.25 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000169/0.4453, allocations: 129.5 kB / 0.5059 GB, free: 12.12 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.382e-05/0.4453, allocations: 25.7 kB / 0.5059 GB, free: 12.09 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.812e-05/0.4454, allocations: 162.7 kB / 0.506 GB, free: 11.93 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.109e-05/0.4454, allocations: 3.906 kB / 0.506 GB, free: 11.93 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.296e-06/0.4454, allocations: 4 kB / 0.506 GB, free: 11.92 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001308/0.4456, allocations: 310.8 kB / 0.5063 GB, free: 11.61 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.047e-05/0.4456, allocations: 15.98 kB / 0.5064 GB, free: 11.59 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.975e-05/0.4457, allocations: 40.3 kB / 0.5064 GB, free: 11.54 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.808e-05/0.4458, allocations: 7.953 kB / 0.5064 GB, free: 11.53 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.4458, allocations: 0 / 0.5064 GB, free: 11.53 MB / 362.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001729/0.446, allocations: 77.55 kB / 0.5065 GB, free: 11.45 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.249e-05/0.446, allocations: 8 kB / 0.5065 GB, free: 11.44 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.446, allocations: 3.984 kB / 0.5065 GB, free: 11.44 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.674e-05/0.446, allocations: 4 kB / 0.5065 GB, free: 11.43 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001522/0.4462, allocations: 8 kB / 0.5065 GB, free: 11.43 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.193e-05/0.4462, allocations: 4 kB / 0.5065 GB, free: 11.42 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.723e-05/0.4463, allocations: 11.89 kB / 0.5065 GB, free: 11.41 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.287e-05/0.4464, allocations: 12.09 kB / 0.5065 GB, free: 11.4 MB / 362.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: 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.294e-05/0.4465, allocations: 116.7 kB / 0.5066 GB, free: 11.28 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001382/0.4466, allocations: 49.61 kB / 0.5067 GB, free: 11.22 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.983e-05/0.4467, allocations: 19.58 kB / 0.5067 GB, free: 11.2 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.474e-06/0.4467, allocations: 4 kB / 0.5067 GB, free: 11.2 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.4467, allocations: 0 / 0.5067 GB, free: 11.2 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.658e-06/0.4467, allocations: 0 / 0.5067 GB, free: 11.2 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003073/0.447, allocations: 177.6 kB / 0.5069 GB, free: 10.98 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.253e-06/0.4471, allocations: 7.953 kB / 0.5069 GB, free: 10.97 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001158/0.4472, allocations: 16.05 kB / 0.5069 GB, free: 10.95 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-05/0.4472, allocations: 4 kB / 0.5069 GB, free: 10.95 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.052e-05/0.4472, allocations: 0 / 0.5069 GB, free: 10.95 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.518e-06/0.4472, allocations: 7.938 kB / 0.5069 GB, free: 10.94 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.4473, allocations: 0 / 0.5069 GB, free: 10.94 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002905/0.4476, allocations: 300.6 kB / 0.5072 GB, free: 10.61 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.531e-05/0.4477, allocations: 93 kB / 0.5073 GB, free: 10.5 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.492e-05/0.4477, allocations: 4.172 kB / 0.5073 GB, free: 10.5 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001465/0.4479, allocations: 8 kB / 0.5073 GB, free: 10.49 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.805e-05/0.4479, allocations: 4 kB / 0.5073 GB, free: 10.48 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.818e-06/0.4479, allocations: 8 kB / 0.5073 GB, free: 10.48 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001171/0.4481, allocations: 112.5 kB / 0.5074 GB, free: 10.37 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.4481, allocations: 3.938 kB / 0.5074 GB, free: 10.36 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003404/0.4484, allocations: 8 kB / 0.5074 GB, free: 10.36 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.00012/0.4486, allocations: 91.25 kB / 0.5075 GB, free: 10.26 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001512/0.4487, allocations: 39.92 kB / 0.5076 GB, free: 10.22 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.4488, allocations: 0 / 0.5076 GB, free: 10.22 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.041e-05/0.4488, allocations: 16.25 kB / 0.5076 GB, free: 10.2 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004019/0.4492, allocations: 24.58 kB / 0.5076 GB, free: 10.18 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004321/0.4497, allocations: 161.5 kB / 0.5077 GB, free: 9.98 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003437/0.45, allocations: 0.7043 MB / 0.5084 GB, free: 9.25 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.454e-05/0.4501, allocations: 7.75 kB / 0.5084 GB, free: 9.242 MB / 362.7 MB Notification: Performance of SimCode: time 1.042e-06/0.4501, allocations: 4 kB / 0.5084 GB, free: 9.238 MB / 362.7 MB Notification: Performance of Templates: time 0.003142/0.4532, allocations: 0.8985 MB / 0.5093 GB, free: 8.336 MB / 362.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches