Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.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.009873/0.009873, allocations: 106 kB / 21.98 MB, free: 5.227 MB / 14.72 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.002043/0.002043, allocations: 216.6 kB / 25.29 MB, free: 3.203 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.586/1.586, allocations: 230.6 MB / 259 MB, free: 8.031 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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.IntegerSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5013,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5013,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001996/0.001996, allocations: 67.89 kB / 379.8 MB, free: 2.645 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2952/0.2972, allocations: 53.36 MB / 433.2 MB, free: 6.969 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.003747/0.301, allocations: 1.957 MB / 435.1 MB, free: 5.008 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002395/0.3034, allocations: 1.325 MB / 436.4 MB, free: 3.676 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001496/0.3035, allocations: 11.94 kB / 436.5 MB, free: 3.664 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003399/0.3038, allocations: 67.66 kB / 436.5 MB, free: 3.598 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003873/0.3042, allocations: 135.4 kB / 436.7 MB, free: 3.465 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007156/0.3049, allocations: 221.6 kB / 436.9 MB, free: 3.25 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003057/0.3053, allocations: 199.4 kB / 437.1 MB, free: 3.055 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001258/0.3054, allocations: 25.72 kB / 437.1 MB, free: 3.027 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001367/0.3055, allocations: 79.64 kB / 437.2 MB, free: 2.949 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001587/0.3057, allocations: 87.66 kB / 437.3 MB, free: 2.863 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.458e-05/0.3057, allocations: 8 kB / 437.3 MB, free: 2.855 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002042/0.3059, allocations: 83.88 kB / 437.3 MB, free: 2.773 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.538e-05/0.306, allocations: 55.77 kB / 437.4 MB, free: 2.719 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.466e-05/0.3061, allocations: 75.48 kB / 437.5 MB, free: 2.645 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004131/0.3065, allocations: 257.1 kB / 437.7 MB, free: 2.398 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.3065, allocations: 0 / 437.7 MB, free: 2.398 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.3065, allocations: 0 / 437.7 MB, free: 2.398 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.592e-06/0.3065, allocations: 4 kB / 437.7 MB, free: 2.395 MB / 334.1 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.0007893/0.3073, allocations: 482.5 kB / 438.2 MB, free: 1.887 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.792e-05/0.3073, allocations: 12.02 kB / 438.2 MB, free: 1.875 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.941e-05/0.3074, allocations: 28.75 kB / 438.2 MB, free: 1.848 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004408/0.3079, allocations: 237.4 kB / 438.5 MB, free: 1.59 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.037e-05/0.3079, allocations: 8.375 kB / 438.5 MB, free: 1.582 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.89e-05/0.3079, allocations: 12.12 kB / 438.5 MB, free: 1.57 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000386/0.3083, allocations: 164.4 kB / 438.6 MB, free: 1.379 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.3083, allocations: 0 / 438.6 MB, free: 1.379 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.651e-05/0.3083, allocations: 8 kB / 438.7 MB, free: 1.371 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-06/0.3083, allocations: 3.938 kB / 438.7 MB, free: 1.367 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001364/0.3085, allocations: 39.97 kB / 438.7 MB, free: 1.328 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006301/0.3091, allocations: 445.6 kB / 439.1 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002906/0.3094, allocations: 142.5 kB / 439.3 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001257/0.3095, allocations: 67.34 kB / 439.3 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.582e-05/0.3095, allocations: 0 / 439.3 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002005/0.3097, allocations: 97.03 kB / 439.4 MB, free: 484 kB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.303e-06/0.3097, allocations: 7.875 kB / 439.4 MB, free: 476 kB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004434/0.3102, allocations: 173.4 kB / 439.6 MB, free: 296 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001243/0.3103, allocations: 191.9 kB / 439.8 MB, free: 60 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000398/0.3107, allocations: 344.1 kB / 440.1 MB, free: 15.71 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.43e-05/0.3107, allocations: 29.7 kB / 440.2 MB, free: 15.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001045/0.3108, allocations: 128.4 kB / 440.3 MB, free: 15.55 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.033e-05/0.3108, allocations: 19.89 kB / 440.3 MB, free: 15.53 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.032e-05/0.3109, allocations: 34.09 kB / 440.3 MB, free: 15.49 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001557/0.3111, allocations: 342.8 kB / 440.7 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.704e-05/0.3111, allocations: 23.98 kB / 440.7 MB, free: 15.12 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001333/0.3113, allocations: 95.7 kB / 440.8 MB, free: 15 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001818/0.3115, allocations: 101 kB / 440.9 MB, free: 14.88 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.3115, allocations: 0 / 440.9 MB, free: 14.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002623/0.3117, allocations: 145.4 kB / 441 MB, free: 14.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.576e-05/0.3117, allocations: 4 kB / 441 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.3117, allocations: 4 kB / 441 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.553e-05/0.3118, allocations: 0 / 441 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001232/0.3119, allocations: 23.98 kB / 441.1 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.502e-06/0.3119, allocations: 0 / 441.1 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.316e-05/0.312, allocations: 15.83 kB / 441.1 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.255e-05/0.312, allocations: 8 kB / 441.1 MB, free: 14.68 MB / 350.1 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,shiftSample1.y,hold1.y,hold1.u,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000155/0.3121, allocations: 157.9 kB / 441.2 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.695e-05/0.3122, allocations: 77.48 kB / 441.3 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002726/0.3125, allocations: 115.4 kB / 441.4 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.3125, allocations: 0 / 441.4 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.3125, allocations: 4.375 kB / 441.4 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.3125, allocations: 3.984 kB / 441.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002391/0.3128, allocations: 224.7 kB / 441.7 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.265e-06/0.3128, allocations: 4 kB / 441.7 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.039e-05/0.3128, allocations: 15.98 kB / 441.7 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.3128, allocations: 11.94 kB / 441.7 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.344e-05/0.3129, allocations: 8 kB / 441.7 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.3129, allocations: 0 / 441.7 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.3129, allocations: 4 kB / 441.7 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003159/0.3132, allocations: 191.3 kB / 441.9 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.553e-05/0.3133, allocations: 35.78 kB / 441.9 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.314e-05/0.3133, allocations: 8 kB / 441.9 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.172e-05/0.3134, allocations: 7.984 kB / 441.9 MB, free: 13.73 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.306e-05/0.3134, allocations: 19.86 kB / 442 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.893e-05/0.3135, allocations: 4 kB / 442 MB, free: 13.71 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002603/0.3137, allocations: 247.1 kB / 442.2 MB, free: 13.47 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3137, allocations: 0 / 442.2 MB, free: 13.47 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002738/0.314, allocations: 39.98 kB / 442.2 MB, free: 13.43 MB / 350.1 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,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 (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.001526/0.3155, allocations: 430 kB / 442.7 MB, free: 13.16 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002631/0.3158, allocations: 79.84 kB / 442.7 MB, free: 13.08 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3158, allocations: 0 / 442.7 MB, free: 13.08 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.885e-05/0.3159, allocations: 27.98 kB / 442.8 MB, free: 13.05 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004194/0.3163, allocations: 77.39 kB / 442.8 MB, free: 12.98 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007211/0.317, allocations: 423.4 kB / 443.3 MB, free: 12.52 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003946/0.3174, allocations: 0.7476 MB / 444 MB, free: 11.75 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.617e-05/0.3175, allocations: 27.44 kB / 444 MB, free: 11.72 MB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3175, allocations: 0 / 444 MB, free: 11.72 MB / 350.1 MB Notification: Performance of Templates: time 0.005729/0.3232, allocations: 3.072 MB / 447.1 MB, free: 8.66 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Hold/Hold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.687177667859942]