Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.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.001336/0.001336, allocations: 112.2 kB / 18.49 MB, free: 4.539 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.001343/0.001343, allocations: 218.9 kB / 21.46 MB, free: 1.586 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.422/1.422, allocations: 230.6 MB / 254.8 MB, free: 14.9 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.RealSignals.ShiftSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_ShiftSample",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_ShiftSample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001472/0.001472, allocations: 51.92 kB / 373.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09398/0.09546, allocations: 53.32 MB / 427 MB, free: 4.766 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample): time 0.002774/0.09823, allocations: 1.599 MB / 428.6 MB, free: 3.156 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001065/0.0993, allocations: 0.5648 MB / 429.2 MB, free: 2.586 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.361e-05/0.09937, allocations: 7.938 kB / 429.2 MB, free: 2.578 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.263e-05/0.09941, allocations: 3.938 kB / 429.2 MB, free: 2.574 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001159/0.09953, allocations: 7.938 kB / 429.2 MB, free: 2.566 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002845/0.09981, allocations: 67 kB / 429.3 MB, free: 2.504 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001078/0.09992, allocations: 51.78 kB / 429.3 MB, free: 2.453 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.905e-05/0.1, allocations: 12.17 kB / 429.3 MB, free: 2.441 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001084/0.1001, allocations: 23.92 kB / 429.4 MB, free: 2.418 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.733e-05/0.1002, allocations: 23.86 kB / 429.4 MB, free: 2.395 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.583e-05/0.1002, allocations: 8 kB / 429.4 MB, free: 2.387 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.87e-05/0.1002, allocations: 8 kB / 429.4 MB, free: 2.379 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.471e-05/0.1003, allocations: 23.84 kB / 429.4 MB, free: 2.355 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.937e-05/0.1003, allocations: 27.81 kB / 429.4 MB, free: 2.328 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001402/0.1005, allocations: 59.67 kB / 429.5 MB, free: 2.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.1005, allocations: 0 / 429.5 MB, free: 2.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1005, allocations: 3.938 kB / 429.5 MB, free: 2.266 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.598e-06/0.1005, allocations: 0 / 429.5 MB, free: 2.266 MB / 350.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.0004963/0.101, allocations: 383 kB / 429.9 MB, free: 1.844 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.481e-05/0.101, allocations: 15.97 kB / 429.9 MB, free: 1.828 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.618e-05/0.101, allocations: 4.188 kB / 429.9 MB, free: 1.824 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.535e-05/0.101, allocations: 38.75 kB / 429.9 MB, free: 1.777 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001372/0.1012, allocations: 16.88 kB / 430 MB, free: 1.762 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002626/0.1014, allocations: 204.7 kB / 430.2 MB, free: 1.523 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.087e-05/0.1015, allocations: 3.938 kB / 430.2 MB, free: 1.52 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.067e-05/0.1015, allocations: 4 kB / 430.2 MB, free: 1.516 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002743/0.1017, allocations: 125.9 kB / 430.3 MB, free: 1.371 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.335e-06/0.1018, allocations: 0 / 430.3 MB, free: 1.371 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.735e-06/0.1018, allocations: 0 / 430.3 MB, free: 1.371 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.107e-06/0.1018, allocations: 0 / 430.3 MB, free: 1.371 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.647e-05/0.1018, allocations: 31.91 kB / 430.3 MB, free: 1.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003287/0.1022, allocations: 270.6 kB / 430.6 MB, free: 1.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001218/0.1023, allocations: 75.84 kB / 430.7 MB, free: 0.918 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.498e-05/0.1024, allocations: 26.58 kB / 430.7 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.501e-05/0.1024, allocations: 0 / 430.7 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.402e-05/0.1024, allocations: 38.55 kB / 430.7 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 1.112e-06/0.1024, allocations: 0 / 430.7 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002849/0.1027, allocations: 89.55 kB / 430.8 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.633e-05/0.1028, allocations: 110.8 kB / 430.9 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001384/0.1029, allocations: 148.6 kB / 431.1 MB, free: 468 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.298e-05/0.1029, allocations: 25.7 kB / 431.1 MB, free: 436 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.266e-05/0.103, allocations: 88.14 kB / 431.2 MB, free: 344 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.368e-05/0.103, allocations: 4 kB / 431.2 MB, free: 340 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.342e-05/0.103, allocations: 29.94 kB / 431.2 MB, free: 304 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.1661/0.2691, allocations: 310.8 kB / 431.5 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.651e-05/0.2692, allocations: 7.344 kB / 431.5 MB, free: 10.88 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.573e-05/0.2693, allocations: 37.06 kB / 431.6 MB, free: 10.84 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.197e-05/0.2694, allocations: 51.39 kB / 431.6 MB, free: 10.81 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.2694, allocations: 2.625 kB / 431.6 MB, free: 10.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001589/0.2695, allocations: 67.72 kB / 431.7 MB, free: 10.78 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.803e-05/0.2696, allocations: 5.469 kB / 431.7 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.765e-06/0.2696, allocations: 1.781 kB / 431.7 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.893e-05/0.2696, allocations: 1.734 kB / 431.7 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.714e-05/0.2697, allocations: 10.12 kB / 431.7 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.586e-06/0.2697, allocations: 6.625 kB / 431.7 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.138e-05/0.2697, allocations: 3.5 kB / 431.7 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.196e-06/0.2697, allocations: 2.562 kB / 431.7 MB, free: 10.78 MB / 350.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 7.118e-05/0.2698, allocations: 119.6 kB / 431.8 MB, free: 10.67 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.205e-05/0.2699, allocations: 59.25 kB / 431.9 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.315e-05/0.2699, allocations: 12.44 kB / 431.9 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.2699, allocations: 5.938 kB / 431.9 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.2699, allocations: 2.672 kB / 431.9 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.2699, allocations: 0.875 kB / 431.9 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001573/0.2701, allocations: 173.2 kB / 432.1 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.2701, allocations: 0.5312 kB / 432.1 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.134e-05/0.2702, allocations: 15.98 kB / 432.1 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.2702, allocations: 1.094 kB / 432.1 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.767e-06/0.2702, allocations: 6.375 kB / 432.1 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.2702, allocations: 1.297 kB / 432.1 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.2702, allocations: 3.844 kB / 432.1 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000162/0.2703, allocations: 179.6 kB / 432.3 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.523e-05/0.2704, allocations: 90.83 kB / 432.4 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.599e-05/0.2704, allocations: 6.391 kB / 432.4 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.965e-05/0.2705, allocations: 3.312 kB / 432.4 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.092e-05/0.2705, allocations: 1.922 kB / 432.4 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.07e-06/0.2705, allocations: 10.8 kB / 432.4 MB, free: 10.19 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.201e-05/0.2706, allocations: 111.1 kB / 432.5 MB, free: 10.12 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2706, allocations: 3.5 kB / 432.5 MB, free: 10.12 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002263/0.2708, allocations: 5.656 kB / 432.5 MB, free: 10.12 MB / 350.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.0002979/0.2711, allocations: 0.7119 MB / 433.2 MB, free: 9.438 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001413/0.2712, allocations: 32.52 kB / 433.2 MB, free: 9.438 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.2712, allocations: 4.438 kB / 433.2 MB, free: 9.438 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.901e-05/0.2713, allocations: 14.8 kB / 433.3 MB, free: 9.438 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003481/0.2716, allocations: 26.95 kB / 433.3 MB, free: 9.438 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001035/0.2727, allocations: 1.398 MB / 434.7 MB, free: 8.211 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001122/0.2728, allocations: 0.6961 MB / 435.4 MB, free: 7.516 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.217e-05/0.2728, allocations: 4.625 kB / 435.4 MB, free: 7.516 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.817e-05/0.2728, allocations: 14.33 kB / 435.4 MB, free: 7.508 MB / 350.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2728, allocations: 0.5312 kB / 435.4 MB, free: 7.508 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01714/0.29, allocations: 1.801 MB / 437.2 MB, free: 7.148 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.792/8.082, allocations: 13.25 kB / 437.2 MB, free: 7.145 MB / 350.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79319e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_ShiftSample.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,sample1.y,shiftSample1.y Variables in the result:periodicClock.factor,periodicClock.resolution,periodicClock.useSolver,sample1.u,sample1.y,shiftSample1.resolution,shiftSample1.shiftCounter,shiftSample1.u,shiftSample1.y,sine.amplitude,sine.continuous,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,time [Calling sys.exit(0), Time elapsed: 10.522757389990147]