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.001286/0.001286, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.001327/0.001327, allocations: 211.8 kB / 24.51 MB, free: 3.914 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.395/1.395, allocations: 230.6 MB / 258.3 MB, free: 7.785 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.001417/0.001417, allocations: 43.94 kB / 378.5 MB, free: 2.949 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2501/0.2515, allocations: 53.36 MB / 431.9 MB, free: 6.629 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample): time 0.002762/0.2543, allocations: 1.592 MB / 433.5 MB, free: 5.031 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009503/0.2553, allocations: 0.5181 MB / 434 MB, free: 4.508 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.852e-05/0.2553, allocations: 4 kB / 434 MB, free: 4.504 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.088e-05/0.2554, allocations: 7.875 kB / 434 MB, free: 4.496 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001275/0.2555, allocations: 15.92 kB / 434 MB, free: 4.48 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002895/0.2558, allocations: 55.77 kB / 434.1 MB, free: 4.426 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000114/0.2559, allocations: 55.78 kB / 434.1 MB, free: 4.371 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.261e-05/0.256, allocations: 14.28 kB / 434.1 MB, free: 4.359 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000111/0.2561, allocations: 27.92 kB / 434.2 MB, free: 4.332 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.586e-05/0.2562, allocations: 23.86 kB / 434.2 MB, free: 4.309 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.562e-05/0.2562, allocations: 4 kB / 434.2 MB, free: 4.305 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.551e-05/0.2562, allocations: 7.938 kB / 434.2 MB, free: 4.297 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.79e-05/0.2563, allocations: 19.91 kB / 434.2 MB, free: 4.277 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.912e-05/0.2563, allocations: 15.88 kB / 434.2 MB, free: 4.262 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001386/0.2564, allocations: 71.61 kB / 434.3 MB, free: 4.191 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.2564, allocations: 0 / 434.3 MB, free: 4.191 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.2565, allocations: 0 / 434.3 MB, free: 4.191 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.599e-06/0.2565, allocations: 0 / 434.3 MB, free: 4.191 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.0004515/0.2569, allocations: 313.9 kB / 434.6 MB, free: 3.855 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.434e-05/0.2569, allocations: 12.03 kB / 434.6 MB, free: 3.844 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.082e-05/0.257, allocations: 192 / 434.6 MB, free: 3.844 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.121e-05/0.257, allocations: 34.75 kB / 434.6 MB, free: 3.801 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001396/0.2571, allocations: 20.88 kB / 434.7 MB, free: 3.781 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000227/0.2574, allocations: 142.9 kB / 434.8 MB, free: 3.617 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.081e-05/0.2574, allocations: 11.88 kB / 434.8 MB, free: 3.605 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.324e-05/0.2574, allocations: 4 kB / 434.8 MB, free: 3.602 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002685/0.2576, allocations: 113.9 kB / 434.9 MB, free: 3.469 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.844e-06/0.2577, allocations: 0 / 434.9 MB, free: 3.469 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.041e-05/0.2577, allocations: 4 kB / 434.9 MB, free: 3.465 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.2577, allocations: 0 / 434.9 MB, free: 3.465 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.944e-05/0.2577, allocations: 19.98 kB / 435 MB, free: 3.445 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003003/0.258, allocations: 245.6 kB / 435.2 MB, free: 3.156 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001252/0.2582, allocations: 71.78 kB / 435.3 MB, free: 3.059 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.413e-05/0.2582, allocations: 30.62 kB / 435.3 MB, free: 3.02 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.823e-05/0.2583, allocations: 4 kB / 435.3 MB, free: 3.016 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.371e-05/0.2583, allocations: 34.56 kB / 435.3 MB, free: 2.973 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 1.102e-06/0.2583, allocations: 0 / 435.3 MB, free: 2.973 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002628/0.2585, allocations: 89.44 kB / 435.4 MB, free: 2.879 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.233e-05/0.2586, allocations: 115.2 kB / 435.5 MB, free: 2.742 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001343/0.2587, allocations: 152.7 kB / 435.7 MB, free: 2.586 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.471e-05/0.2588, allocations: 25.7 kB / 435.7 MB, free: 2.555 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.343e-05/0.2588, allocations: 88.12 kB / 435.8 MB, free: 2.465 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.619e-05/0.2588, allocations: 8 kB / 435.8 MB, free: 2.457 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.766e-05/0.2589, allocations: 17.67 kB / 435.8 MB, free: 2.434 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001311/0.259, allocations: 318.8 kB / 436.1 MB, free: 2.113 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.132e-05/0.259, allocations: 8 kB / 436.1 MB, free: 2.105 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.354e-05/0.2591, allocations: 35.42 kB / 436.2 MB, free: 2.059 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.06e-05/0.2592, allocations: 47.36 kB / 436.2 MB, free: 2 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.2592, allocations: 0 / 436.2 MB, free: 2 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001365/0.2593, allocations: 73.55 kB / 436.3 MB, free: 1.922 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.555e-05/0.2593, allocations: 8 kB / 436.3 MB, free: 1.914 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.2593, allocations: 4 kB / 436.3 MB, free: 1.91 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.169e-05/0.2594, allocations: 128 / 436.3 MB, free: 1.91 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.855e-05/0.2594, allocations: 15.94 kB / 436.3 MB, free: 1.895 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.076e-05/0.2594, allocations: 11.92 kB / 436.3 MB, free: 1.883 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.733e-05/0.2595, allocations: 0 / 436.3 MB, free: 1.883 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.696e-06/0.2595, allocations: 4 kB / 436.3 MB, free: 1.879 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.118e-05/0.2596, allocations: 113.8 kB / 436.4 MB, free: 1.758 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.788e-05/0.2597, allocations: 61.53 kB / 436.5 MB, free: 1.691 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.997e-05/0.2597, allocations: 11.97 kB / 436.5 MB, free: 1.676 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.2597, allocations: 0 / 436.5 MB, free: 1.676 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.2597, allocations: 4 kB / 436.5 MB, free: 1.672 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.2597, allocations: 7.984 kB / 436.5 MB, free: 1.664 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001612/0.2599, allocations: 140.7 kB / 436.7 MB, free: 1.484 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.123e-06/0.2599, allocations: 0 / 436.7 MB, free: 1.484 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.893e-05/0.2599, allocations: 11.98 kB / 436.7 MB, free: 1.473 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.921e-06/0.2599, allocations: 4 kB / 436.7 MB, free: 1.469 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.723e-06/0.2599, allocations: 0 / 436.7 MB, free: 1.469 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.2599, allocations: 3.938 kB / 436.7 MB, free: 1.465 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.2599, allocations: 3.938 kB / 436.7 MB, free: 1.461 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001881/0.2601, allocations: 181.3 kB / 436.9 MB, free: 1.262 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.061e-05/0.2602, allocations: 23.94 kB / 436.9 MB, free: 1.238 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.401e-05/0.2602, allocations: 0 / 436.9 MB, free: 1.238 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.611e-05/0.2602, allocations: 3.938 kB / 436.9 MB, free: 1.234 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.931e-05/0.2603, allocations: 11.92 kB / 436.9 MB, free: 1.223 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.577e-06/0.2603, allocations: 0 / 436.9 MB, free: 1.223 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.654e-05/0.2603, allocations: 107.3 kB / 437 MB, free: 1.117 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2603, allocations: 0 / 437 MB, free: 1.117 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002222/0.2606, allocations: 8 kB / 437 MB, free: 1.109 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.0004753/0.261, allocations: 0.7176 MB / 437.7 MB, free: 372 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000137/0.2612, allocations: 35.86 kB / 437.8 MB, free: 336 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.2612, allocations: 0 / 437.8 MB, free: 336 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.581e-05/0.2612, allocations: 7.984 kB / 437.8 MB, free: 328 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003387/0.2616, allocations: 31.95 kB / 437.8 MB, free: 296 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001356/0.2629, allocations: 1.41 MB / 439.2 MB, free: 14.77 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.371e-05/0.263, allocations: 75.33 kB / 439.3 MB, free: 14.68 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.136e-05/0.263, allocations: 7.984 kB / 439.3 MB, free: 14.67 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.974e-05/0.2631, allocations: 11.44 kB / 439.3 MB, free: 14.66 MB / 350.1 MB Notification: Performance of SimCode: time 5.21e-07/0.2631, allocations: 0 / 439.3 MB, free: 14.66 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02107/0.2841, allocations: 1.986 MB / 441.3 MB, free: 12.84 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.41/10.7, allocations: 14.33 kB / 441.3 MB, free: 12.82 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.101638657972217]