Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001335/0.001335, allocations: 203.3 kB / 18.07 MB, free: 3.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.302/1.302, allocations: 226.5 MB / 245.3 MB, free: 8.238 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007054/0.0007054, allocations: 92.98 kB / 297.4 MB, free: 6.902 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002245/0.0002245, allocations: 8 kB / 357.4 MB, free: 10.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1976/0.1978, allocations: 51.3 MB / 408.7 MB, free: 27.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08859/0.2865, allocations: 82.41 MB / 491.1 MB, free: 9.195 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002191/0.2867, allocations: 83.95 kB / 491.2 MB, free: 9.113 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01734/0.3041, allocations: 6.851 MB / 498 MB, free: 2.27 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3041, allocations: 0 / 498 MB, free: 2.27 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.365e-05/0.3041, allocations: 0 / 498 MB, free: 2.27 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.0005974/0.3048, allocations: 0.5274 MB / 498.5 MB, free: 1.684 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.497e-05/0.3048, allocations: 20.02 kB / 498.5 MB, free: 1.664 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.595e-05/0.3049, allocations: 24.59 kB / 498.6 MB, free: 1.641 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003478/0.3052, allocations: 274.8 kB / 498.8 MB, free: 1.332 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.921e-05/0.3052, allocations: 8.375 kB / 498.8 MB, free: 1.324 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.78e-05/0.3053, allocations: 4.375 kB / 498.9 MB, free: 1.32 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003104/0.3056, allocations: 168.1 kB / 499 MB, free: 1.129 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.316e-06/0.3056, allocations: 192 / 499 MB, free: 1.129 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.42e-05/0.3056, allocations: 3.938 kB / 499 MB, free: 1.125 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.039e-06/0.3056, allocations: 4 kB / 499 MB, free: 1.121 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.952e-05/0.3057, allocations: 43.91 kB / 499.1 MB, free: 1.078 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004762/0.3062, allocations: 450.6 kB / 499.5 MB, free: 0.5781 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002125/0.3064, allocations: 138.5 kB / 499.6 MB, free: 416 kB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.858e-05/0.3065, allocations: 59.41 kB / 499.7 MB, free: 344 kB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.142e-05/0.3066, allocations: 4.062 kB / 499.7 MB, free: 340 kB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001395/0.3067, allocations: 97.03 kB / 499.8 MB, free: 224 kB / 362.7 MB Notification: Performance of pre-optimization done (n=11): time 1.373e-06/0.3067, allocations: 3.938 kB / 499.8 MB, free: 220 kB / 362.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003339/0.3071, allocations: 161.2 kB / 500 MB, free: 52 kB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.326e-05/0.3072, allocations: 166.2 kB / 0.4884 GB, free: 15.85 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002716/0.3074, allocations: 273.4 kB / 0.4887 GB, free: 15.57 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.007e-05/0.3075, allocations: 25.7 kB / 0.4887 GB, free: 15.54 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.035e-05/0.3075, allocations: 124.4 kB / 0.4888 GB, free: 15.41 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.266e-05/0.3076, allocations: 19.75 kB / 0.4888 GB, free: 15.39 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.112e-06/0.3076, allocations: 4 kB / 0.4888 GB, free: 15.38 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001019/0.3077, allocations: 334.8 kB / 0.4891 GB, free: 15.05 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.485e-05/0.3078, allocations: 20 kB / 0.4892 GB, free: 15.03 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.284e-05/0.3079, allocations: 90.03 kB / 0.4893 GB, free: 14.92 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001375/0.308, allocations: 89.11 kB / 0.4893 GB, free: 14.81 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.308, allocations: 0 / 0.4893 GB, free: 14.81 MB / 378.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002104/0.3082, allocations: 133.3 kB / 0.4895 GB, free: 14.68 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.168e-05/0.3083, allocations: 4 kB / 0.4895 GB, free: 14.67 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.3083, allocations: 4 kB / 0.4895 GB, free: 14.67 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.342e-05/0.3083, allocations: 3.984 kB / 0.4895 GB, free: 14.66 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.232e-05/0.3084, allocations: 15.94 kB / 0.4895 GB, free: 14.65 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.303e-06/0.3084, allocations: 4.297 kB / 0.4895 GB, free: 14.64 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.924e-05/0.3085, allocations: 20.14 kB / 0.4895 GB, free: 14.62 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.03e-05/0.3085, allocations: 8 kB / 0.4895 GB, free: 14.62 MB / 378.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,sample1.u,shiftSample1.y,hold1.u,hold1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked 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.0001073/0.3086, allocations: 141.8 kB / 0.4897 GB, free: 14.47 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.362e-05/0.3087, allocations: 73.36 kB / 0.4897 GB, free: 14.39 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002208/0.3089, allocations: 111.4 kB / 0.4898 GB, free: 14.27 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.891e-06/0.3089, allocations: 7.984 kB / 0.4898 GB, free: 14.26 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.3089, allocations: 4.062 kB / 0.4898 GB, free: 14.26 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.3089, allocations: 3.938 kB / 0.4898 GB, free: 14.25 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001876/0.3091, allocations: 241.5 kB / 0.4901 GB, free: 13.97 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-06/0.3092, allocations: 0 / 0.4901 GB, free: 13.97 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.481e-05/0.3092, allocations: 15.94 kB / 0.4901 GB, free: 13.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.165e-06/0.3092, allocations: 0 / 0.4901 GB, free: 13.95 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.134e-05/0.3092, allocations: 4 kB / 0.4901 GB, free: 13.95 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/0.3092, allocations: 0 / 0.4901 GB, free: 13.95 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.3092, allocations: 0 / 0.4901 GB, free: 13.95 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002516/0.3095, allocations: 187.2 kB / 0.4903 GB, free: 13.74 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.427e-05/0.3096, allocations: 124.8 kB / 0.4904 GB, free: 13.6 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.017e-05/0.3096, allocations: 4 kB / 0.4904 GB, free: 13.59 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.933e-05/0.3097, allocations: 7.984 kB / 0.4904 GB, free: 13.59 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.505e-05/0.3097, allocations: 4 kB / 0.4904 GB, free: 13.58 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.286e-05/0.3098, allocations: 15.98 kB / 0.4904 GB, free: 13.57 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001828/0.31, allocations: 200.5 kB / 0.4906 GB, free: 13.38 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.31, allocations: 0 / 0.4906 GB, free: 13.38 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002427/0.3102, allocations: 36 kB / 0.4907 GB, free: 13.34 MB / 378.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,sample1.u,hold1.y,hold1.u,shiftSample1.y,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * 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.0008064/0.311, allocations: 440.4 kB / 0.4911 GB, free: 13.05 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002132/0.3112, allocations: 84.09 kB / 0.4912 GB, free: 12.97 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3113, allocations: 4 kB / 0.4912 GB, free: 12.97 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 7.58e-05/0.3113, allocations: 31.92 kB / 0.4912 GB, free: 12.94 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003779/0.3117, allocations: 66.59 kB / 0.4913 GB, free: 12.88 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005241/0.3123, allocations: 411.1 kB / 0.4916 GB, free: 12.43 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002443/0.3125, allocations: 0.7438 MB / 0.4924 GB, free: 11.66 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.801e-05/0.3126, allocations: 23.44 kB / 0.4924 GB, free: 11.64 MB / 378.7 MB Notification: Performance of SimCode: time 2.21e-07/0.3126, allocations: 0 / 0.4924 GB, free: 11.64 MB / 378.7 MB Notification: Performance of Templates: time 0.003973/0.3166, allocations: 2.757 MB / 0.4951 GB, free: 8.895 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/Hold/Hold.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches