Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.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.001392/0.001392, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.002106/0.002106, allocations: 207.8 kB / 23.73 MB, free: 4.391 MB / 14.72 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 1.473/1.473, allocations: 230.5 MB / 257.4 MB, free: 7.754 MB / 206.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.003084/0.003084, allocations: 63.89 kB / 377.7 MB, free: 2.801 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2921/0.2952, allocations: 53.41 MB / 431.2 MB, free: 6.441 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample): time 0.003135/0.2983, allocations: 1.592 MB / 432.7 MB, free: 4.848 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001103/0.2994, allocations: 0.5143 MB / 433.3 MB, free: 4.328 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.727e-05/0.2995, allocations: 7.938 kB / 433.3 MB, free: 4.32 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.492e-05/0.2995, allocations: 7.922 kB / 433.3 MB, free: 4.312 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001537/0.2997, allocations: 15.88 kB / 433.3 MB, free: 4.297 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003734/0.3001, allocations: 63.17 kB / 433.3 MB, free: 4.238 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001334/0.3002, allocations: 47.8 kB / 433.4 MB, free: 4.191 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001239/0.3003, allocations: 16.17 kB / 433.4 MB, free: 4.176 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001316/0.3005, allocations: 27.86 kB / 433.4 MB, free: 4.148 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.645e-05/0.3005, allocations: 23.84 kB / 433.5 MB, free: 4.125 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.911e-05/0.3005, allocations: 8 kB / 433.5 MB, free: 4.117 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.44e-05/0.3006, allocations: 4 kB / 433.5 MB, free: 4.113 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.953e-05/0.3006, allocations: 11.94 kB / 433.5 MB, free: 4.102 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.749e-05/0.3007, allocations: 23.86 kB / 433.5 MB, free: 4.078 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001645/0.3008, allocations: 61.36 kB / 433.6 MB, free: 4.02 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.3008, allocations: 0 / 433.6 MB, free: 4.02 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.3009, allocations: 0 / 433.6 MB, free: 4.02 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.612e-06/0.3009, allocations: 0 / 433.6 MB, free: 4.02 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005279/0.3014, allocations: 309.9 kB / 433.9 MB, free: 3.688 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.702e-05/0.3014, allocations: 19.92 kB / 433.9 MB, free: 3.668 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.744e-05/0.3015, allocations: 38.75 kB / 433.9 MB, free: 3.621 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001613/0.3016, allocations: 24.81 kB / 434 MB, free: 3.598 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002815/0.3019, allocations: 146.5 kB / 434.1 MB, free: 3.434 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.553e-05/0.3019, allocations: 8.125 kB / 434.1 MB, free: 3.426 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.571e-05/0.3019, allocations: 4 kB / 434.1 MB, free: 3.422 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003088/0.3023, allocations: 113.9 kB / 434.2 MB, free: 3.289 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.427e-06/0.3023, allocations: 0 / 434.2 MB, free: 3.289 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.332e-05/0.3023, allocations: 4 kB / 434.2 MB, free: 3.285 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.099e-06/0.3023, allocations: 0 / 434.2 MB, free: 3.285 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.924e-05/0.3024, allocations: 27.91 kB / 434.2 MB, free: 3.258 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003607/0.3027, allocations: 245.6 kB / 434.5 MB, free: 2.969 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001374/0.3029, allocations: 71.78 kB / 434.6 MB, free: 2.871 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.88e-05/0.3029, allocations: 26.64 kB / 434.6 MB, free: 2.836 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.256e-05/0.303, allocations: 4 kB / 434.6 MB, free: 2.832 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.567e-05/0.303, allocations: 42.48 kB / 434.6 MB, free: 2.781 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 1.062e-06/0.303, allocations: 0 / 434.6 MB, free: 2.781 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003009/0.3033, allocations: 81.56 kB / 434.7 MB, free: 2.695 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.618e-05/0.3034, allocations: 110.8 kB / 434.8 MB, free: 2.562 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001492/0.3035, allocations: 149.6 kB / 435 MB, free: 2.406 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.013e-05/0.3036, allocations: 29.7 kB / 435 MB, free: 2.371 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.706e-05/0.3036, allocations: 88.52 kB / 435.1 MB, free: 2.281 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.315e-05/0.3036, allocations: 4 kB / 435.1 MB, free: 2.277 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.881e-05/0.3037, allocations: 29.66 kB / 435.1 MB, free: 2.242 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001531/0.3038, allocations: 310.8 kB / 435.4 MB, free: 1.93 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.815e-05/0.3039, allocations: 15.98 kB / 435.4 MB, free: 1.914 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.169e-05/0.3039, allocations: 31.38 kB / 435.5 MB, free: 1.871 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.856e-05/0.304, allocations: 47.36 kB / 435.5 MB, free: 1.812 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.304, allocations: 4 kB / 435.5 MB, free: 1.809 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001418/0.3042, allocations: 65.61 kB / 435.6 MB, free: 1.738 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.818e-05/0.3042, allocations: 8 kB / 435.6 MB, free: 1.73 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/0.3042, allocations: 0 / 435.6 MB, free: 1.73 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.653e-05/0.3042, allocations: 0 / 435.6 MB, free: 1.73 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.033e-05/0.3043, allocations: 11.98 kB / 435.6 MB, free: 1.719 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.285e-05/0.3043, allocations: 7.875 kB / 435.6 MB, free: 1.711 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.772e-05/0.3043, allocations: 4.125 kB / 435.6 MB, free: 1.707 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.118e-05/0.3044, allocations: 12 kB / 435.6 MB, free: 1.695 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (4): * Single equations (assignments): 4 * 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.0001015/0.3045, allocations: 118.7 kB / 435.7 MB, free: 1.57 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.396e-05/0.3045, allocations: 57.55 kB / 435.8 MB, free: 1.508 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.793e-05/0.3046, allocations: 7.953 kB / 435.8 MB, free: 1.496 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.544e-06/0.3046, allocations: 4 kB / 435.8 MB, free: 1.492 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.3046, allocations: 3.938 kB / 435.8 MB, free: 1.488 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.3046, allocations: 3.938 kB / 435.8 MB, free: 1.484 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001862/0.3048, allocations: 144.7 kB / 436 MB, free: 1.301 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.482e-06/0.3048, allocations: 0 / 436 MB, free: 1.301 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.253e-05/0.3048, allocations: 20.06 kB / 436 MB, free: 1.281 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.494e-06/0.3049, allocations: 0 / 436 MB, free: 1.281 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.556e-06/0.3049, allocations: 4 kB / 436 MB, free: 1.277 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.3049, allocations: 0 / 436 MB, free: 1.277 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.582e-06/0.3049, allocations: 7.922 kB / 436 MB, free: 1.27 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002118/0.3051, allocations: 177.1 kB / 436.2 MB, free: 1.074 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.093e-05/0.3051, allocations: 15.94 kB / 436.2 MB, free: 1.059 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.676e-05/0.3051, allocations: 4 kB / 436.2 MB, free: 1.055 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.888e-05/0.3052, allocations: 3.984 kB / 436.2 MB, free: 1.051 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.593e-05/0.3052, allocations: 11.94 kB / 436.2 MB, free: 1.039 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.526e-06/0.3052, allocations: 0 / 436.2 MB, free: 1.039 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.804e-05/0.3053, allocations: 118.6 kB / 436.3 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3053, allocations: 0 / 436.3 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002244/0.3056, allocations: 4 kB / 436.3 MB, free: 0.9219 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (4): * Single equations (assignments): 4 * 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 0.0006124/0.3062, allocations: 0.7063 MB / 437 MB, free: 188 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001696/0.3063, allocations: 40.09 kB / 437.1 MB, free: 148 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.3064, allocations: 0 / 437.1 MB, free: 148 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.838e-05/0.3064, allocations: 11.94 kB / 437.1 MB, free: 136 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003951/0.3068, allocations: 23.95 kB / 437.1 MB, free: 112 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001618/0.3084, allocations: 1.414 MB / 438.5 MB, free: 14.59 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.367e-05/0.3085, allocations: 82.39 kB / 438.6 MB, free: 14.49 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.811e-05/0.3085, allocations: 4 kB / 438.6 MB, free: 14.49 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.654e-05/0.3086, allocations: 23.42 kB / 438.6 MB, free: 14.46 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3086, allocations: 0 / 438.6 MB, free: 14.46 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0314/0.34, allocations: 2.306 MB / 440.9 MB, free: 12.27 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.88/11.22, allocations: 4.734 kB / 440.9 MB, free: 12.27 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79319e-05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_ShiftSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.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: 13.710670230910182]