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.001499/0.001499, allocations: 112.2 kB / 21.22 MB, free: 0.7305 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.001629/0.001629, allocations: 212.2 kB / 24.53 MB, free: 4.07 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.366/1.366, allocations: 230.6 MB / 258.3 MB, free: 7.996 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.001414/0.001414, allocations: 51.92 kB / 378.6 MB, free: 3.121 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2309/0.2324, allocations: 53.35 MB / 431.9 MB, free: 6.855 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample): time 0.002861/0.2352, allocations: 1.621 MB / 433.5 MB, free: 5.23 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009937/0.2362, allocations: 0.5609 MB / 434.1 MB, free: 4.664 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.486e-05/0.2363, allocations: 7.938 kB / 434.1 MB, free: 4.656 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.418e-05/0.2363, allocations: 7.922 kB / 434.1 MB, free: 4.648 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001379/0.2365, allocations: 15.88 kB / 434.1 MB, free: 4.633 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003169/0.2368, allocations: 59.81 kB / 434.2 MB, free: 4.574 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001212/0.2369, allocations: 47.84 kB / 434.2 MB, free: 4.527 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001014/0.237, allocations: 20.09 kB / 434.3 MB, free: 4.508 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001216/0.2371, allocations: 31.8 kB / 434.3 MB, free: 4.477 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.611e-05/0.2372, allocations: 19.91 kB / 434.3 MB, free: 4.457 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.165e-05/0.2372, allocations: 4 kB / 434.3 MB, free: 4.453 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.416e-05/0.2373, allocations: 16 kB / 434.3 MB, free: 4.438 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.656e-05/0.2373, allocations: 15.92 kB / 434.3 MB, free: 4.422 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.697e-05/0.2374, allocations: 23.75 kB / 434.4 MB, free: 4.398 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000158/0.2375, allocations: 60.58 kB / 434.4 MB, free: 4.344 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.2375, allocations: 0 / 434.4 MB, free: 4.344 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2375, allocations: 0 / 434.4 MB, free: 4.344 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.259e-06/0.2375, allocations: 4 kB / 434.4 MB, free: 4.34 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.0004897/0.238, allocations: 301.9 kB / 434.7 MB, free: 4.016 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.963e-05/0.2381, allocations: 12.03 kB / 434.7 MB, free: 4.004 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.389e-05/0.2381, allocations: 4.188 kB / 434.7 MB, free: 4 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.732e-05/0.2381, allocations: 42.67 kB / 434.8 MB, free: 3.949 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001453/0.2382, allocations: 16.89 kB / 434.8 MB, free: 3.934 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002847/0.2385, allocations: 146.9 kB / 434.9 MB, free: 3.766 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.234e-06/0.2385, allocations: 3.938 kB / 434.9 MB, free: 3.762 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.441e-05/0.2386, allocations: 4 kB / 435 MB, free: 3.758 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002805/0.2388, allocations: 113.9 kB / 435.1 MB, free: 3.625 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.133e-06/0.2388, allocations: 0 / 435.1 MB, free: 3.625 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.111e-05/0.2389, allocations: 4 kB / 435.1 MB, free: 3.621 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/0.2389, allocations: 0 / 435.1 MB, free: 3.621 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.623e-05/0.2389, allocations: 27.91 kB / 435.1 MB, free: 3.594 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000331/0.2393, allocations: 245.7 kB / 435.3 MB, free: 3.305 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001148/0.2394, allocations: 63.8 kB / 435.4 MB, free: 3.215 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.034e-05/0.2395, allocations: 42.56 kB / 435.4 MB, free: 3.164 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.691e-05/0.2395, allocations: 3.938 kB / 435.4 MB, free: 3.16 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.511e-05/0.2395, allocations: 34.55 kB / 435.5 MB, free: 3.117 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 1.183e-06/0.2395, allocations: 0 / 435.5 MB, free: 3.117 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002644/0.2398, allocations: 89.83 kB / 435.6 MB, free: 3.023 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.072e-05/0.2398, allocations: 114.8 kB / 435.7 MB, free: 2.887 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001304/0.24, allocations: 147.8 kB / 435.8 MB, free: 2.734 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.789e-05/0.24, allocations: 29.7 kB / 435.8 MB, free: 2.699 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.903e-05/0.2401, allocations: 88.14 kB / 435.9 MB, free: 2.609 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.264e-05/0.2401, allocations: 0 / 435.9 MB, free: 2.609 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.914e-05/0.2401, allocations: 21.67 kB / 436 MB, free: 2.582 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001306/0.2402, allocations: 322.9 kB / 436.3 MB, free: 2.258 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.355e-05/0.2403, allocations: 11.98 kB / 436.3 MB, free: 2.246 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.414e-05/0.2403, allocations: 27.44 kB / 436.3 MB, free: 2.207 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.742e-05/0.2404, allocations: 55.36 kB / 436.4 MB, free: 2.141 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.2404, allocations: 0 / 436.4 MB, free: 2.141 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001323/0.2406, allocations: 69.55 kB / 436.4 MB, free: 2.066 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.431e-05/0.2406, allocations: 4 kB / 436.4 MB, free: 2.062 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.677e-06/0.2406, allocations: 0 / 436.4 MB, free: 2.062 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.522e-05/0.2406, allocations: 8 kB / 436.4 MB, free: 2.055 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.444e-05/0.2407, allocations: 20.05 kB / 436.5 MB, free: 2.035 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.144e-06/0.2407, allocations: 3.938 kB / 436.5 MB, free: 2.031 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.007e-05/0.2407, allocations: 4 kB / 436.5 MB, free: 2.027 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.007e-06/0.2407, allocations: 4 kB / 436.5 MB, free: 2.023 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 8.982e-05/0.2408, allocations: 117.8 kB / 436.6 MB, free: 1.898 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.303e-05/0.2409, allocations: 57.55 kB / 436.6 MB, free: 1.836 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.429e-05/0.2409, allocations: 15.95 kB / 436.7 MB, free: 1.816 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.2409, allocations: 0 / 436.7 MB, free: 1.816 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.62e-06/0.2409, allocations: 8 kB / 436.7 MB, free: 1.809 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.241, allocations: 4 kB / 436.7 MB, free: 1.805 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000168/0.2411, allocations: 140.7 kB / 436.8 MB, free: 1.625 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.2411, allocations: 4 kB / 436.8 MB, free: 1.621 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.579e-05/0.2412, allocations: 7.984 kB / 436.8 MB, free: 1.613 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.2412, allocations: 4 kB / 436.8 MB, free: 1.609 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.143e-06/0.2412, allocations: 0 / 436.8 MB, free: 1.609 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.2412, allocations: 0 / 436.8 MB, free: 1.609 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.459e-06/0.2412, allocations: 11.88 kB / 436.8 MB, free: 1.598 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000196/0.2414, allocations: 181.1 kB / 437 MB, free: 1.398 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.659e-05/0.2414, allocations: 12.08 kB / 437 MB, free: 1.387 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.758e-05/0.2414, allocations: 4 kB / 437 MB, free: 1.383 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.697e-05/0.2415, allocations: 3.984 kB / 437 MB, free: 1.379 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.443e-05/0.2415, allocations: 11.94 kB / 437 MB, free: 1.367 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.921e-06/0.2415, allocations: 3.984 kB / 437 MB, free: 1.363 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.364e-05/0.2416, allocations: 112.8 kB / 437.2 MB, free: 1.254 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2416, allocations: 0 / 437.2 MB, free: 1.254 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002197/0.2419, allocations: 4 kB / 437.2 MB, free: 1.25 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.0005286/0.2424, allocations: 0.7102 MB / 437.9 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001407/0.2425, allocations: 39.86 kB / 437.9 MB, free: 480 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.2425, allocations: 0 / 437.9 MB, free: 480 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.888e-05/0.2426, allocations: 7.984 kB / 437.9 MB, free: 472 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003536/0.2429, allocations: 30.95 kB / 438 MB, free: 444 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001421/0.2443, allocations: 1.412 MB / 439.4 MB, free: 14.92 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003715/0.2447, allocations: 0.6954 MB / 440.1 MB, free: 14.2 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.319e-05/0.2447, allocations: 7.984 kB / 440.1 MB, free: 14.19 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.189e-05/0.2448, allocations: 15.44 kB / 440.1 MB, free: 14.18 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.2448, allocations: 0 / 440.1 MB, free: 14.18 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02149/0.2663, allocations: 1.9 MB / 442 MB, free: 12.43 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.41/10.67, allocations: 7.922 kB / 442 MB, free: 12.42 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] "" 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: 13.076998562028166]