Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.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.BooleanSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hold.y|sample.y|shiftSample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hold.y|sample.y|shiftSample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001483/0.001482, allocations: 179.4 kB / 8.407 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.104/2.104, allocations: 205.3 MB / 214.1 MB, free: 1.668 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.001109/0.001109, allocations: 82.7 kB / 262.2 MB, free: 1.617 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.09954/0.09954, allocations: 12.6 MB / 322.7 MB, free: 15.19 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.202e-05/2.2e-05, allocations: 4 kB / 378.9 MB, free: 6.887 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3201/0.3201, allocations: 50.37 MB / 429.3 MB, free: 18.43 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1469/0.4671, allocations: 81.18 MB / 0.4985 GB, free: 1.129 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003294/0.4675, allocations: 75.95 kB / 0.4986 GB, free: 1.055 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02703/0.4946, allocations: 5.83 MB / 0.5043 GB, free: 11.23 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.943e-06/0.4946, allocations: 4 kB / 0.5043 GB, free: 11.22 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.045e-05/0.4947, allocations: 4 kB / 0.5043 GB, free: 11.22 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.0008076/0.4955, allocations: 479.5 kB / 0.5047 GB, free: 10.7 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.03e-05/0.4956, allocations: 8.031 kB / 0.5047 GB, free: 10.69 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.534e-05/0.4957, allocations: 23.72 kB / 0.5048 GB, free: 10.67 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005685/0.4962, allocations: 257.7 kB / 0.505 GB, free: 10.38 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.603e-05/0.4963, allocations: 7.984 kB / 0.505 GB, free: 10.37 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.836e-05/0.4963, allocations: 7.953 kB / 0.505 GB, free: 10.36 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001803/0.4965, allocations: 40 kB / 0.5051 GB, free: 10.32 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003876/0.4969, allocations: 143.6 kB / 0.5052 GB, free: 10.15 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.22e-05/0.4969, allocations: 0 / 0.5052 GB, free: 10.15 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.905e-05/0.497, allocations: 0 / 0.5052 GB, free: 10.15 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.873e-06/0.497, allocations: 4 kB / 0.5052 GB, free: 10.15 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007658/0.4978, allocations: 431.1 kB / 0.5056 GB, free: 9.68 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002359/0.498, allocations: 122.5 kB / 0.5057 GB, free: 9.523 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001108/0.4982, allocations: 55.55 kB / 0.5058 GB, free: 9.457 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.694e-05/0.4982, allocations: 4.078 kB / 0.5058 GB, free: 9.453 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001986/0.4984, allocations: 96.97 kB / 0.5059 GB, free: 9.34 MB / 362.7 MB Notification: Performance of pre-optimization done (n=11): time 2.845e-06/0.4984, allocations: 0 / 0.5059 GB, free: 9.34 MB / 362.7 MB Notification: Performance of matching and sorting (n=11): time 0.000393/0.4988, allocations: 109.4 kB / 0.506 GB, free: 9.227 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001005/0.4989, allocations: 174.2 kB / 0.5062 GB, free: 9.02 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003907/0.4993, allocations: 236.3 kB / 0.5064 GB, free: 8.785 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.868e-05/0.4994, allocations: 25.7 kB / 0.5064 GB, free: 8.754 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001117/0.4995, allocations: 174.8 kB / 0.5066 GB, free: 8.578 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.236e-05/0.4996, allocations: 19.75 kB / 0.5066 GB, free: 8.559 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.116e-06/0.4996, allocations: 0 / 0.5066 GB, free: 8.559 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001327/0.4997, allocations: 315 kB / 0.5069 GB, free: 8.242 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.109e-05/0.4998, allocations: 20 kB / 0.5069 GB, free: 8.223 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001141/0.4999, allocations: 74.86 kB / 0.507 GB, free: 8.125 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.665e-05/0.5, allocations: 31.98 kB / 0.507 GB, free: 8.094 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.32e-06/0.5001, allocations: 7.984 kB / 0.507 GB, free: 8.086 MB / 362.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002667/0.5003, allocations: 105.5 kB / 0.5071 GB, free: 7.977 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.549e-05/0.5004, allocations: 8 kB / 0.5071 GB, free: 7.969 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.5004, allocations: 0 / 0.5071 GB, free: 7.969 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.153e-05/0.5005, allocations: 4 kB / 0.5071 GB, free: 7.965 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000148/0.5006, allocations: 11.94 kB / 0.5071 GB, free: 7.953 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.172e-05/0.5006, allocations: 7.984 kB / 0.5071 GB, free: 7.945 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001614/0.5008, allocations: 8.156 kB / 0.5072 GB, free: 7.938 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.788e-05/0.5009, allocations: 4 kB / 0.5072 GB, free: 7.934 MB / 362.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: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,sample.u,shiftSample.y,hold.u,hold.y,shiftSample.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.0001172/0.501, allocations: 113.1 kB / 0.5073 GB, free: 7.816 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000147/0.5011, allocations: 73.39 kB / 0.5073 GB, free: 7.738 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003098/0.5015, allocations: 99.5 kB / 0.5074 GB, free: 7.633 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.588e-06/0.5015, allocations: 7.984 kB / 0.5074 GB, free: 7.625 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.5015, allocations: 0 / 0.5074 GB, free: 7.625 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.644e-06/0.5015, allocations: 4 kB / 0.5074 GB, free: 7.621 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002862/0.5018, allocations: 218.1 kB / 0.5076 GB, free: 7.371 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.5018, allocations: 0 / 0.5076 GB, free: 7.371 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.784e-05/0.5019, allocations: 11.94 kB / 0.5077 GB, free: 7.359 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.717e-06/0.5019, allocations: 3.953 kB / 0.5077 GB, free: 7.355 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.045e-05/0.502, allocations: 7.984 kB / 0.5077 GB, free: 7.348 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.447e-06/0.502, allocations: 0 / 0.5077 GB, free: 7.348 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.586e-06/0.502, allocations: 0 / 0.5077 GB, free: 7.348 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003434/0.5023, allocations: 204.5 kB / 0.5079 GB, free: 7.102 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001766/0.5025, allocations: 116.8 kB / 0.508 GB, free: 6.969 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.401e-05/0.5026, allocations: 3.938 kB / 0.508 GB, free: 6.965 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001247/0.5027, allocations: 7.984 kB / 0.508 GB, free: 6.957 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.424e-05/0.5028, allocations: 8 kB / 0.508 GB, free: 6.949 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.177e-05/0.5028, allocations: 7.984 kB / 0.508 GB, free: 6.941 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002759/0.5031, allocations: 188.5 kB / 0.5082 GB, free: 6.754 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.81e-07/0.5031, allocations: 0 / 0.5082 GB, free: 6.754 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00042/0.5036, allocations: 31.94 kB / 0.5082 GB, free: 6.723 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,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,sample.u,hold.y,hold.u,shiftSample.y,sample.y,shiftSample.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.001129/0.5047, allocations: 355.1 kB / 0.5086 GB, free: 6.379 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003462/0.5051, allocations: 83.73 kB / 0.5086 GB, free: 6.297 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.5051, allocations: 0 / 0.5086 GB, free: 6.297 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.877e-05/0.5052, allocations: 27.98 kB / 0.5087 GB, free: 6.27 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005948/0.5058, allocations: 63.64 kB / 0.5087 GB, free: 6.211 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000739/0.5066, allocations: 274.4 kB / 0.509 GB, free: 5.898 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000378/0.507, allocations: 0.7397 MB / 0.5097 GB, free: 5.133 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.915e-05/0.5071, allocations: 23.42 kB / 0.5097 GB, free: 5.109 MB / 362.7 MB Notification: Performance of SimCode: time 1.092e-06/0.5071, allocations: 0 / 0.5097 GB, free: 5.109 MB / 362.7 MB Notification: Performance of Templates: time 0.007984/0.5151, allocations: 2.692 MB / 0.5124 GB, free: 2.422 MB / 362.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches