Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.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.001243/0.001243, allocations: 120.1 kB / 18.49 MB, free: 4.562 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.001312/0.001312, allocations: 215 kB / 21.45 MB, free: 1.617 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.421/1.421, allocations: 230.6 MB / 254.8 MB, free: 15.11 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.Hold,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_Hold",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Hold,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_Hold",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001545/0.001545, allocations: 47.92 kB / 373.7 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09674/0.09828, allocations: 53.32 MB / 427 MB, free: 4.793 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Hold): time 0.003029/0.1013, allocations: 1.63 MB / 428.7 MB, free: 3.152 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001105/0.1024, allocations: 0.5727 MB / 429.2 MB, free: 2.574 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.405e-05/0.1025, allocations: 3.938 kB / 429.2 MB, free: 2.57 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.49e-05/0.1026, allocations: 11.86 kB / 429.2 MB, free: 2.559 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001196/0.1027, allocations: 11.92 kB / 429.3 MB, free: 2.547 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003343/0.103, allocations: 63.75 kB / 429.3 MB, free: 2.484 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000126/0.1031, allocations: 59.78 kB / 429.4 MB, free: 2.426 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.023e-05/0.1032, allocations: 11.98 kB / 429.4 MB, free: 2.414 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001647/0.1034, allocations: 35.8 kB / 429.4 MB, free: 2.379 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.431e-05/0.1035, allocations: 27.84 kB / 429.4 MB, free: 2.352 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.753e-05/0.1035, allocations: 8 kB / 429.5 MB, free: 2.344 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.723e-05/0.1035, allocations: 11.94 kB / 429.5 MB, free: 2.332 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.886e-05/0.1036, allocations: 19.92 kB / 429.5 MB, free: 2.312 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.585e-05/0.1036, allocations: 27.8 kB / 429.5 MB, free: 2.285 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001634/0.1038, allocations: 67.67 kB / 429.6 MB, free: 2.219 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.1038, allocations: 0 / 429.6 MB, free: 2.219 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1038, allocations: 3.938 kB / 429.6 MB, free: 2.215 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.477e-06/0.1038, allocations: 0 / 429.6 MB, free: 2.215 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005291/0.1043, allocations: 387 kB / 430 MB, free: 1.789 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.743e-05/0.1044, allocations: 16.03 kB / 430 MB, free: 1.773 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.264e-05/0.1044, allocations: 192 / 430 MB, free: 1.773 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.592e-05/0.1044, allocations: 38.75 kB / 430 MB, free: 1.727 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001426/0.1046, allocations: 16.88 kB / 430 MB, free: 1.711 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003028/0.1049, allocations: 212.6 kB / 430.2 MB, free: 1.465 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.861e-05/0.1049, allocations: 4.125 kB / 430.2 MB, free: 1.461 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.965e-05/0.1049, allocations: 12 kB / 430.3 MB, free: 1.449 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002888/0.1052, allocations: 126.7 kB / 430.4 MB, free: 1.301 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.152e-05/0.1052, allocations: 3.938 kB / 430.4 MB, free: 1.297 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.106e-05/0.1052, allocations: 4 kB / 430.4 MB, free: 1.293 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.1052, allocations: 0 / 430.4 MB, free: 1.293 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.846e-05/0.1053, allocations: 35.91 kB / 430.4 MB, free: 1.258 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003771/0.1057, allocations: 283.4 kB / 430.7 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001461/0.1058, allocations: 94.36 kB / 430.8 MB, free: 0.793 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.951e-05/0.1059, allocations: 43.56 kB / 430.8 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.79e-05/0.106, allocations: 7.922 kB / 430.8 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.379e-05/0.106, allocations: 34.56 kB / 430.9 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 1.072e-06/0.106, allocations: 4 kB / 430.9 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.000303/0.1063, allocations: 97.5 kB / 431 MB, free: 0.582 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001246/0.1064, allocations: 141 kB / 431.1 MB, free: 424 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001495/0.1066, allocations: 144.6 kB / 431.3 MB, free: 264 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.978e-05/0.1066, allocations: 29.7 kB / 431.3 MB, free: 228 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.05e-05/0.1066, allocations: 92.12 kB / 431.4 MB, free: 132 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.808e-05/0.1067, allocations: 7.953 kB / 431.4 MB, free: 124 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.088e-05/0.1067, allocations: 21.67 kB / 431.4 MB, free: 96 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001712/0.1069, allocations: 318.8 kB / 431.7 MB, free: 15.77 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.011e-05/0.1069, allocations: 15.98 kB / 431.7 MB, free: 15.76 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.025e-05/0.107, allocations: 56.22 kB / 431.8 MB, free: 15.69 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001169/0.1071, allocations: 64.16 kB / 431.8 MB, free: 15.61 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.1071, allocations: 0 / 431.8 MB, free: 15.61 MB / 366.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001726/0.1073, allocations: 81.56 kB / 431.9 MB, free: 15.52 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.525e-05/0.1073, allocations: 4 kB / 431.9 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.1073, allocations: 0 / 431.9 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.69e-05/0.1073, allocations: 7.984 kB / 431.9 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.763e-05/0.1074, allocations: 11.94 kB / 431.9 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.948e-06/0.1074, allocations: 12.09 kB / 432 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.962e-05/0.1075, allocations: 7.984 kB / 432 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.253e-06/0.1075, allocations: 0 / 432 MB, free: 15.48 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (6): * Single equations (assignments): 6 * 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.0001105/0.1076, allocations: 125.8 kB / 432.1 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.566e-05/0.1077, allocations: 57.58 kB / 432.1 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.895e-05/0.1077, allocations: 11.88 kB / 432.2 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.1077, allocations: 0 / 432.2 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.076e-05/0.1077, allocations: 11.92 kB / 432.2 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.1077, allocations: 4.062 kB / 432.2 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002279/0.108, allocations: 173.7 kB / 432.3 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.108, allocations: 4 kB / 432.3 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.877e-05/0.108, allocations: 11.98 kB / 432.4 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.558e-06/0.108, allocations: 7.938 kB / 432.4 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.316e-06/0.108, allocations: 0 / 432.4 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.973e-06/0.108, allocations: 0 / 432.4 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.011e-05/0.1081, allocations: 11.88 kB / 432.4 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002858/0.1083, allocations: 198 kB / 432.6 MB, free: 14.78 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.608e-05/0.1084, allocations: 97.05 kB / 432.7 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.563e-05/0.1084, allocations: 0 / 432.7 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.519e-05/0.1085, allocations: 4 kB / 432.7 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.464e-05/0.1085, allocations: 3.938 kB / 432.7 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.719e-06/0.1085, allocations: 4.188 kB / 432.7 MB, free: 14.65 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.294e-05/0.1086, allocations: 122.1 kB / 432.8 MB, free: 14.54 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1086, allocations: 0 / 432.8 MB, free: 14.54 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002354/0.1089, allocations: 8 kB / 432.8 MB, free: 14.53 MB / 366.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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.0005736/0.1095, allocations: 0.7383 MB / 433.5 MB, free: 13.75 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001734/0.1096, allocations: 43.86 kB / 433.6 MB, free: 13.71 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.1096, allocations: 0 / 433.6 MB, free: 13.71 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 5.857e-05/0.1097, allocations: 15.98 kB / 433.6 MB, free: 13.7 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003932/0.1101, allocations: 36.56 kB / 433.6 MB, free: 13.66 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001688/0.1118, allocations: 1.471 MB / 435.1 MB, free: 12.07 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003525/0.1121, allocations: 0.6963 MB / 435.8 MB, free: 11.35 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.504e-05/0.1122, allocations: 7.984 kB / 435.8 MB, free: 11.34 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.697e-05/0.1122, allocations: 19.44 kB / 435.8 MB, free: 11.32 MB / 366.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1122, allocations: 0 / 435.8 MB, free: 11.32 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01878/0.131, allocations: 1.924 MB / 437.8 MB, free: 9.516 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.78/7.911, allocations: 13.45 kB / 437.8 MB, free: 9.508 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_Hold_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_Hold.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/Hold/Hold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.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,hold1.y Variables in the result:hold1.u,hold1.y,hold1.y_start,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.516182438994292]