Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001298/0.001298, allocations: 120 kB / 18.49 MB, free: 4.59 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001394/0.001394, allocations: 214.3 kB / 21.45 MB, free: 1.637 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.778/1.778, allocations: 230.5 MB / 254.7 MB, free: 14.84 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Hold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_Hold",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Hold,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_Hold",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002358/0.002358, allocations: 59.91 kB / 373.7 MB, free: 10.08 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1535/0.1558, allocations: 53.37 MB / 427.1 MB, free: 4.613 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Hold): time 0.00359/0.1594, allocations: 1.626 MB / 428.7 MB, free: 2.98 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001367/0.1608, allocations: 0.5726 MB / 429.3 MB, free: 2.402 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001194/0.1609, allocations: 7.938 kB / 429.3 MB, free: 2.395 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.573e-05/0.161, allocations: 11.88 kB / 429.3 MB, free: 2.383 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001973/0.1612, allocations: 11.86 kB / 429.3 MB, free: 2.371 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003647/0.1615, allocations: 67.75 kB / 429.4 MB, free: 2.305 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001479/0.1617, allocations: 55.78 kB / 429.4 MB, free: 2.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001325/0.1618, allocations: 19.97 kB / 429.4 MB, free: 2.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001462/0.162, allocations: 27.86 kB / 429.5 MB, free: 2.203 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.182e-05/0.162, allocations: 27.8 kB / 429.5 MB, free: 2.176 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.08e-05/0.1621, allocations: 4 kB / 429.5 MB, free: 2.172 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.353e-05/0.1621, allocations: 11.98 kB / 429.5 MB, free: 2.16 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.71e-05/0.1622, allocations: 15.92 kB / 429.5 MB, free: 2.145 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.494e-05/0.1622, allocations: 31.81 kB / 429.6 MB, free: 2.113 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001874/0.1624, allocations: 67.66 kB / 429.6 MB, free: 2.047 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.1624, allocations: 0 / 429.6 MB, free: 2.047 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.1624, allocations: 3.938 kB / 429.6 MB, free: 2.043 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.541e-06/0.1624, allocations: 0 / 429.6 MB, free: 2.043 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.000667/0.1631, allocations: 391 kB / 430 MB, free: 1.613 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.343e-05/0.1631, allocations: 8.031 kB / 430 MB, free: 1.605 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.379e-05/0.1631, allocations: 192 / 430 MB, free: 1.605 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.824e-05/0.1632, allocations: 38.73 kB / 430.1 MB, free: 1.559 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001712/0.1634, allocations: 20.88 kB / 430.1 MB, free: 1.539 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003272/0.1637, allocations: 212.6 kB / 430.3 MB, free: 1.293 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.3e-05/0.1637, allocations: 12.12 kB / 430.3 MB, free: 1.281 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.866e-05/0.1637, allocations: 4 kB / 430.3 MB, free: 1.277 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003579/0.1641, allocations: 134.7 kB / 430.4 MB, free: 1.121 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.082e-05/0.1641, allocations: 0 / 430.4 MB, free: 1.121 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.04e-05/0.1641, allocations: 3.938 kB / 430.4 MB, free: 1.117 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.43e-06/0.1641, allocations: 0 / 430.4 MB, free: 1.117 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.796e-05/0.1642, allocations: 27.98 kB / 430.5 MB, free: 1.09 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000446/0.1646, allocations: 295.4 kB / 430.7 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001594/0.1648, allocations: 90.42 kB / 430.8 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001036/0.1649, allocations: 43.48 kB / 430.9 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.958e-05/0.1649, allocations: 0 / 430.9 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.478e-05/0.165, allocations: 42.5 kB / 430.9 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 1.292e-06/0.165, allocations: 4 kB / 430.9 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003435/0.1653, allocations: 101.5 kB / 431 MB, free: 412 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001165/0.1654, allocations: 132.5 kB / 431.2 MB, free: 248 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000161/0.1656, allocations: 154.3 kB / 431.3 MB, free: 76 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.003e-05/0.1656, allocations: 26.2 kB / 431.3 MB, free: 44 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.3094/0.475, allocations: 90.83 kB / 431.4 MB, free: 10.93 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.204e-05/0.4751, allocations: 7.281 kB / 431.4 MB, free: 10.93 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.634e-05/0.4751, allocations: 21.44 kB / 431.4 MB, free: 10.91 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.251e-05/0.4752, allocations: 318.7 kB / 431.8 MB, free: 10.6 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.32e-05/0.4753, allocations: 14.52 kB / 431.8 MB, free: 10.6 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.784e-05/0.4753, allocations: 38.69 kB / 431.8 MB, free: 10.56 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001122/0.4755, allocations: 65.2 kB / 431.9 MB, free: 10.52 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.4755, allocations: 0.75 kB / 431.9 MB, free: 10.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002048/0.4757, allocations: 85.92 kB / 432 MB, free: 10.49 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.097e-05/0.4757, allocations: 6.375 kB / 432 MB, free: 10.49 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.773e-06/0.4757, allocations: 2.625 kB / 432 MB, free: 10.49 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.154e-05/0.4757, allocations: 2.062 kB / 432 MB, free: 10.49 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001029/0.4758, allocations: 13.11 kB / 432 MB, free: 10.49 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.117e-06/0.4758, allocations: 5.172 kB / 432 MB, free: 10.49 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.843e-05/0.4759, allocations: 6.641 kB / 432 MB, free: 10.49 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.096e-05/0.4759, allocations: 6.312 kB / 432 MB, free: 10.49 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (6): * Single equations (assignments): 6 * 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.517e-05/0.476, allocations: 126.8 kB / 432.1 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.547e-05/0.4761, allocations: 54.36 kB / 432.2 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.227e-05/0.4761, allocations: 20.14 kB / 432.2 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.4761, allocations: 2.984 kB / 432.2 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.4761, allocations: 0.8438 kB / 432.2 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-06/0.4761, allocations: 3.938 kB / 432.2 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001803/0.4763, allocations: 174.8 kB / 432.4 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.4763, allocations: 0.6562 kB / 432.4 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.035e-05/0.4764, allocations: 17.33 kB / 432.4 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.4764, allocations: 5.531 kB / 432.4 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.096e-05/0.4764, allocations: 5.844 kB / 432.4 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.507e-06/0.4764, allocations: 4.031 kB / 432.4 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.4764, allocations: 1.25 kB / 432.4 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002103/0.4766, allocations: 194.3 kB / 432.6 MB, free: 9.984 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.489e-05/0.4767, allocations: 97.78 kB / 432.7 MB, free: 9.883 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.237e-05/0.4767, allocations: 10.14 kB / 432.7 MB, free: 9.879 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.137e-05/0.4768, allocations: 3.922 kB / 432.7 MB, free: 9.879 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.099e-05/0.4768, allocations: 4.922 kB / 432.7 MB, free: 9.879 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.171e-06/0.4768, allocations: 3.188 kB / 432.7 MB, free: 9.879 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.646e-05/0.4769, allocations: 115 kB / 432.8 MB, free: 9.805 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4769, allocations: 0.9062 kB / 432.8 MB, free: 9.805 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002366/0.4771, allocations: 14.28 kB / 432.8 MB, free: 9.805 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (6): * Single equations (assignments): 6 * 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.0003473/0.4775, allocations: 0.7327 MB / 433.6 MB, free: 9.121 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001894/0.4777, allocations: 45.27 kB / 433.6 MB, free: 9.121 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.4777, allocations: 0 / 433.6 MB, free: 9.121 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.655e-05/0.4777, allocations: 14.52 kB / 433.6 MB, free: 9.121 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004053/0.4781, allocations: 32.58 kB / 433.7 MB, free: 9.121 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00127/0.4794, allocations: 1.472 MB / 435.1 MB, free: 7.848 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001381/0.4795, allocations: 0.6986 MB / 435.8 MB, free: 7.148 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.613e-05/0.4796, allocations: 8.188 kB / 435.8 MB, free: 7.148 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.836e-05/0.4796, allocations: 17.5 kB / 435.9 MB, free: 7.141 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.4796, allocations: 1.281 kB / 435.9 MB, free: 7.141 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0194/0.499, allocations: 1.935 MB / 437.8 MB, free: 6.746 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.285/8.784, allocations: 17.31 kB / 437.8 MB, free: 6.742 MB / 350.1 MB " [Timeout remaining time 651] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_Hold_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_Hold.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/Hold/Hold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.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,hold1.y Variables in the result:hold1.u,hold1.y,hold1.y_start,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: 11.763232648023404]