Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007912/0.0007912, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001037/0.001828, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0006187/0.0006187, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008575/0.001476, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9291/0.9291, allocations: 173.4 MB / 185.8 MB, free: 8.988 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08211/1.011, allocations: 52.49 MB / 238.3 MB, free: 4.434 MB / 234.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5021,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5021,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.182e-06/1.182e-06, allocations: 0 / 239.5 MB, free: 3.188 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.543e-05/1.661e-05, allocations: 6.875 kB / 239.5 MB, free: 3.18 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.002475/0.002492, allocations: 1.963 MB / 241.5 MB, free: 1.211 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001276/0.003768, allocations: 1.055 MB / 242.6 MB, free: 152 kB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001037/0.003871, allocations: 3.938 kB / 242.6 MB, free: 148 kB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003959/0.004267, allocations: 159.4 kB / 242.7 MB, free: 15.98 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002115/0.004479, allocations: 131.3 kB / 242.9 MB, free: 15.86 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004225/0.004901, allocations: 203.2 kB / 243.1 MB, free: 15.66 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000201/0.005102, allocations: 171.5 kB / 243.2 MB, free: 15.49 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.181e-05/0.005194, allocations: 30.39 kB / 243.2 MB, free: 15.46 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001582/0.005352, allocations: 135.6 kB / 243.4 MB, free: 15.33 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.307e-05/0.005445, allocations: 67.8 kB / 243.4 MB, free: 15.26 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.881e-05/0.005464, allocations: 8 kB / 243.5 MB, free: 15.25 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001284/0.005592, allocations: 59.89 kB / 243.5 MB, free: 15.2 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.301e-05/0.005645, allocations: 35.86 kB / 243.5 MB, free: 15.16 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.265e-05/0.005688, allocations: 35.81 kB / 243.6 MB, free: 15.12 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002272/0.005915, allocations: 139.5 kB / 243.7 MB, free: 14.99 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.401e-05/0.005929, allocations: 0 / 243.7 MB, free: 14.99 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.00593, allocations: 0 / 243.7 MB, free: 14.99 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.319e-05/0.005943, allocations: 4 kB / 243.7 MB, free: 14.98 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0004675/0.006411, allocations: 445 kB / 244.2 MB, free: 14.52 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.813e-05/0.006439, allocations: 12.03 kB / 244.2 MB, free: 14.51 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.164e-05/0.006471, allocations: 12.92 kB / 244.2 MB, free: 14.5 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001915/0.006662, allocations: 209.5 kB / 244.4 MB, free: 14.26 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.215e-05/0.006674, allocations: 4.375 kB / 244.4 MB, free: 14.26 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.212e-05/0.006686, allocations: 12.31 kB / 244.4 MB, free: 14.25 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001585/0.006845, allocations: 125.2 kB / 244.5 MB, free: 14.1 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-06/0.006854, allocations: 7.938 kB / 244.5 MB, free: 14.09 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.022e-06/0.00686, allocations: 0 / 244.5 MB, free: 14.09 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.579e-06/0.006864, allocations: 0 / 244.5 MB, free: 14.09 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.284e-05/0.006897, allocations: 14.83 kB / 244.5 MB, free: 14.08 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002307/0.007128, allocations: 207.5 kB / 244.7 MB, free: 13.85 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001018/0.007229, allocations: 126.5 kB / 244.9 MB, free: 13.7 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.757e-05/0.007257, allocations: 34.64 kB / 244.9 MB, free: 13.66 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.86e-05/0.007276, allocations: 3.938 kB / 244.9 MB, free: 13.65 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.179e-05/0.007357, allocations: 74.14 kB / 245 MB, free: 13.57 MB / 250.7 MB Notification: Performance of pre-optimization done (n=9): time 1.282e-06/0.007359, allocations: 0 / 245 MB, free: 13.57 MB / 250.7 MB Notification: Performance of matching and sorting (n=9): time 0.0001241/0.007483, allocations: 77.61 kB / 245.1 MB, free: 13.48 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.452e-05/0.007527, allocations: 106.8 kB / 245.2 MB, free: 13.36 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001344/0.007662, allocations: 222.7 kB / 245.4 MB, free: 13.12 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.46e-05/0.007676, allocations: 29.95 kB / 245.4 MB, free: 13.09 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.042e-05/0.007717, allocations: 104 kB / 245.5 MB, free: 12.98 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.006e-05/0.007737, allocations: 19.89 kB / 245.5 MB, free: 12.96 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.023e-05/0.007767, allocations: 25.7 kB / 245.6 MB, free: 12.93 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.927e-05/0.007846, allocations: 326.8 kB / 245.9 MB, free: 12.6 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.444e-05/0.007861, allocations: 15 kB / 245.9 MB, free: 12.59 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.235e-05/0.007893, allocations: 52.27 kB / 245.9 MB, free: 12.52 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.993e-05/0.007933, allocations: 43.34 kB / 246 MB, free: 12.47 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.007935, allocations: 0 / 246 MB, free: 12.47 MB / 250.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 6.987e-05/0.008005, allocations: 76.41 kB / 246.1 MB, free: 12.39 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.114e-05/0.008016, allocations: 4 kB / 246.1 MB, free: 12.38 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.518e-06/0.008021, allocations: 0 / 246.1 MB, free: 12.38 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.426e-05/0.008035, allocations: 4 kB / 246.1 MB, free: 12.38 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.331e-05/0.008088, allocations: 15.92 kB / 246.1 MB, free: 12.36 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.675e-06/0.008091, allocations: 0 / 246.1 MB, free: 12.36 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.01e-05/0.008121, allocations: 11.89 kB / 246.1 MB, free: 12.35 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.18e-06/0.008126, allocations: 4 kB / 246.1 MB, free: 12.35 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,sample1.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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 7.339e-05/0.0082, allocations: 124.6 kB / 246.2 MB, free: 12.21 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.616e-05/0.008246, allocations: 49.69 kB / 246.3 MB, free: 12.16 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.123e-05/0.008337, allocations: 75.39 kB / 246.3 MB, free: 12.08 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.008339, allocations: 0 / 246.3 MB, free: 12.08 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.995e-06/0.008342, allocations: 4 kB / 246.3 MB, free: 12.08 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.008347, allocations: 7.969 kB / 246.4 MB, free: 12.07 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.384e-05/0.008441, allocations: 101.8 kB / 246.5 MB, free: 11.95 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.008443, allocations: 0 / 246.5 MB, free: 11.95 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.118e-05/0.008464, allocations: 8 kB / 246.5 MB, free: 11.95 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.166e-05/0.008505, allocations: 31.83 kB / 246.5 MB, free: 11.91 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.008507, allocations: 0 / 246.5 MB, free: 11.91 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.3e-06/0.008512, allocations: 0 / 246.5 MB, free: 11.91 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.335e-06/0.008515, allocations: 8.094 kB / 246.5 MB, free: 11.91 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.008517, allocations: 4 kB / 246.5 MB, free: 11.9 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.039e-05/0.008597, allocations: 112.4 kB / 246.6 MB, free: 11.77 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.668e-05/0.008614, allocations: 3.938 kB / 246.6 MB, free: 11.76 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.055e-05/0.008645, allocations: 4 kB / 246.6 MB, free: 11.76 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.632e-05/0.008671, allocations: 11.98 kB / 246.6 MB, free: 11.75 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.548e-06/0.008681, allocations: 0 / 246.6 MB, free: 11.75 MB / 250.7 MB Notification: Performance of sorting global known variables: time 6.307e-05/0.008744, allocations: 81.61 kB / 246.7 MB, free: 11.66 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.008744, allocations: 0 / 246.7 MB, free: 11.66 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001405/0.008884, allocations: 31.89 kB / 246.7 MB, free: 11.63 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,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 (10): * Single equations (assignments): 8 * 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.001157/0.01004, allocations: 0.5686 MB / 247.3 MB, free: 11.34 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 8.144e-05/0.01012, allocations: 36.83 kB / 247.3 MB, free: 11.3 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 6.582e-06/0.01013, allocations: 4 kB / 247.4 MB, free: 11.29 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 2.638e-05/0.01016, allocations: 28.72 kB / 247.4 MB, free: 11.26 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001792/0.01033, allocations: 75.23 kB / 247.5 MB, free: 11.19 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007146/0.01105, allocations: 296.6 kB / 247.7 MB, free: 10.87 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.084e-05/0.01109, allocations: 79.83 kB / 247.8 MB, free: 10.77 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 4.293e-05/0.01113, allocations: 17.62 kB / 247.8 MB, free: 10.75 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.964e-05/0.01121, allocations: 83.34 kB / 247.9 MB, free: 10.67 MB / 250.7 MB Notification: Performance of SimCode: time 8.02e-07/0.01121, allocations: 0 / 247.9 MB, free: 10.67 MB / 250.7 MB Notification: Performance of Templates: time 0.004302/0.01552, allocations: 2.874 MB / 250.8 MB, free: 7.852 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/ShiftSample/ShiftSample.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.480566588230431]