Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007738/0.0007738, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001129/0.001903, allocations: 449.7 kB / 10.37 MB, free: 324 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0007432/0.0007432, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009648/0.001708, allocations: 463.6 kB / 11.72 MB, free: 2.453 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9936/0.9936, allocations: 177.4 MB / 189.9 MB, free: 4.836 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09719/1.091, allocations: 53.87 MB / 243.8 MB, free: 14.91 MB / 250.7 MB " [Timeout remaining time 179] 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5019,variableFilter="time|sample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample") translateModel(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5019,variableFilter="time|sample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.152e-06/1.152e-06, allocations: 0 / 245 MB, free: 13.68 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 8.166e-06/9.318e-06, allocations: 2.312 kB / 245 MB, free: 13.67 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample): time 0.001672/0.001681, allocations: 1.662 MB / 246.7 MB, free: 12 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005585/0.00224, allocations: 0.5568 MB / 247.2 MB, free: 11.43 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.516e-05/0.002305, allocations: 0 / 247.2 MB, free: 11.43 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 3.97e-05/0.002344, allocations: 7.875 kB / 247.2 MB, free: 11.43 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 7.313e-05/0.002418, allocations: 19.84 kB / 247.2 MB, free: 11.41 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001847/0.002602, allocations: 55.77 kB / 247.3 MB, free: 11.35 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 8.852e-05/0.002691, allocations: 51.78 kB / 247.3 MB, free: 11.3 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.083e-05/0.002762, allocations: 12.17 kB / 247.4 MB, free: 11.29 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001125/0.002874, allocations: 43.84 kB / 247.4 MB, free: 11.25 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.759e-05/0.002922, allocations: 19.91 kB / 247.4 MB, free: 11.23 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.302e-05/0.002935, allocations: 0 / 247.4 MB, free: 11.23 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.884e-05/0.002984, allocations: 8 kB / 247.4 MB, free: 11.22 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.063e-05/0.003014, allocations: 15.94 kB / 247.4 MB, free: 11.2 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 1.669e-05/0.003031, allocations: 11.94 kB / 247.5 MB, free: 11.19 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 9.588e-05/0.003127, allocations: 47.77 kB / 247.5 MB, free: 11.14 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.155e-05/0.003138, allocations: 0 / 247.5 MB, free: 11.14 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.11e-07/0.003139, allocations: 0 / 247.5 MB, free: 11.14 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.028e-05/0.003149, allocations: 0 / 247.5 MB, free: 11.14 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003408/0.00349, allocations: 300.2 kB / 247.8 MB, free: 10.83 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.639e-05/0.003516, allocations: 12.62 kB / 247.8 MB, free: 10.82 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001191/0.003635, allocations: 90.03 kB / 247.9 MB, free: 10.71 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001312/0.003767, allocations: 146.2 kB / 248 MB, free: 10.54 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.831e-06/0.003772, allocations: 384 / 248 MB, free: 10.54 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.935e-06/0.00378, allocations: 8.312 kB / 248 MB, free: 10.54 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001445/0.003925, allocations: 118 kB / 248.2 MB, free: 10.4 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.161e-06/0.003931, allocations: 4 kB / 248.2 MB, free: 10.39 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.929e-06/0.003936, allocations: 0 / 248.2 MB, free: 10.39 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-06/0.00394, allocations: 0 / 248.2 MB, free: 10.39 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.543e-05/0.003956, allocations: 4 kB / 248.2 MB, free: 10.39 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001392/0.004095, allocations: 153.1 kB / 248.3 MB, free: 10.22 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.613e-05/0.004131, allocations: 37.2 kB / 248.4 MB, free: 10.17 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.314e-05/0.004144, allocations: 13.72 kB / 248.4 MB, free: 10.15 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.434e-05/0.004158, allocations: 4.062 kB / 248.4 MB, free: 10.14 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.94e-05/0.004178, allocations: 42.42 kB / 248.4 MB, free: 10.09 MB / 250.7 MB Notification: Performance of pre-optimization done (n=2): time 6.61e-07/0.004179, allocations: 4 kB / 248.4 MB, free: 10.09 MB / 250.7 MB Notification: Performance of matching and sorting (n=2): time 9.396e-05/0.004272, allocations: 45.62 kB / 248.5 MB, free: 10.04 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.558e-05/0.004308, allocations: 77.11 kB / 248.5 MB, free: 9.945 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.943e-05/0.004377, allocations: 146 kB / 248.7 MB, free: 9.793 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 7.674e-06/0.004385, allocations: 25.7 kB / 248.7 MB, free: 9.762 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.688e-05/0.004412, allocations: 80.14 kB / 248.8 MB, free: 9.68 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.347e-05/0.004425, allocations: 7.953 kB / 248.8 MB, free: 9.672 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.044e-05/0.004446, allocations: 17.69 kB / 248.8 MB, free: 9.648 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 6.576e-05/0.004512, allocations: 314.8 kB / 249.1 MB, free: 9.332 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.801e-06/0.004517, allocations: 256 / 249.1 MB, free: 9.332 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.278e-06/0.004522, allocations: 4 kB / 249.1 MB, free: 9.328 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.719e-05/0.004539, allocations: 12.84 kB / 249.1 MB, free: 9.312 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.004541, allocations: 4 kB / 249.1 MB, free: 9.309 MB / 250.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 3.262e-05/0.004574, allocations: 41.58 kB / 249.2 MB, free: 9.262 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.347e-06/0.004583, allocations: 4 kB / 249.2 MB, free: 9.258 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.727e-06/0.004587, allocations: 0 / 249.2 MB, free: 9.258 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.045e-06/0.004595, allocations: 0 / 249.2 MB, free: 9.258 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.702e-05/0.004642, allocations: 7.984 kB / 249.2 MB, free: 9.25 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.006e-06/0.004645, allocations: 3.938 kB / 249.2 MB, free: 9.246 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.354e-05/0.004659, allocations: 8.094 kB / 249.2 MB, free: 9.238 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.777e-06/0.004662, allocations: 0 / 249.2 MB, free: 9.238 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * 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 4.957e-05/0.004712, allocations: 112.7 kB / 249.3 MB, free: 9.117 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.777e-05/0.00474, allocations: 37.62 kB / 249.3 MB, free: 9.074 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.011e-05/0.00476, allocations: 7.812 kB / 249.4 MB, free: 9.066 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-06/0.004761, allocations: 0 / 249.4 MB, free: 9.066 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.422e-06/0.004762, allocations: 3.938 kB / 249.4 MB, free: 9.062 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.004766, allocations: 4 kB / 249.4 MB, free: 9.059 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.076e-05/0.004847, allocations: 77.88 kB / 249.4 MB, free: 8.965 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.004848, allocations: 0 / 249.4 MB, free: 8.965 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.09e-05/0.004869, allocations: 12.02 kB / 249.5 MB, free: 8.953 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.654e-05/0.004896, allocations: 15.88 kB / 249.5 MB, free: 8.938 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.365e-06/0.004898, allocations: 4 kB / 249.5 MB, free: 8.934 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.516e-06/0.004901, allocations: 0 / 249.5 MB, free: 8.934 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.61e-07/0.004902, allocations: 0 / 249.5 MB, free: 8.934 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.004903, allocations: 0 / 249.5 MB, free: 8.934 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.943e-05/0.004963, allocations: 132.4 kB / 249.6 MB, free: 8.785 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.099e-05/0.004974, allocations: 7.938 kB / 249.6 MB, free: 8.777 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.909e-05/0.005003, allocations: 3.984 kB / 249.6 MB, free: 8.773 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.031e-05/0.005023, allocations: 7.938 kB / 249.6 MB, free: 8.766 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.846e-06/0.005026, allocations: 8.031 kB / 249.6 MB, free: 8.758 MB / 250.7 MB Notification: Performance of sorting global known variables: time 2.006e-05/0.005046, allocations: 24.83 kB / 249.7 MB, free: 8.73 MB / 250.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.005046, allocations: 0 / 249.7 MB, free: 8.73 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001126/0.005158, allocations: 4 kB / 249.7 MB, free: 8.727 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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 Backend phase and start with SimCode phase: time 6.644e-05/0.005225, allocations: 76.42 kB / 249.7 MB, free: 8.641 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 4.597e-05/0.005271, allocations: 12.84 kB / 249.7 MB, free: 8.625 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.878e-06/0.005275, allocations: 4 kB / 249.7 MB, free: 8.621 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 8.907e-06/0.005284, allocations: 4.922 kB / 249.8 MB, free: 8.613 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000166/0.00545, allocations: 35.5 kB / 249.8 MB, free: 8.578 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005727/0.006022, allocations: 171.5 kB / 250 MB, free: 8.383 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.143e-05/0.006054, allocations: 63.28 kB / 250 MB, free: 8.301 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 1.89e-05/0.006073, allocations: 4.25 kB / 250 MB, free: 8.297 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.395e-05/0.006127, allocations: 63.34 kB / 250.1 MB, free: 8.234 MB / 250.7 MB Notification: Performance of SimCode: time 5.41e-07/0.006127, allocations: 0 / 250.1 MB, free: 8.234 MB / 250.7 MB Notification: Performance of Templates: time 0.001849/0.007976, allocations: 0.6922 MB / 250.8 MB, free: 7.559 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/ClockSignals/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.495951642282307]