Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001444/0.001444, allocations: 113.2 kB / 20.44 MB, free: 1.324 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002397/0.002397, allocations: 213.3 kB / 23.74 MB, free: 4.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.602/1.602, allocations: 230.6 MB / 257.5 MB, free: 7.965 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+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002323/0.002323, allocations: 47.92 kB / 377.8 MB, free: 3.121 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3838/0.3861, allocations: 53.37 MB / 431.1 MB, free: 6.836 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample): time 0.00323/0.3894, allocations: 1.585 MB / 432.7 MB, free: 5.246 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001185/0.3905, allocations: 0.5648 MB / 433.3 MB, free: 4.676 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.45e-05/0.3906, allocations: 3.938 kB / 433.3 MB, free: 4.672 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.529e-05/0.3907, allocations: 3.938 kB / 433.3 MB, free: 4.668 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001379/0.3908, allocations: 19.86 kB / 433.3 MB, free: 4.648 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003327/0.3912, allocations: 55.83 kB / 433.4 MB, free: 4.594 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001264/0.3913, allocations: 51.83 kB / 433.4 MB, free: 4.543 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.479e-05/0.3914, allocations: 8.188 kB / 433.4 MB, free: 4.535 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001396/0.3915, allocations: 39.8 kB / 433.5 MB, free: 4.496 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.647e-05/0.3916, allocations: 19.92 kB / 433.5 MB, free: 4.477 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.586e-05/0.3916, allocations: 7.922 kB / 433.5 MB, free: 4.469 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.23e-05/0.3917, allocations: 8 kB / 433.5 MB, free: 4.461 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.21e-05/0.3917, allocations: 11.98 kB / 433.5 MB, free: 4.449 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.602e-05/0.3917, allocations: 27.75 kB / 433.5 MB, free: 4.422 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001562/0.3919, allocations: 56.16 kB / 433.6 MB, free: 4.371 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.3919, allocations: 4 kB / 433.6 MB, free: 4.367 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.3919, allocations: 3.938 kB / 433.6 MB, free: 4.363 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.841e-06/0.3919, allocations: 0 / 433.6 MB, free: 4.363 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.0005244/0.3924, allocations: 313.9 kB / 433.9 MB, free: 4.027 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.01e-05/0.3925, allocations: 8.031 kB / 433.9 MB, free: 4.02 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.069e-05/0.3925, allocations: 34.69 kB / 433.9 MB, free: 3.977 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001481/0.3927, allocations: 20.88 kB / 434 MB, free: 3.957 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002696/0.3929, allocations: 142.9 kB / 434.1 MB, free: 3.793 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.394e-05/0.3929, allocations: 4.125 kB / 434.1 MB, free: 3.789 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.583e-05/0.393, allocations: 8 kB / 434.1 MB, free: 3.781 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002981/0.3933, allocations: 105 kB / 434.2 MB, free: 3.66 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.807e-06/0.3933, allocations: 0 / 434.2 MB, free: 3.66 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.098e-06/0.3933, allocations: 0 / 434.2 MB, free: 3.66 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.582e-06/0.3933, allocations: 4 kB / 434.2 MB, free: 3.656 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.675e-05/0.3934, allocations: 19.92 kB / 434.2 MB, free: 3.637 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003172/0.3937, allocations: 240.8 kB / 434.5 MB, free: 3.355 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.595e-05/0.3938, allocations: 45.14 kB / 434.5 MB, free: 3.293 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.229e-05/0.3938, allocations: 17.78 kB / 434.5 MB, free: 3.27 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.06e-05/0.3938, allocations: 11.94 kB / 434.6 MB, free: 3.258 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.058e-05/0.3939, allocations: 30.56 kB / 434.6 MB, free: 3.219 MB / 334.1 MB Notification: Performance of pre-optimization done (n=2): time 1.032e-06/0.3939, allocations: 0 / 434.6 MB, free: 3.219 MB / 334.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002547/0.3941, allocations: 73.56 kB / 434.7 MB, free: 3.141 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.101e-05/0.3942, allocations: 77.11 kB / 434.7 MB, free: 3.047 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001472/0.3944, allocations: 155.8 kB / 434.9 MB, free: 2.887 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.5e-05/0.3944, allocations: 25.7 kB / 434.9 MB, free: 2.855 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.453e-05/0.3944, allocations: 92.12 kB / 435 MB, free: 2.762 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.819e-05/0.3945, allocations: 7.953 kB / 435 MB, free: 2.754 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.023e-05/0.3945, allocations: 9.719 kB / 435 MB, free: 2.738 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001563/0.3946, allocations: 318.8 kB / 435.3 MB, free: 2.418 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.337e-05/0.3947, allocations: 7.984 kB / 435.3 MB, free: 2.41 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.828e-05/0.3947, allocations: 25.66 kB / 435.4 MB, free: 2.379 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.225e-05/0.3948, allocations: 29.7 kB / 435.4 MB, free: 2.344 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.3948, allocations: 0 / 435.4 MB, free: 2.344 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001346/0.395, allocations: 65.55 kB / 435.5 MB, free: 2.273 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.864e-05/0.395, allocations: 4 kB / 435.5 MB, free: 2.27 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.395, allocations: 4.125 kB / 435.5 MB, free: 2.266 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.561e-05/0.395, allocations: 0 / 435.5 MB, free: 2.266 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.933e-05/0.3951, allocations: 8 kB / 435.5 MB, free: 2.258 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.057e-05/0.3951, allocations: 7.938 kB / 435.5 MB, free: 2.25 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.847e-05/0.3951, allocations: 3.984 kB / 435.5 MB, free: 2.246 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.784e-06/0.3951, allocations: 0 / 435.5 MB, free: 2.246 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (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 prepare postOptimizeDAE: time 9.871e-05/0.3952, allocations: 113.8 kB / 435.6 MB, free: 2.125 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.772e-05/0.3953, allocations: 41.59 kB / 435.6 MB, free: 2.078 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.526e-05/0.3953, allocations: 15.83 kB / 435.6 MB, free: 2.062 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.353e-06/0.3953, allocations: 0 / 435.6 MB, free: 2.062 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.796e-06/0.3953, allocations: 7.938 kB / 435.7 MB, free: 2.055 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.315e-06/0.3953, allocations: 0 / 435.7 MB, free: 2.055 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001865/0.3955, allocations: 136.7 kB / 435.8 MB, free: 1.879 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.3955, allocations: 4 kB / 435.8 MB, free: 1.875 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.922e-05/0.3956, allocations: 15.92 kB / 435.8 MB, free: 1.859 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.804e-06/0.3956, allocations: 0 / 435.8 MB, free: 1.859 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.394e-06/0.3956, allocations: 0 / 435.8 MB, free: 1.859 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.3956, allocations: 0 / 435.8 MB, free: 1.859 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.3956, allocations: 3.938 kB / 435.8 MB, free: 1.855 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000185/0.3958, allocations: 160.3 kB / 436 MB, free: 1.68 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.349e-05/0.3958, allocations: 19.94 kB / 436 MB, free: 1.66 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.655e-05/0.3958, allocations: 0 / 436 MB, free: 1.66 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.469e-05/0.3959, allocations: 3.938 kB / 436 MB, free: 1.656 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.712e-05/0.3959, allocations: 11.92 kB / 436 MB, free: 1.645 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.377e-06/0.3959, allocations: 4.031 kB / 436 MB, free: 1.641 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.758e-05/0.396, allocations: 112.8 kB / 436.1 MB, free: 1.531 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.396, allocations: 0 / 436.1 MB, free: 1.531 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002322/0.3963, allocations: 8 kB / 436.1 MB, free: 1.523 MB / 334.1 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 0.0005193/0.3968, allocations: 0.6821 MB / 436.8 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001473/0.3969, allocations: 27.91 kB / 436.8 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.3969, allocations: 0 / 436.8 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.02e-05/0.397, allocations: 8 kB / 436.8 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003708/0.3974, allocations: 30.47 kB / 436.9 MB, free: 0.75 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001565/0.3989, allocations: 1.342 MB / 438.2 MB, free: 15.32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003949/0.3993, allocations: 0.6885 MB / 438.9 MB, free: 14.6 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.355e-05/0.3994, allocations: 0 / 438.9 MB, free: 14.6 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.208e-05/0.3994, allocations: 23.45 kB / 438.9 MB, free: 14.58 MB / 350.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3994, allocations: 0 / 438.9 MB, free: 14.58 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02956/0.429, allocations: 1.745 MB / 440.7 MB, free: 12.97 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.54/11.97, allocations: 21.89 kB / 440.7 MB, free: 12.96 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79319e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/ClockSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.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: 14.637679119827226]