Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.IntegerSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001147/0.001147, allocations: 203.2 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.312/1.312, allocations: 226.5 MB / 245.4 MB, free: 6.492 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008513/0.0008513, allocations: 100.5 kB / 297.4 MB, free: 6.699 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002418/0.0002419, allocations: 8 kB / 357.4 MB, free: 10.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.208/0.2083, allocations: 51.29 MB / 408.7 MB, free: 27.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09502/0.3033, allocations: 82.51 MB / 491.2 MB, free: 9.086 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002073/0.3036, allocations: 83.95 kB / 491.3 MB, free: 9.004 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01871/0.3223, allocations: 7.026 MB / 498.3 MB, free: 1.984 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.973e-06/0.3223, allocations: 0 / 498.3 MB, free: 1.984 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.617e-05/0.3224, allocations: 4 kB / 498.3 MB, free: 1.98 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.0008036/0.3232, allocations: 0.5507 MB / 498.8 MB, free: 1.371 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.856e-05/0.3232, allocations: 8.031 kB / 498.8 MB, free: 1.363 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.798e-05/0.3233, allocations: 24.66 kB / 498.9 MB, free: 1.34 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004717/0.3238, allocations: 315.5 kB / 499.2 MB, free: 0.9922 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2e-05/0.3238, allocations: 4.375 kB / 499.2 MB, free: 0.9883 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.105e-05/0.3239, allocations: 8.375 kB / 499.2 MB, free: 0.9805 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000355/0.3242, allocations: 184.9 kB / 499.4 MB, free: 0.7695 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.738e-06/0.3242, allocations: 192 / 499.4 MB, free: 0.7695 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.753e-05/0.3243, allocations: 3.938 kB / 499.4 MB, free: 0.7656 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.642e-06/0.3243, allocations: 4 kB / 499.4 MB, free: 0.7617 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001261/0.3244, allocations: 43.91 kB / 499.4 MB, free: 0.7188 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000627/0.325, allocations: 0.4944 MB / 499.9 MB, free: 168 kB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002724/0.3253, allocations: 146.5 kB / 0.4883 GB, free: 15.98 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001074/0.3255, allocations: 55.42 kB / 0.4884 GB, free: 15.92 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.43e-05/0.3255, allocations: 7.984 kB / 0.4884 GB, free: 15.91 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001783/0.3257, allocations: 101 kB / 0.4885 GB, free: 15.79 MB / 378.7 MB Notification: Performance of pre-optimization done (n=11): time 1.433e-06/0.3257, allocations: 0 / 0.4885 GB, free: 15.79 MB / 378.7 MB Notification: Performance of matching and sorting (n=11): time 0.0004286/0.3261, allocations: 165.3 kB / 0.4886 GB, free: 15.62 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000113/0.3262, allocations: 191.9 kB / 0.4888 GB, free: 15.39 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003784/0.3266, allocations: 335.4 kB / 0.4892 GB, free: 15.06 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.386e-05/0.3267, allocations: 41.69 kB / 0.4892 GB, free: 15.01 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.998e-05/0.3268, allocations: 124.4 kB / 0.4893 GB, free: 14.88 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.656e-05/0.3268, allocations: 19.88 kB / 0.4893 GB, free: 14.86 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.131e-06/0.3268, allocations: 0 / 0.4893 GB, free: 14.86 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001426/0.327, allocations: 338.8 kB / 0.4897 GB, free: 14.52 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.5e-05/0.327, allocations: 23.98 kB / 0.4897 GB, free: 14.5 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001296/0.3272, allocations: 115.2 kB / 0.4898 GB, free: 14.36 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001759/0.3274, allocations: 101 kB / 0.4899 GB, free: 14.25 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.3274, allocations: 4 kB / 0.4899 GB, free: 14.24 MB / 378.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002545/0.3276, allocations: 137.2 kB / 0.49 GB, free: 14.1 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.729e-05/0.3277, allocations: 8 kB / 0.49 GB, free: 14.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.141e-06/0.3277, allocations: 0 / 0.49 GB, free: 14.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.359e-05/0.3277, allocations: 4 kB / 0.49 GB, free: 14.09 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001224/0.3278, allocations: 24.3 kB / 0.49 GB, free: 14.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.907e-06/0.3278, allocations: 3.938 kB / 0.4901 GB, free: 14.06 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.017e-05/0.3279, allocations: 24 kB / 0.4901 GB, free: 14.04 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.331e-05/0.3279, allocations: 4 kB / 0.4901 GB, free: 14.04 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.0001432/0.3281, allocations: 161.7 kB / 0.4902 GB, free: 13.87 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001027/0.3282, allocations: 73.34 kB / 0.4903 GB, free: 13.79 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002676/0.3285, allocations: 119.4 kB / 0.4904 GB, free: 13.66 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.133e-06/0.3285, allocations: 4 kB / 0.4904 GB, free: 13.66 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.3285, allocations: 3.984 kB / 0.4904 GB, free: 13.66 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.3285, allocations: 4.062 kB / 0.4904 GB, free: 13.65 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002413/0.3288, allocations: 261.5 kB / 0.4907 GB, free: 13.35 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.3288, allocations: 4 kB / 0.4907 GB, free: 13.34 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.7e-05/0.3289, allocations: 19.92 kB / 0.4907 GB, free: 13.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.945e-06/0.3289, allocations: 0 / 0.4907 GB, free: 13.32 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.154e-05/0.3289, allocations: 4 kB / 0.4907 GB, free: 13.32 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.3289, allocations: 0 / 0.4907 GB, free: 13.32 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.3289, allocations: 4 kB / 0.4907 GB, free: 13.32 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003127/0.3292, allocations: 195.2 kB / 0.4909 GB, free: 13.1 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001235/0.3294, allocations: 124.8 kB / 0.491 GB, free: 12.96 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.776e-05/0.3294, allocations: 11.94 kB / 0.491 GB, free: 12.95 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.34e-05/0.3295, allocations: 4 kB / 0.491 GB, free: 12.94 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.447e-05/0.3295, allocations: 11.98 kB / 0.491 GB, free: 12.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.211e-05/0.3296, allocations: 4 kB / 0.491 GB, free: 12.93 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002726/0.3298, allocations: 253.9 kB / 0.4913 GB, free: 12.68 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3299, allocations: 0 / 0.4913 GB, free: 12.68 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003166/0.3302, allocations: 55.92 kB / 0.4913 GB, free: 12.62 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.0009311/0.3311, allocations: 436.8 kB / 0.4918 GB, free: 12.34 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002829/0.3314, allocations: 108 kB / 0.4919 GB, free: 12.23 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.3314, allocations: 4.062 kB / 0.4919 GB, free: 12.23 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001025/0.3315, allocations: 31.98 kB / 0.4919 GB, free: 12.2 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004262/0.332, allocations: 76.41 kB / 0.492 GB, free: 12.12 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007136/0.3327, allocations: 479.1 kB / 0.4924 GB, free: 11.61 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003481/0.3331, allocations: 0.744 MB / 0.4932 GB, free: 10.84 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.346e-05/0.3331, allocations: 27.42 kB / 0.4932 GB, free: 10.82 MB / 378.7 MB Notification: Performance of SimCode: time 4e-07/0.3331, allocations: 0 / 0.4932 GB, free: 10.82 MB / 378.7 MB Notification: Performance of Templates: time 0.005398/0.3385, allocations: 3.07 MB / 0.4962 GB, free: 7.75 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Hold/Hold.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches