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.002486/0.002486, allocations: 177.8 kB / 8.403 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.09/2.09, 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.001119/0.001119, allocations: 78.42 kB / 262.1 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.1004/0.1004, allocations: 12.59 MB / 322.7 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.316e-05/3.316e-05, allocations: 4 kB / 378.9 MB, free: 6.895 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3112/0.3113, allocations: 50.38 MB / 429.3 MB, free: 18.42 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.136/0.4474, allocations: 77.76 MB / 0.4952 GB, free: 4.555 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003397/0.4478, allocations: 75.95 kB / 0.4952 GB, free: 4.48 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00645/0.4543, allocations: 1.54 MB / 0.4967 GB, free: 2.938 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.4543, allocations: 0 / 0.4967 GB, free: 2.938 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.371e-05/0.4543, allocations: 4 kB / 0.4967 GB, free: 2.934 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.0004564/0.4548, allocations: 350.4 kB / 0.4971 GB, free: 2.547 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.91e-05/0.4549, allocations: 8.031 kB / 0.4971 GB, free: 2.539 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.726e-05/0.4549, allocations: 15.75 kB / 0.4971 GB, free: 2.523 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002737/0.4552, allocations: 194.8 kB / 0.4973 GB, free: 2.293 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.625e-05/0.4552, allocations: 11.95 kB / 0.4973 GB, free: 2.281 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.559e-05/0.4553, allocations: 0 / 0.4973 GB, free: 2.281 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001199/0.4554, allocations: 35.86 kB / 0.4973 GB, free: 2.246 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002789/0.4557, allocations: 110.8 kB / 0.4974 GB, free: 2.113 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.205e-05/0.4557, allocations: 0 / 0.4974 GB, free: 2.113 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.188e-05/0.4558, allocations: 4 kB / 0.4974 GB, free: 2.109 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.441e-06/0.4558, allocations: 4 kB / 0.4974 GB, free: 2.105 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005145/0.4563, allocations: 347.3 kB / 0.4978 GB, free: 1.719 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001301/0.4565, allocations: 82.44 kB / 0.4979 GB, free: 1.602 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.936e-05/0.4565, allocations: 35.5 kB / 0.4979 GB, free: 1.555 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.961e-05/0.4566, allocations: 11.98 kB / 0.4979 GB, free: 1.543 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.867e-05/0.4566, allocations: 30.56 kB / 0.4979 GB, free: 1.504 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 2.084e-06/0.4566, allocations: 0 / 0.4979 GB, free: 1.504 MB / 346.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002763/0.4569, allocations: 73.47 kB / 0.498 GB, free: 1.426 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.282e-05/0.457, allocations: 136.6 kB / 0.4981 GB, free: 1.262 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001525/0.4572, allocations: 121.5 kB / 0.4982 GB, free: 1.137 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.021e-05/0.4572, allocations: 29.69 kB / 0.4983 GB, free: 1.102 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.589e-05/0.4573, allocations: 162.7 kB / 0.4984 GB, free: 0.9414 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.073e-05/0.4574, allocations: 3.906 kB / 0.4984 GB, free: 0.9375 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.08e-06/0.4574, allocations: 0 / 0.4984 GB, free: 0.9375 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001449/0.4575, allocations: 310.8 kB / 0.4987 GB, free: 0.625 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.148e-05/0.4576, allocations: 8 kB / 0.4987 GB, free: 0.6172 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.833e-05/0.4577, allocations: 44.3 kB / 0.4988 GB, free: 0.5586 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.135e-05/0.4577, allocations: 15.92 kB / 0.4988 GB, free: 0.543 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.4577, allocations: 4 kB / 0.4988 GB, free: 0.5391 MB / 346.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001671/0.4579, allocations: 65.7 kB / 0.4989 GB, free: 480 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.084e-05/0.4579, allocations: 4 kB / 0.4989 GB, free: 476 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.397e-06/0.458, allocations: 4 kB / 0.4989 GB, free: 472 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.783e-05/0.458, allocations: 0 / 0.4989 GB, free: 472 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001669/0.4582, allocations: 15.98 kB / 0.4989 GB, free: 456 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.931e-06/0.4582, allocations: 0 / 0.4989 GB, free: 456 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.745e-05/0.4583, allocations: 7.906 kB / 0.4989 GB, free: 448 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.401e-05/0.4583, allocations: 4 kB / 0.4989 GB, free: 444 kB / 346.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.919e-05/0.4584, allocations: 112.9 kB / 0.499 GB, free: 324 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001475/0.4586, allocations: 57.58 kB / 0.4991 GB, free: 260 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.349e-05/0.4586, allocations: 11.97 kB / 0.4991 GB, free: 248 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.998e-06/0.4587, allocations: 0 / 0.4991 GB, free: 248 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.4587, allocations: 4 kB / 0.4991 GB, free: 244 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.4587, allocations: 3.984 kB / 0.4991 GB, free: 240 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002836/0.459, allocations: 154.2 kB / 0.4992 GB, free: 48 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.387e-06/0.459, allocations: 0 / 0.4992 GB, free: 48 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001283/0.4591, allocations: 19.92 kB / 0.4992 GB, free: 28 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.581e-06/0.4592, allocations: 0 / 0.4992 GB, free: 28 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.378e-05/0.4592, allocations: 12.02 kB / 0.4993 GB, free: 16 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.437e-06/0.4592, allocations: 0 / 0.4993 GB, free: 16 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.4592, allocations: 0 / 0.4993 GB, free: 16 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003212/0.4595, allocations: 290.8 kB / 0.4995 GB, free: 15.69 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001012/0.4597, allocations: 96.98 kB / 0.4996 GB, free: 15.58 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.763e-05/0.4597, allocations: 0 / 0.4996 GB, free: 15.58 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001708/0.4599, allocations: 7.938 kB / 0.4996 GB, free: 15.57 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.856e-05/0.4599, allocations: 4 kB / 0.4996 GB, free: 15.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.095e-05/0.46, allocations: 3.984 kB / 0.4996 GB, free: 15.56 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001493/0.4601, allocations: 116.5 kB / 0.4997 GB, free: 15.45 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.81e-07/0.4602, allocations: 3.938 kB / 0.4998 GB, free: 15.45 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00039/0.4606, allocations: 8 kB / 0.4998 GB, free: 15.44 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.0001341/0.4607, allocations: 95.23 kB / 0.4999 GB, free: 15.34 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001332/0.4609, allocations: 27.94 kB / 0.4999 GB, free: 15.31 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.4609, allocations: 0 / 0.4999 GB, free: 15.31 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.202e-05/0.4609, allocations: 8 kB / 0.4999 GB, free: 15.3 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004227/0.4613, allocations: 31.91 kB / 0.4999 GB, free: 15.27 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004359/0.4618, allocations: 157.4 kB / 0.5001 GB, free: 15.07 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003503/0.4622, allocations: 0.7001 MB / 0.5007 GB, free: 14.35 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.431e-05/0.4622, allocations: 15.42 kB / 0.5008 GB, free: 14.34 MB / 362.7 MB Notification: Performance of SimCode: time 6.92e-07/0.4622, allocations: 0 / 0.5008 GB, free: 14.34 MB / 362.7 MB Notification: Performance of Templates: time 0.003127/0.4654, allocations: 0.8812 MB / 0.5016 GB, free: 13.46 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