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.002602/0.002602, 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.054/2.054, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001126/0.001126, allocations: 86.72 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.09747/0.09747, allocations: 12.6 MB / 328.2 MB, free: 11.16 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.633e-05/3.65e-05, allocations: 4 kB / 386 MB, free: 1.305 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3066/0.3067, allocations: 50.37 MB / 436.3 MB, free: 14.17 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1479/0.4546, allocations: 81.85 MB / 0.5061 GB, free: 12.21 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000289/0.455, allocations: 83.95 kB / 0.5061 GB, free: 12.12 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02722/0.4822, allocations: 5.86 MB / 0.5119 GB, free: 6.258 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.4823, allocations: 4 kB / 0.5119 GB, free: 6.254 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.092e-05/0.4823, allocations: 4 kB / 0.5119 GB, free: 6.25 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.0009704/0.4833, allocations: 483.5 kB / 0.5123 GB, free: 5.727 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.821e-05/0.4834, allocations: 8.031 kB / 0.5123 GB, free: 5.719 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001076/0.4835, allocations: 19.72 kB / 0.5124 GB, free: 5.699 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006699/0.4842, allocations: 261.7 kB / 0.5126 GB, free: 5.406 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.178e-05/0.4842, allocations: 4 kB / 0.5126 GB, free: 5.402 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.55e-05/0.4843, allocations: 11.95 kB / 0.5126 GB, free: 5.391 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004999/0.4848, allocations: 155.6 kB / 0.5128 GB, free: 5.211 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.4848, allocations: 0 / 0.5128 GB, free: 5.211 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.338e-05/0.4849, allocations: 4 kB / 0.5128 GB, free: 5.207 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.844e-06/0.4849, allocations: 4 kB / 0.5128 GB, free: 5.203 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000143/0.485, allocations: 43.86 kB / 0.5128 GB, free: 5.16 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001008/0.4861, allocations: 458.5 kB / 0.5133 GB, free: 4.652 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003406/0.4864, allocations: 134.5 kB / 0.5134 GB, free: 4.484 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001406/0.4866, allocations: 59.48 kB / 0.5134 GB, free: 4.414 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.973e-05/0.4867, allocations: 8 kB / 0.5134 GB, free: 4.406 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000241/0.4869, allocations: 85.05 kB / 0.5135 GB, free: 4.305 MB / 362.7 MB Notification: Performance of pre-optimization done (n=11): time 3.386e-06/0.4869, allocations: 4 kB / 0.5135 GB, free: 4.301 MB / 362.7 MB Notification: Performance of matching and sorting (n=11): time 0.0004879/0.4874, allocations: 125.3 kB / 0.5136 GB, free: 4.172 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001327/0.4876, allocations: 166.3 kB / 0.5138 GB, free: 3.973 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004768/0.4881, allocations: 245 kB / 0.514 GB, free: 3.727 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.285e-05/0.4881, allocations: 25.7 kB / 0.5141 GB, free: 3.695 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001254/0.4883, allocations: 174.8 kB / 0.5142 GB, free: 3.52 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.361e-05/0.4883, allocations: 19.73 kB / 0.5142 GB, free: 3.5 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.047e-05/0.4883, allocations: 4 kB / 0.5143 GB, free: 3.496 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001394/0.4885, allocations: 314.8 kB / 0.5146 GB, free: 3.18 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.076e-05/0.4886, allocations: 31.98 kB / 0.5146 GB, free: 3.148 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001431/0.4888, allocations: 74.81 kB / 0.5147 GB, free: 3.051 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001048/0.4889, allocations: 35.12 kB / 0.5147 GB, free: 3.02 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.743e-06/0.4889, allocations: 4 kB / 0.5147 GB, free: 3.016 MB / 362.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003084/0.4892, allocations: 109.6 kB / 0.5148 GB, free: 2.902 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.207e-05/0.4892, allocations: 8 kB / 0.5148 GB, free: 2.895 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.062e-05/0.4893, allocations: 4 kB / 0.5148 GB, free: 2.891 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.98e-05/0.4893, allocations: 4 kB / 0.5148 GB, free: 2.887 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001599/0.4895, allocations: 15.92 kB / 0.5148 GB, free: 2.871 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.408e-06/0.4895, allocations: 8.156 kB / 0.5148 GB, free: 2.863 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00016/0.4897, allocations: 4 kB / 0.5148 GB, free: 2.859 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.083e-05/0.4897, allocations: 8 kB / 0.5148 GB, free: 2.852 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.0001285/0.4898, allocations: 124.7 kB / 0.515 GB, free: 2.723 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001378/0.49, allocations: 61.45 kB / 0.515 GB, free: 2.656 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003357/0.4903, allocations: 123.5 kB / 0.5151 GB, free: 2.531 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.72e-06/0.4904, allocations: 0 / 0.5151 GB, free: 2.531 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.189e-05/0.4904, allocations: 8.062 kB / 0.5152 GB, free: 2.523 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.755e-06/0.4904, allocations: 0 / 0.5152 GB, free: 2.523 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003372/0.4908, allocations: 241.4 kB / 0.5154 GB, free: 2.238 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.4908, allocations: 0 / 0.5154 GB, free: 2.238 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.068e-05/0.4909, allocations: 8 kB / 0.5154 GB, free: 2.23 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.27e-06/0.4909, allocations: 0 / 0.5154 GB, free: 2.23 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.692e-05/0.4909, allocations: 7.984 kB / 0.5154 GB, free: 2.223 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.266e-06/0.4909, allocations: 0 / 0.5154 GB, free: 2.223 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.85e-06/0.4909, allocations: 4 kB / 0.5154 GB, free: 2.219 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003786/0.4913, allocations: 208.5 kB / 0.5156 GB, free: 1.969 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001649/0.4915, allocations: 116.8 kB / 0.5157 GB, free: 1.836 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.322e-05/0.4916, allocations: 15.92 kB / 0.5157 GB, free: 1.82 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001208/0.4917, allocations: 8 kB / 0.5157 GB, free: 1.812 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.433e-05/0.4918, allocations: 15.94 kB / 0.5157 GB, free: 1.797 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.782e-05/0.4918, allocations: 4 kB / 0.5158 GB, free: 1.793 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003125/0.4921, allocations: 193.4 kB / 0.5159 GB, free: 1.602 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.4921, allocations: 0 / 0.5159 GB, free: 1.602 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003909/0.4925, allocations: 39.94 kB / 0.516 GB, free: 1.562 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.001203/0.4938, allocations: 380.8 kB / 0.5163 GB, free: 1.184 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003474/0.4941, allocations: 87.86 kB / 0.5164 GB, free: 1.098 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.4941, allocations: 0 / 0.5164 GB, free: 1.098 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001025/0.4943, allocations: 31.94 kB / 0.5165 GB, free: 1.066 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006026/0.4949, allocations: 60.36 kB / 0.5165 GB, free: 1.008 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007818/0.4957, allocations: 287.1 kB / 0.5168 GB, free: 0.6875 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2895/0.7852, allocations: 0.7327 MB / 0.5175 GB, free: 85.83 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001404/0.7854, allocations: 20.88 kB / 0.5175 GB, free: 85.82 MB / 362.7 MB Notification: Performance of SimCode: time 1.372e-06/0.7854, allocations: 0 / 0.5175 GB, free: 85.82 MB / 362.7 MB Notification: Performance of Templates: time 0.008328/0.7938, allocations: 2.703 MB / 0.5202 GB, free: 85.71 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