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.001063/0.001063, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0007989/0.0007989, allocations: 174 kB / 23.94 MB, free: 0.6172 MB / 18.57 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 0.9445/0.9445, allocations: 177.1 MB / 204.3 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] 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 1.964e-06/1.964e-06, allocations: 0 / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.081e-05/2.277e-05, allocations: 2.281 kB / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample): time 0.002196/0.002219, allocations: 1.606 MB / 326.2 MB, free: 14.32 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008208/0.00304, allocations: 0.5219 MB / 326.7 MB, free: 13.8 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.784e-05/0.003138, allocations: 7.938 kB / 326.7 MB, free: 13.79 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 5.21e-05/0.00319, allocations: 3.938 kB / 326.7 MB, free: 13.79 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001714/0.003361, allocations: 11.86 kB / 326.7 MB, free: 13.77 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003503/0.003712, allocations: 63.75 kB / 326.8 MB, free: 13.71 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001139/0.003826, allocations: 51.78 kB / 326.8 MB, free: 13.66 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001028/0.003928, allocations: 12.12 kB / 326.9 MB, free: 13.65 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001394/0.004068, allocations: 43.83 kB / 326.9 MB, free: 13.61 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.12e-05/0.004119, allocations: 7.984 kB / 326.9 MB, free: 13.6 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.651e-05/0.004135, allocations: 8 kB / 326.9 MB, free: 13.59 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.106e-05/0.004176, allocations: 4 kB / 326.9 MB, free: 13.59 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.529e-05/0.004222, allocations: 19.92 kB / 326.9 MB, free: 13.57 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.421e-05/0.004246, allocations: 15.92 kB / 326.9 MB, free: 13.55 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001375/0.004383, allocations: 59.8 kB / 327 MB, free: 13.49 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.465e-06/0.004386, allocations: 0 / 327 MB, free: 13.49 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.004387, allocations: 0 / 327 MB, free: 13.49 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.378e-06/0.004392, allocations: 0 / 327 MB, free: 13.49 MB / 298.7 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.0003797/0.004772, allocations: 309.9 kB / 327.3 MB, free: 13.16 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.848e-05/0.00481, allocations: 11.97 kB / 327.3 MB, free: 13.15 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.328e-05/0.004843, allocations: 38.75 kB / 327.4 MB, free: 13.1 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001001/0.004943, allocations: 20.88 kB / 327.4 MB, free: 13.08 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00018/0.005123, allocations: 142.2 kB / 327.5 MB, free: 12.92 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.387e-06/0.005133, allocations: 4.375 kB / 327.5 MB, free: 12.91 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.826e-06/0.005142, allocations: 384 / 327.5 MB, free: 12.91 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002223/0.005364, allocations: 126 kB / 327.6 MB, free: 12.77 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.886e-06/0.005373, allocations: 8 kB / 327.7 MB, free: 12.76 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.825e-06/0.005381, allocations: 0 / 327.7 MB, free: 12.76 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.005385, allocations: 0 / 327.7 MB, free: 12.76 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.869e-05/0.005434, allocations: 23.92 kB / 327.7 MB, free: 12.74 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000266/0.0057, allocations: 241.7 kB / 327.9 MB, free: 12.45 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.556e-05/0.005776, allocations: 67.78 kB / 328 MB, free: 12.36 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.032e-05/0.005816, allocations: 30.62 kB / 328 MB, free: 12.32 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.057e-05/0.005837, allocations: 11.94 kB / 328 MB, free: 12.31 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.261e-05/0.005859, allocations: 34.56 kB / 328.1 MB, free: 12.27 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 9.72e-07/0.00586, allocations: 3.938 kB / 328.1 MB, free: 12.26 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002038/0.006064, allocations: 81.56 kB / 328.1 MB, free: 12.18 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.382e-05/0.006128, allocations: 114.7 kB / 328.3 MB, free: 12.04 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.919e-05/0.006227, allocations: 152.8 kB / 328.4 MB, free: 11.88 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.293e-05/0.00624, allocations: 25.7 kB / 328.4 MB, free: 11.85 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.859e-05/0.006278, allocations: 88.5 kB / 328.5 MB, free: 11.76 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.171e-05/0.00629, allocations: 8 kB / 328.5 MB, free: 11.75 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.487e-05/0.006315, allocations: 17.67 kB / 328.5 MB, free: 11.73 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.319e-05/0.006398, allocations: 318.8 kB / 328.8 MB, free: 11.41 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.254e-05/0.006421, allocations: 11.98 kB / 328.9 MB, free: 11.4 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.611e-05/0.006437, allocations: 4 kB / 328.9 MB, free: 11.39 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.789e-05/0.006475, allocations: 16.84 kB / 328.9 MB, free: 11.38 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.006477, allocations: 0 / 328.9 MB, free: 11.38 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.231e-05/0.006539, allocations: 53.75 kB / 328.9 MB, free: 11.32 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.218e-05/0.006551, allocations: 4 kB / 328.9 MB, free: 11.31 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.379e-06/0.006556, allocations: 3.938 kB / 328.9 MB, free: 11.31 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.395e-05/0.00657, allocations: 0 / 328.9 MB, free: 11.31 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.282e-05/0.006622, allocations: 7.984 kB / 328.9 MB, free: 11.3 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.14e-06/0.006628, allocations: 0 / 328.9 MB, free: 11.3 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.702e-05/0.006645, allocations: 4 kB / 329 MB, free: 11.3 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.827e-06/0.006653, allocations: 3.984 kB / 329 MB, free: 11.29 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (1): * Single equations (assignments): 1 * 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 6.506e-05/0.006718, allocations: 121.8 kB / 329.1 MB, free: 11.16 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.915e-05/0.006768, allocations: 53.69 kB / 329.1 MB, free: 11.11 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.047e-05/0.006798, allocations: 11.95 kB / 329.1 MB, free: 11.09 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.437e-06/0.006801, allocations: 7.938 kB / 329.1 MB, free: 11.09 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.006806, allocations: 0 / 329.1 MB, free: 11.09 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.00681, allocations: 0 / 329.1 MB, free: 11.09 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001232/0.006934, allocations: 144.7 kB / 329.3 MB, free: 10.9 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.006936, allocations: 4 kB / 329.3 MB, free: 10.9 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.132e-05/0.006967, allocations: 8 kB / 329.3 MB, free: 10.89 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.006969, allocations: 0 / 329.3 MB, free: 10.89 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.045e-06/0.006977, allocations: 4 kB / 329.3 MB, free: 10.89 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.006979, allocations: 0 / 329.3 MB, free: 10.89 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.00698, allocations: 4.062 kB / 329.3 MB, free: 10.88 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001266/0.007106, allocations: 185 kB / 329.5 MB, free: 10.68 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.913e-05/0.007135, allocations: 15.94 kB / 329.5 MB, free: 10.66 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.842e-05/0.007154, allocations: 7.938 kB / 329.5 MB, free: 10.66 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.778e-05/0.007192, allocations: 3.984 kB / 329.5 MB, free: 10.65 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.227e-05/0.007224, allocations: 4 kB / 329.5 MB, free: 10.65 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.357e-06/0.007227, allocations: 0 / 329.5 MB, free: 10.65 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.088e-05/0.007278, allocations: 119.2 kB / 329.6 MB, free: 10.53 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007278, allocations: 0 / 329.6 MB, free: 10.53 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001446/0.007423, allocations: 8 kB / 329.6 MB, free: 10.52 MB / 298.7 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.0002758/0.007698, allocations: 0.7063 MB / 330.3 MB, free: 9.785 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 8.441e-05/0.007783, allocations: 23.92 kB / 330.4 MB, free: 9.762 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.007785, allocations: 4 kB / 330.4 MB, free: 9.758 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 1.775e-05/0.007803, allocations: 11.98 kB / 330.4 MB, free: 9.746 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002579/0.008061, allocations: 32.11 kB / 330.4 MB, free: 9.715 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009453/0.009006, allocations: 1.323 MB / 331.7 MB, free: 8.297 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.031e-05/0.009067, allocations: 83.02 kB / 331.8 MB, free: 8.195 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.065e-05/0.009097, allocations: 7.984 kB / 331.8 MB, free: 8.188 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.985e-05/0.009137, allocations: 16.5 kB / 331.8 MB, free: 8.172 MB / 298.7 MB Notification: Performance of SimCode: time 4.2e-07/0.009138, allocations: 7.969 kB / 331.9 MB, free: 8.164 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01718/0.02632, allocations: 2.416 MB / 334.3 MB, free: 5.879 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.257/7.284, allocations: 15.86 kB / 334.3 MB, free: 5.863 MB / 298.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins/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: 9.027411839924753]