Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.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.IntegerSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009173/0.0009171, allocations: 173 kB / 16.76 MB, free: 5.055 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.455/1.455, allocations: 205 MB / 222.6 MB, free: 9.137 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.0008331/0.000833, allocations: 88.61 kB / 270.5 MB, free: 8.676 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.06861/0.06861, allocations: 12.57 MB / 331 MB, free: 12.07 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004274/0.0004273, allocations: 8 kB / 391.7 MB, free: 66.43 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08801/0.08845, allocations: 49.97 MB / 441.7 MB, free: 16.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold): time 0.00188/0.09038, allocations: 1.614 MB / 443.3 MB, free: 14.77 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001428/0.09183, allocations: 1.065 MB / 444.4 MB, free: 13.7 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001429/0.092, allocations: 4 kB / 444.4 MB, free: 13.69 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003123/0.09234, allocations: 63.73 kB / 444.4 MB, free: 13.63 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002199/0.09257, allocations: 83.7 kB / 444.5 MB, free: 13.55 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006121/0.0932, allocations: 207.7 kB / 444.7 MB, free: 13.34 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001934/0.0934, allocations: 163.5 kB / 444.9 MB, free: 13.18 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001069/0.09352, allocations: 33.53 kB / 444.9 MB, free: 13.15 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001024/0.09363, allocations: 71.58 kB / 445 MB, free: 13.08 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001016/0.09374, allocations: 71.69 kB / 445 MB, free: 13.01 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.162e-05/0.0938, allocations: 4 kB / 445 MB, free: 13.01 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001448/0.09395, allocations: 51.95 kB / 445.1 MB, free: 12.96 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.609e-05/0.09403, allocations: 55.77 kB / 445.2 MB, free: 12.9 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.153e-05/0.0941, allocations: 75.42 kB / 445.2 MB, free: 12.83 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001946/0.0943, allocations: 171.9 kB / 445.4 MB, free: 12.66 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.09431, allocations: 0 / 445.4 MB, free: 12.66 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.09432, allocations: 0 / 445.4 MB, free: 12.66 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.859e-06/0.09433, allocations: 0 / 445.4 MB, free: 12.66 MB / 298.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.0005322/0.09487, allocations: 0.5001 MB / 445.9 MB, free: 12.11 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.644e-05/0.09491, allocations: 12.03 kB / 445.9 MB, free: 12.09 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.952e-05/0.09498, allocations: 24.64 kB / 445.9 MB, free: 12.07 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002595/0.09525, allocations: 287.5 kB / 446.2 MB, free: 11.75 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.96e-05/0.09527, allocations: 8.375 kB / 446.2 MB, free: 11.74 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.774e-05/0.0953, allocations: 8.125 kB / 446.2 MB, free: 11.73 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002968/0.0956, allocations: 177.8 kB / 446.4 MB, free: 11.53 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.947e-06/0.09562, allocations: 0 / 446.4 MB, free: 11.53 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.416e-05/0.09564, allocations: 7.938 kB / 446.4 MB, free: 11.52 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.479e-06/0.09565, allocations: 0 / 446.4 MB, free: 11.52 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001064/0.09576, allocations: 35.97 kB / 446.4 MB, free: 11.48 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004351/0.09621, allocations: 478.5 kB / 446.9 MB, free: 10.96 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000211/0.09643, allocations: 142.5 kB / 447 MB, free: 10.78 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.014e-05/0.09652, allocations: 59.36 kB / 447.1 MB, free: 10.71 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.62e-05/0.09656, allocations: 8.078 kB / 447.1 MB, free: 10.7 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001644/0.09673, allocations: 105 kB / 447.2 MB, free: 10.58 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 1.383e-06/0.09674, allocations: 0 / 447.2 MB, free: 10.58 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003486/0.09709, allocations: 169.6 kB / 447.4 MB, free: 10.41 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.235e-05/0.09716, allocations: 191.8 kB / 447.6 MB, free: 10.18 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002402/0.0974, allocations: 326.7 kB / 447.9 MB, free: 9.852 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.458e-05/0.09743, allocations: 33.7 kB / 447.9 MB, free: 9.812 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.911e-05/0.09749, allocations: 124.3 kB / 448 MB, free: 9.688 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.365e-05/0.09752, allocations: 23.73 kB / 448.1 MB, free: 9.664 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.869e-05/0.09755, allocations: 21.72 kB / 448.1 MB, free: 9.637 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.363e-05/0.09761, allocations: 338.8 kB / 448.4 MB, free: 9.297 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.538e-05/0.09769, allocations: 27.98 kB / 448.4 MB, free: 9.27 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000103/0.0978, allocations: 91.7 kB / 448.5 MB, free: 9.152 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001376/0.09794, allocations: 105 kB / 448.6 MB, free: 9.031 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.09795, allocations: 0 / 448.6 MB, free: 9.031 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002052/0.09816, allocations: 133.3 kB / 448.8 MB, free: 8.895 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/0.09819, allocations: 4 kB / 448.8 MB, free: 8.891 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.0982, allocations: 4.156 kB / 448.8 MB, free: 8.887 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.464e-05/0.09822, allocations: 4 kB / 448.8 MB, free: 8.883 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000108/0.09833, allocations: 23.98 kB / 448.8 MB, free: 8.859 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.504e-06/0.09835, allocations: 3.984 kB / 448.8 MB, free: 8.855 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.738e-05/0.09843, allocations: 11.84 kB / 448.8 MB, free: 8.844 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.447e-06/0.09845, allocations: 8 kB / 448.8 MB, free: 8.836 MB / 298.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 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,shiftSample.y,hold.y,hold.u,shiftSample.u,sample.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001026/0.09856, allocations: 162.6 kB / 449 MB, free: 8.668 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.134e-05/0.09863, allocations: 73.34 kB / 449.1 MB, free: 8.59 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.692e-05/0.09869, allocations: 33.77 kB / 449.1 MB, free: 8.559 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.0987, allocations: 4 kB / 449.1 MB, free: 8.555 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.618e-06/0.09871, allocations: 0 / 449.1 MB, free: 8.555 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.489e-06/0.09872, allocations: 7.875 kB / 449.1 MB, free: 8.547 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001427/0.09886, allocations: 241.6 kB / 449.3 MB, free: 8.262 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.09888, allocations: 0 / 449.3 MB, free: 8.262 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.394e-05/0.09894, allocations: 16.3 kB / 449.4 MB, free: 8.246 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.09895, allocations: 0 / 449.4 MB, free: 8.246 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.221e-05/0.09897, allocations: 12 kB / 449.4 MB, free: 8.234 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.09898, allocations: 0 / 449.4 MB, free: 8.234 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.674e-06/0.09899, allocations: 8 kB / 449.4 MB, free: 8.227 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000217/0.09921, allocations: 183.2 kB / 449.6 MB, free: 8.02 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.768e-05/0.09929, allocations: 112.8 kB / 449.7 MB, free: 7.891 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.972e-05/0.09932, allocations: 8 kB / 449.7 MB, free: 7.883 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.679e-05/0.09939, allocations: 11.98 kB / 449.7 MB, free: 7.871 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.17e-05/0.09944, allocations: 11.94 kB / 449.7 MB, free: 7.859 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.754e-05/0.09947, allocations: 7.984 kB / 449.7 MB, free: 7.852 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001636/0.09963, allocations: 241.9 kB / 449.9 MB, free: 7.613 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.09964, allocations: 3.938 kB / 449.9 MB, free: 7.609 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002414/0.09989, allocations: 35.94 kB / 450 MB, free: 7.574 MB / 298.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.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,hold.y,hold.u,shiftSample.y,sample.y,shiftSample.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007723/0.1007, allocations: 425.2 kB / 450.4 MB, free: 7.148 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002037/0.1009, allocations: 83.89 kB / 450.5 MB, free: 7.066 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.1009, allocations: 0 / 450.5 MB, free: 7.066 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.285e-05/0.101, allocations: 31.92 kB / 450.5 MB, free: 7.035 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003795/0.1014, allocations: 72.44 kB / 450.6 MB, free: 6.965 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006102/0.102, allocations: 469.9 kB / 451 MB, free: 6.469 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002029/0.1022, allocations: 0.7362 MB / 451.8 MB, free: 5.707 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.556e-05/0.1023, allocations: 31.42 kB / 451.8 MB, free: 5.68 MB / 298.7 MB Notification: Performance of SimCode: time 4.31e-07/0.1023, allocations: 0 / 451.8 MB, free: 5.68 MB / 298.7 MB Notification: Performance of Templates: time 0.004389/0.1067, allocations: 2.953 MB / 454.8 MB, free: 2.723 MB / 298.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches