Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001246/0.001246, allocations: 101.5 kB / 21.21 MB, free: 0.6289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001294/0.001294, allocations: 191.4 kB / 24.49 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.352/1.352, allocations: 225.7 MB / 253.3 MB, free: 12.82 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_ShiftSample",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_ShiftSample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001443/0.001443, allocations: 43.92 kB / 371.2 MB, free: 9.668 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2374/0.2388, allocations: 52.18 MB / 423.4 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample): time 0.002794/0.2416, allocations: 1.58 MB / 424.9 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008227/0.2425, allocations: 466.8 kB / 425.4 MB, free: 12.33 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.98e-05/0.2425, allocations: 3.938 kB / 425.4 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.926e-05/0.2426, allocations: 3.938 kB / 425.4 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001245/0.2427, allocations: 15.86 kB / 425.4 MB, free: 12.3 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002544/0.2429, allocations: 47.83 kB / 425.5 MB, free: 12.26 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001023/0.243, allocations: 43.86 kB / 425.5 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.169e-05/0.2431, allocations: 18.28 kB / 425.5 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.06e-05/0.2432, allocations: 23.86 kB / 425.6 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.439e-05/0.2433, allocations: 23.86 kB / 425.6 MB, free: 12.15 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.7e-05/0.2433, allocations: 4 kB / 425.6 MB, free: 12.15 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.107e-05/0.2433, allocations: 0 / 425.6 MB, free: 12.15 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.911e-05/0.2433, allocations: 15.92 kB / 425.6 MB, free: 12.13 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.101e-05/0.2434, allocations: 19.88 kB / 425.6 MB, free: 12.11 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001154/0.2435, allocations: 59.67 kB / 425.7 MB, free: 12.05 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.2435, allocations: 0 / 425.7 MB, free: 12.05 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.2435, allocations: 0 / 425.7 MB, free: 12.05 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.308e-06/0.2435, allocations: 0 / 425.7 MB, free: 12.05 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.0004548/0.244, allocations: 310 kB / 426 MB, free: 11.72 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.52e-05/0.244, allocations: 12.02 kB / 426 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.326e-05/0.244, allocations: 4.188 kB / 426 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.008e-05/0.244, allocations: 34.69 kB / 426 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.514e-05/0.2441, allocations: 8.891 kB / 426 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002404/0.2443, allocations: 153.2 kB / 426.2 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.408e-06/0.2443, allocations: 8.375 kB / 426.2 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.521e-05/0.2443, allocations: 4.125 kB / 426.2 MB, free: 11.47 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002561/0.2446, allocations: 113.9 kB / 426.3 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.296e-06/0.2446, allocations: 0 / 426.3 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.814e-05/0.2446, allocations: 8 kB / 426.3 MB, free: 11.33 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.2446, allocations: 0 / 426.3 MB, free: 11.33 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.97e-05/0.2447, allocations: 23.92 kB / 426.3 MB, free: 11.31 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003055/0.245, allocations: 237.7 kB / 426.6 MB, free: 11.03 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001159/0.2451, allocations: 71.78 kB / 426.6 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.687e-05/0.2452, allocations: 30.62 kB / 426.7 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.236e-05/0.2452, allocations: 3.938 kB / 426.7 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.128e-05/0.2452, allocations: 34.56 kB / 426.7 MB, free: 10.84 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 1.112e-06/0.2452, allocations: 0 / 426.7 MB, free: 10.84 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002582/0.2455, allocations: 85.56 kB / 426.8 MB, free: 10.75 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.679e-05/0.2456, allocations: 111.1 kB / 426.9 MB, free: 10.62 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001261/0.2457, allocations: 145.8 kB / 427 MB, free: 10.47 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.64e-05/0.2457, allocations: 25.7 kB / 427.1 MB, free: 10.44 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.432e-05/0.2458, allocations: 96.08 kB / 427.2 MB, free: 10.34 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.44e-05/0.2458, allocations: 7.938 kB / 427.2 MB, free: 10.33 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.518e-05/0.2458, allocations: 17.72 kB / 427.2 MB, free: 10.31 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001407/0.246, allocations: 318.8 kB / 427.5 MB, free: 9.988 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.371e-05/0.246, allocations: 15.98 kB / 427.5 MB, free: 9.973 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.382e-05/0.2461, allocations: 31.42 kB / 427.5 MB, free: 9.93 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000101/0.2462, allocations: 55.36 kB / 427.6 MB, free: 9.863 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.2462, allocations: 0 / 427.6 MB, free: 9.863 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001324/0.2463, allocations: 65.58 kB / 427.7 MB, free: 9.793 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.218e-05/0.2463, allocations: 4 kB / 427.7 MB, free: 9.789 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.737e-06/0.2463, allocations: 0 / 427.7 MB, free: 9.789 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.591e-05/0.2463, allocations: 7.984 kB / 427.7 MB, free: 9.781 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.271e-05/0.2464, allocations: 16.06 kB / 427.7 MB, free: 9.766 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.799e-06/0.2464, allocations: 0 / 427.7 MB, free: 9.766 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.993e-05/0.2464, allocations: 4.094 kB / 427.7 MB, free: 9.762 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.256e-06/0.2465, allocations: 4 kB / 427.7 MB, free: 9.758 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 9.786e-05/0.2466, allocations: 125.8 kB / 427.8 MB, free: 9.625 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.722e-05/0.2466, allocations: 57.56 kB / 427.9 MB, free: 9.562 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.053e-05/0.2467, allocations: 11.91 kB / 427.9 MB, free: 9.547 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.2467, allocations: 0 / 427.9 MB, free: 9.547 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.2467, allocations: 4 kB / 427.9 MB, free: 9.543 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.2467, allocations: 4.062 kB / 427.9 MB, free: 9.539 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001743/0.2469, allocations: 144.7 kB / 428 MB, free: 9.355 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.2469, allocations: 0 / 428 MB, free: 9.355 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.656e-05/0.2469, allocations: 8 kB / 428 MB, free: 9.348 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.704e-06/0.2469, allocations: 0 / 428 MB, free: 9.348 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.866e-06/0.2469, allocations: 4 kB / 428 MB, free: 9.344 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.719e-06/0.2469, allocations: 3.984 kB / 428.1 MB, free: 9.34 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.2469, allocations: 4 kB / 428.1 MB, free: 9.336 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001991/0.2471, allocations: 177.1 kB / 428.2 MB, free: 9.141 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.784e-05/0.2472, allocations: 15.95 kB / 428.2 MB, free: 9.125 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.762e-05/0.2472, allocations: 7.984 kB / 428.3 MB, free: 9.117 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.845e-05/0.2473, allocations: 4 kB / 428.3 MB, free: 9.113 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.569e-05/0.2473, allocations: 0 / 428.3 MB, free: 9.113 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.382e-06/0.2473, allocations: 4 kB / 428.3 MB, free: 9.109 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.642e-05/0.2474, allocations: 110.2 kB / 428.4 MB, free: 9.004 MB / 334.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.2474, allocations: 0 / 428.4 MB, free: 9.004 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002189/0.2476, allocations: 12 kB / 428.4 MB, free: 8.992 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.0005001/0.2481, allocations: 0.7101 MB / 429.1 MB, free: 8.25 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001316/0.2482, allocations: 39.91 kB / 429.1 MB, free: 8.211 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.2482, allocations: 0 / 429.1 MB, free: 8.211 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.238e-05/0.2482, allocations: 4 kB / 429.1 MB, free: 8.207 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003367/0.2486, allocations: 32.02 kB / 429.2 MB, free: 8.176 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001419/0.25, allocations: 1.401 MB / 430.6 MB, free: 6.668 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.73e-05/0.2501, allocations: 83.44 kB / 430.6 MB, free: 6.566 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.103e-05/0.2501, allocations: 3.984 kB / 430.6 MB, free: 6.562 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.579e-05/0.2502, allocations: 15.44 kB / 430.7 MB, free: 6.547 MB / 334.1 MB Notification: Performance of SimCode: time 5.01e-07/0.2502, allocations: 0 / 430.7 MB, free: 6.547 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02164/0.2718, allocations: 1.945 MB / 432.6 MB, free: 4.758 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.58/10.86, allocations: 7.438 kB / 432.6 MB, free: 4.754 MB / 334.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79319e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_ShiftSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.f,sine.offset,sine.phase,sine.startTime,sine.y,time [Calling sys.exit(0), Time elapsed: 13.20351199398283]