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.001633/0.001633, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.002032/0.002032, allocations: 209.3 kB / 23.73 MB, free: 4.523 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.394/1.394, allocations: 230.6 MB / 257.5 MB, free: 7.801 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001556/0.001556, allocations: 47.92 kB / 377.7 MB, free: 2.949 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2381/0.2397, allocations: 53.35 MB / 431.1 MB, free: 6.656 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample): time 0.002992/0.2427, allocations: 1.596 MB / 432.7 MB, free: 5.055 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001039/0.2437, allocations: 0.5142 MB / 433.2 MB, free: 4.535 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.237e-05/0.2438, allocations: 7.938 kB / 433.2 MB, free: 4.527 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.98e-05/0.2439, allocations: 11.86 kB / 433.2 MB, free: 4.516 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000135/0.244, allocations: 15.88 kB / 433.2 MB, free: 4.5 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003287/0.2443, allocations: 67.73 kB / 433.3 MB, free: 4.434 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001093/0.2444, allocations: 43.8 kB / 433.3 MB, free: 4.391 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.067e-05/0.2445, allocations: 16.17 kB / 433.4 MB, free: 4.375 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001142/0.2446, allocations: 31.84 kB / 433.4 MB, free: 4.344 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.461e-05/0.2447, allocations: 23.86 kB / 433.4 MB, free: 4.32 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.393e-05/0.2447, allocations: 4 kB / 433.4 MB, free: 4.316 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.787e-05/0.2447, allocations: 8 kB / 433.4 MB, free: 4.309 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.254e-05/0.2448, allocations: 11.94 kB / 433.4 MB, free: 4.297 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.179e-05/0.2448, allocations: 23.86 kB / 433.5 MB, free: 4.273 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001485/0.245, allocations: 65.34 kB / 433.5 MB, free: 4.211 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.245, allocations: 0 / 433.5 MB, free: 4.211 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.245, allocations: 0 / 433.5 MB, free: 4.211 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.569e-06/0.245, allocations: 0 / 433.5 MB, free: 4.211 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.0004633/0.2454, allocations: 302 kB / 433.8 MB, free: 3.887 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.041e-05/0.2455, allocations: 12.03 kB / 433.8 MB, free: 3.875 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.504e-05/0.2455, allocations: 38.75 kB / 433.9 MB, free: 3.828 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001425/0.2457, allocations: 20.88 kB / 433.9 MB, free: 3.809 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002569/0.2459, allocations: 150.8 kB / 434 MB, free: 3.637 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.398e-05/0.2459, allocations: 8.125 kB / 434 MB, free: 3.629 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.17e-05/0.2459, allocations: 4 kB / 434 MB, free: 3.625 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002869/0.2462, allocations: 113.9 kB / 434.2 MB, free: 3.492 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.357e-06/0.2462, allocations: 0 / 434.2 MB, free: 3.492 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.03e-05/0.2463, allocations: 4 kB / 434.2 MB, free: 3.488 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.999e-06/0.2463, allocations: 0 / 434.2 MB, free: 3.488 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.215e-05/0.2463, allocations: 23.92 kB / 434.2 MB, free: 3.465 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003629/0.2467, allocations: 245.6 kB / 434.4 MB, free: 3.176 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001297/0.2468, allocations: 71.78 kB / 434.5 MB, free: 3.078 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.417e-05/0.2469, allocations: 30.64 kB / 434.5 MB, free: 3.039 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.761e-05/0.2469, allocations: 3.984 kB / 434.5 MB, free: 3.035 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.28e-05/0.247, allocations: 38.5 kB / 434.6 MB, free: 2.988 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 9.72e-07/0.247, allocations: 0 / 434.6 MB, free: 2.988 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002805/0.2472, allocations: 81.56 kB / 434.6 MB, free: 2.902 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.049e-05/0.2473, allocations: 110.8 kB / 434.8 MB, free: 2.77 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001454/0.2475, allocations: 147.2 kB / 434.9 MB, free: 2.617 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.789e-05/0.2475, allocations: 30.08 kB / 434.9 MB, free: 2.582 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.212e-05/0.2476, allocations: 92.14 kB / 435 MB, free: 2.488 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.315e-05/0.2476, allocations: 0 / 435 MB, free: 2.488 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.218e-05/0.2476, allocations: 29.66 kB / 435 MB, free: 2.453 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001358/0.2478, allocations: 310.8 kB / 435.3 MB, free: 2.141 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.779e-05/0.2478, allocations: 15.98 kB / 435.4 MB, free: 2.125 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.894e-05/0.2479, allocations: 43.28 kB / 435.4 MB, free: 2.07 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.729e-05/0.248, allocations: 51.36 kB / 435.5 MB, free: 2.008 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.248, allocations: 0 / 435.5 MB, free: 2.008 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001326/0.2481, allocations: 61.62 kB / 435.5 MB, free: 1.941 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.951e-05/0.2481, allocations: 8 kB / 435.5 MB, free: 1.934 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.2481, allocations: 4 kB / 435.5 MB, free: 1.93 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.618e-05/0.2481, allocations: 3.938 kB / 435.5 MB, free: 1.926 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.022e-05/0.2482, allocations: 11.98 kB / 435.5 MB, free: 1.914 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.416e-06/0.2482, allocations: 3.938 kB / 435.5 MB, free: 1.91 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.938e-05/0.2483, allocations: 8.125 kB / 435.6 MB, free: 1.902 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.097e-06/0.2483, allocations: 4 kB / 435.6 MB, free: 1.898 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.0001043/0.2484, allocations: 125.8 kB / 435.7 MB, free: 1.766 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.351e-05/0.2485, allocations: 53.61 kB / 435.7 MB, free: 1.707 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.351e-05/0.2485, allocations: 7.953 kB / 435.7 MB, free: 1.695 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-06/0.2485, allocations: 4 kB / 435.7 MB, free: 1.691 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.2485, allocations: 3.938 kB / 435.7 MB, free: 1.688 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.2485, allocations: 0 / 435.7 MB, free: 1.688 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001828/0.2487, allocations: 144.7 kB / 435.9 MB, free: 1.504 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.2487, allocations: 64 / 435.9 MB, free: 1.504 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.18e-05/0.2488, allocations: 19.94 kB / 435.9 MB, free: 1.484 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.2488, allocations: 0 / 435.9 MB, free: 1.484 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.785e-06/0.2488, allocations: 4 kB / 435.9 MB, free: 1.48 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.243e-06/0.2488, allocations: 0 / 435.9 MB, free: 1.48 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/0.2488, allocations: 7.922 kB / 435.9 MB, free: 1.473 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001961/0.249, allocations: 173.2 kB / 436.1 MB, free: 1.281 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.871e-05/0.249, allocations: 11.95 kB / 436.1 MB, free: 1.27 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.572e-05/0.249, allocations: 4 kB / 436.1 MB, free: 1.266 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.54e-05/0.2491, allocations: 3.984 kB / 436.1 MB, free: 1.262 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.996e-05/0.2491, allocations: 15.88 kB / 436.1 MB, free: 1.246 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.868e-06/0.2491, allocations: 0 / 436.1 MB, free: 1.246 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.687e-05/0.2492, allocations: 117.5 kB / 436.2 MB, free: 1.133 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2492, allocations: 0 / 436.2 MB, free: 1.133 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000221/0.2494, allocations: 4 kB / 436.2 MB, free: 1.129 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.0005279/0.25, allocations: 0.7024 MB / 436.9 MB, free: 404 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001436/0.2501, allocations: 40.09 kB / 437 MB, free: 364 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.2501, allocations: 0 / 437 MB, free: 364 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.857e-05/0.2502, allocations: 11.94 kB / 437 MB, free: 352 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003995/0.2506, allocations: 34.64 kB / 437 MB, free: 320 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001457/0.252, allocations: 1.41 MB / 438.4 MB, free: 14.8 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.622e-05/0.2521, allocations: 79.33 kB / 438.5 MB, free: 14.7 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.226e-05/0.2521, allocations: 0 / 438.5 MB, free: 14.7 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.354e-05/0.2522, allocations: 27.36 kB / 438.5 MB, free: 14.67 MB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.2522, allocations: 0 / 438.5 MB, free: 14.67 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02818/0.2804, allocations: 2.339 MB / 440.9 MB, free: 12.48 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.54/10.82, allocations: 4 kB / 440.9 MB, free: 12.48 MB / 350.1 MB " [Timeout remaining time 649] (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] Reference file matches [Calling sys.exit(0), Time elapsed: 13.19023695201031]