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.001221/0.001221, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.00139/0.00139, allocations: 212.9 kB / 24.52 MB, free: 3.941 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.373/1.373, allocations: 230.6 MB / 258.3 MB, free: 7.797 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001414/0.001414, allocations: 47.92 kB / 378.5 MB, free: 3.008 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2322/0.2336, allocations: 53.36 MB / 431.8 MB, free: 6.688 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample): time 0.003076/0.2367, allocations: 1.569 MB / 433.4 MB, free: 5.113 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001003/0.2377, allocations: 0.5298 MB / 433.9 MB, free: 4.578 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.786e-05/0.2378, allocations: 3.938 kB / 433.9 MB, free: 4.574 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.952e-05/0.2378, allocations: 3.938 kB / 434 MB, free: 4.57 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001445/0.238, allocations: 15.92 kB / 434 MB, free: 4.555 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003296/0.2383, allocations: 59.75 kB / 434 MB, free: 4.496 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001074/0.2384, allocations: 55.78 kB / 434.1 MB, free: 4.441 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001039/0.2385, allocations: 10.3 kB / 434.1 MB, free: 4.434 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001145/0.2386, allocations: 35.84 kB / 434.1 MB, free: 4.398 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.356e-05/0.2387, allocations: 19.86 kB / 434.1 MB, free: 4.379 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.448e-05/0.2387, allocations: 4 kB / 434.1 MB, free: 4.375 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.001e-05/0.2387, allocations: 8 kB / 434.2 MB, free: 4.367 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.776e-05/0.2388, allocations: 15.92 kB / 434.2 MB, free: 4.352 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.084e-05/0.2388, allocations: 15.88 kB / 434.2 MB, free: 4.336 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001423/0.239, allocations: 67.67 kB / 434.3 MB, free: 4.27 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.239, allocations: 0 / 434.3 MB, free: 4.27 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.239, allocations: 0 / 434.3 MB, free: 4.27 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.151e-06/0.239, allocations: 0 / 434.3 MB, free: 4.27 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.000432/0.2394, allocations: 305.9 kB / 434.6 MB, free: 3.941 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.317e-05/0.2394, allocations: 12.03 kB / 434.6 MB, free: 3.93 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.456e-05/0.2395, allocations: 4.188 kB / 434.6 MB, free: 3.926 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.346e-05/0.2395, allocations: 34.75 kB / 434.6 MB, free: 3.883 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001319/0.2396, allocations: 16.88 kB / 434.6 MB, free: 3.867 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002137/0.2398, allocations: 152.7 kB / 434.8 MB, free: 3.695 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.026e-05/0.2399, allocations: 3.938 kB / 434.8 MB, free: 3.691 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.136e-05/0.2399, allocations: 4 kB / 434.8 MB, free: 3.688 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002403/0.2401, allocations: 109 kB / 434.9 MB, free: 3.562 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.364e-06/0.2401, allocations: 0 / 434.9 MB, free: 3.562 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.953e-06/0.2401, allocations: 0 / 434.9 MB, free: 3.562 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.667e-06/0.2401, allocations: 0 / 434.9 MB, free: 3.562 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7e-05/0.2402, allocations: 15.98 kB / 434.9 MB, free: 3.547 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00029/0.2405, allocations: 236.8 kB / 435.1 MB, free: 3.27 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.796e-05/0.2406, allocations: 41.22 kB / 435.2 MB, free: 3.211 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.974e-05/0.2406, allocations: 29.77 kB / 435.2 MB, free: 3.176 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.781e-05/0.2406, allocations: 3.938 kB / 435.2 MB, free: 3.172 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.666e-05/0.2407, allocations: 30.56 kB / 435.2 MB, free: 3.133 MB / 334.1 MB Notification: Performance of pre-optimization done (n=2): time 9.92e-07/0.2407, allocations: 3.938 kB / 435.2 MB, free: 3.129 MB / 334.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002288/0.2409, allocations: 73.55 kB / 435.3 MB, free: 3.051 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.926e-05/0.241, allocations: 77.11 kB / 435.4 MB, free: 2.957 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001304/0.2411, allocations: 155.2 kB / 435.5 MB, free: 2.797 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.554e-05/0.2411, allocations: 25.7 kB / 435.6 MB, free: 2.766 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.463e-05/0.2412, allocations: 96.34 kB / 435.7 MB, free: 2.668 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.188e-05/0.2412, allocations: 0 / 435.7 MB, free: 2.668 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.418e-05/0.2412, allocations: 17.72 kB / 435.7 MB, free: 2.645 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001274/0.2413, allocations: 318.8 kB / 436 MB, free: 2.324 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.968e-05/0.2414, allocations: 8 kB / 436 MB, free: 2.316 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.991e-05/0.2414, allocations: 21.7 kB / 436 MB, free: 2.289 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.034e-05/0.2415, allocations: 33.64 kB / 436 MB, free: 2.25 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-06/0.2415, allocations: 64 / 436 MB, free: 2.25 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001123/0.2416, allocations: 61.64 kB / 436.1 MB, free: 2.184 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.243e-05/0.2416, allocations: 4 kB / 436.1 MB, free: 2.18 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.797e-06/0.2416, allocations: 3.938 kB / 436.1 MB, free: 2.176 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.155e-05/0.2416, allocations: 0 / 436.1 MB, free: 2.176 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.624e-05/0.2417, allocations: 7.984 kB / 436.1 MB, free: 2.168 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.348e-06/0.2417, allocations: 7.938 kB / 436.1 MB, free: 2.16 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.138e-05/0.2417, allocations: 3.938 kB / 436.1 MB, free: 2.156 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.781e-06/0.2417, allocations: 0 / 436.1 MB, free: 2.156 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 8.705e-05/0.2418, allocations: 125.9 kB / 436.3 MB, free: 2.023 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.594e-05/0.2419, allocations: 33.66 kB / 436.3 MB, free: 1.984 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.558e-05/0.2419, allocations: 11.81 kB / 436.3 MB, free: 1.973 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.2419, allocations: 4 kB / 436.3 MB, free: 1.969 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.9e-06/0.2419, allocations: 3.938 kB / 436.3 MB, free: 1.965 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.994e-06/0.2419, allocations: 0 / 436.3 MB, free: 1.965 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001564/0.2421, allocations: 136.7 kB / 436.4 MB, free: 1.789 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.2421, allocations: 4 kB / 436.4 MB, free: 1.785 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.875e-05/0.2421, allocations: 7.938 kB / 436.5 MB, free: 1.777 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.2421, allocations: 0 / 436.5 MB, free: 1.777 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.005e-06/0.2421, allocations: 8.016 kB / 436.5 MB, free: 1.77 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.2421, allocations: 0 / 436.5 MB, free: 1.77 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.631e-06/0.2421, allocations: 7.938 kB / 436.5 MB, free: 1.762 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001614/0.2423, allocations: 156.4 kB / 436.6 MB, free: 1.59 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.099e-05/0.2423, allocations: 11.94 kB / 436.6 MB, free: 1.578 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.331e-05/0.2423, allocations: 0 / 436.6 MB, free: 1.578 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.468e-05/0.2424, allocations: 4 kB / 436.6 MB, free: 1.574 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.969e-05/0.2424, allocations: 11.92 kB / 436.6 MB, free: 1.562 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.296e-06/0.2424, allocations: 0 / 436.6 MB, free: 1.562 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.605e-05/0.2425, allocations: 113.4 kB / 436.8 MB, free: 1.453 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2425, allocations: 0 / 436.8 MB, free: 1.453 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002094/0.2427, allocations: 7.938 kB / 436.8 MB, free: 1.445 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.0004204/0.2431, allocations: 0.6898 MB / 437.5 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001135/0.2433, allocations: 31.86 kB / 437.5 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.2433, allocations: 0 / 437.5 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.762e-05/0.2433, allocations: 12.14 kB / 437.5 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003141/0.2436, allocations: 27.95 kB / 437.5 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001266/0.2449, allocations: 1.334 MB / 438.9 MB, free: 15.23 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.337e-05/0.245, allocations: 75.33 kB / 438.9 MB, free: 15.14 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.932e-05/0.245, allocations: 4.188 kB / 438.9 MB, free: 15.13 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.319e-05/0.245, allocations: 23.42 kB / 439 MB, free: 15.11 MB / 350.1 MB Notification: Performance of SimCode: time 2.6e-07/0.245, allocations: 0 / 439 MB, free: 15.11 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02059/0.2656, allocations: 1.847 MB / 440.8 MB, free: 13.42 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.6/10.87, allocations: 18.27 kB / 440.8 MB, free: 13.41 MB / 350.1 MB " [Timeout remaining time 649] (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: 13.205410045920871]