Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.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.001323/0.001323, allocations: 108.6 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.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.001503/0.001503, allocations: 191.5 kB / 24.51 MB, free: 4.086 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.396/1.396, allocations: 225.6 MB / 253.3 MB, free: 13.03 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.Hold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Hold",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Hold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Hold",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001591/0.001591, allocations: 47.92 kB / 371.2 MB, free: 9.855 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2564/0.258, allocations: 52.18 MB / 423.4 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Hold): time 0.003356/0.2614, allocations: 1.638 MB / 425.1 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009381/0.2623, allocations: 0.5026 MB / 425.6 MB, free: 12.44 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.008e-05/0.2624, allocations: 7.938 kB / 425.6 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.779e-05/0.2625, allocations: 7.922 kB / 425.6 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001312/0.2626, allocations: 7.875 kB / 425.6 MB, free: 12.42 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002789/0.2629, allocations: 55.83 kB / 425.6 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001292/0.263, allocations: 55.78 kB / 425.7 MB, free: 12.31 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.912e-05/0.2631, allocations: 15.97 kB / 425.7 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.528e-05/0.2632, allocations: 27.88 kB / 425.7 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.367e-05/0.2632, allocations: 27.8 kB / 425.8 MB, free: 12.24 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.609e-05/0.2633, allocations: 0 / 425.8 MB, free: 12.24 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.117e-05/0.2633, allocations: 4 kB / 425.8 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.956e-05/0.2633, allocations: 19.92 kB / 425.8 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.07e-05/0.2634, allocations: 31.78 kB / 425.8 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001531/0.2635, allocations: 64.52 kB / 425.9 MB, free: 12.12 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.2635, allocations: 4 kB / 425.9 MB, free: 12.12 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.2635, allocations: 0 / 425.9 MB, free: 12.12 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.832e-06/0.2635, allocations: 0 / 425.9 MB, free: 12.12 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005556/0.2641, allocations: 306 kB / 426.2 MB, free: 11.79 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.495e-05/0.2641, allocations: 11.97 kB / 426.2 MB, free: 11.78 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.122e-05/0.2642, allocations: 4.172 kB / 426.2 MB, free: 11.78 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.806e-05/0.2642, allocations: 38.75 kB / 426.2 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.828e-05/0.2642, allocations: 12.84 kB / 426.2 MB, free: 11.72 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003066/0.2645, allocations: 146.9 kB / 426.4 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.633e-05/0.2646, allocations: 8.125 kB / 426.4 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.501e-05/0.2646, allocations: 8 kB / 426.4 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003199/0.2649, allocations: 126.8 kB / 426.5 MB, free: 11.39 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.141e-05/0.2649, allocations: 0 / 426.5 MB, free: 11.39 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.164e-05/0.2649, allocations: 3.938 kB / 426.5 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.185e-06/0.2649, allocations: 7.922 kB / 426.5 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.784e-05/0.265, allocations: 27.97 kB / 426.6 MB, free: 11.35 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003969/0.2654, allocations: 262.5 kB / 426.8 MB, free: 11.04 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001506/0.2656, allocations: 90.42 kB / 426.9 MB, free: 10.91 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.195e-05/0.2657, allocations: 47.48 kB / 427 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.442e-05/0.2657, allocations: 0 / 427 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.443e-05/0.2657, allocations: 42.48 kB / 427 MB, free: 10.8 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 9.32e-07/0.2657, allocations: 0 / 427 MB, free: 10.8 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003128/0.266, allocations: 101.7 kB / 427.1 MB, free: 10.7 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.532e-05/0.2661, allocations: 136.5 kB / 427.2 MB, free: 10.54 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001446/0.2663, allocations: 147.4 kB / 427.4 MB, free: 10.38 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.692e-05/0.2663, allocations: 33.7 kB / 427.4 MB, free: 10.34 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.413e-05/0.2663, allocations: 88.09 kB / 427.5 MB, free: 10.25 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.626e-05/0.2664, allocations: 15.88 kB / 427.5 MB, free: 10.24 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.306e-05/0.2664, allocations: 22.03 kB / 427.5 MB, free: 10.21 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001346/0.2665, allocations: 318.8 kB / 427.8 MB, free: 9.891 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.067e-05/0.2666, allocations: 12 kB / 427.9 MB, free: 9.879 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.681e-05/0.2667, allocations: 48.22 kB / 427.9 MB, free: 9.816 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001193/0.2668, allocations: 64.16 kB / 428 MB, free: 9.738 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.255e-06/0.2668, allocations: 0 / 428 MB, free: 9.738 MB / 334.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001667/0.2669, allocations: 81.56 kB / 428 MB, free: 9.652 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.686e-05/0.267, allocations: 8.156 kB / 428.1 MB, free: 9.645 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/0.267, allocations: 4 kB / 428.1 MB, free: 9.641 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.484e-05/0.267, allocations: 0 / 428.1 MB, free: 9.641 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.614e-05/0.2671, allocations: 20.05 kB / 428.1 MB, free: 9.621 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.119e-05/0.2671, allocations: 7.938 kB / 428.1 MB, free: 9.613 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.789e-05/0.2671, allocations: 4 kB / 428.1 MB, free: 9.609 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.336e-06/0.2672, allocations: 0 / 428.1 MB, free: 9.609 MB / 334.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 0.0001131/0.2673, allocations: 125.8 kB / 428.2 MB, free: 9.477 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.68e-05/0.2674, allocations: 61.58 kB / 428.3 MB, free: 9.41 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.786e-05/0.2674, allocations: 11.97 kB / 428.3 MB, free: 9.395 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.2674, allocations: 0 / 428.3 MB, free: 9.395 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.153e-06/0.2674, allocations: 7.938 kB / 428.3 MB, free: 9.387 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.2674, allocations: 0 / 428.3 MB, free: 9.387 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002045/0.2676, allocations: 148.7 kB / 428.4 MB, free: 9.199 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.2676, allocations: 4 kB / 428.4 MB, free: 9.195 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.666e-05/0.2677, allocations: 11.98 kB / 428.5 MB, free: 9.184 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.86e-06/0.2677, allocations: 4 kB / 428.5 MB, free: 9.18 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.576e-06/0.2677, allocations: 0 / 428.5 MB, free: 9.18 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.804e-06/0.2677, allocations: 64 / 428.5 MB, free: 9.18 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.446e-06/0.2677, allocations: 15.88 kB / 428.5 MB, free: 9.164 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002255/0.2679, allocations: 190 kB / 428.7 MB, free: 8.953 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.726e-05/0.268, allocations: 19.88 kB / 428.7 MB, free: 8.934 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.195e-05/0.268, allocations: 12 kB / 428.7 MB, free: 8.922 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.973e-05/0.2681, allocations: 0 / 428.7 MB, free: 8.922 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.03e-05/0.2681, allocations: 11.92 kB / 428.7 MB, free: 8.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.362e-06/0.2681, allocations: 0 / 428.7 MB, free: 8.91 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000103/0.2682, allocations: 113.3 kB / 428.8 MB, free: 8.801 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2682, allocations: 0 / 428.8 MB, free: 8.801 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002344/0.2685, allocations: 12 kB / 428.8 MB, free: 8.789 MB / 334.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.0005365/0.269, allocations: 0.7265 MB / 429.6 MB, free: 8.027 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001582/0.2692, allocations: 48.16 kB / 429.6 MB, free: 7.98 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.2692, allocations: 8.062 kB / 429.6 MB, free: 7.973 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.112e-05/0.2692, allocations: 11.88 kB / 429.6 MB, free: 7.961 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003703/0.2696, allocations: 31.42 kB / 429.6 MB, free: 7.934 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001593/0.2712, allocations: 1.468 MB / 431.1 MB, free: 6.344 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003332/0.2715, allocations: 0.7 MB / 431.8 MB, free: 5.617 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.813e-05/0.2715, allocations: 4 kB / 431.8 MB, free: 5.613 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.461e-05/0.2716, allocations: 23.42 kB / 431.8 MB, free: 5.59 MB / 334.1 MB Notification: Performance of SimCode: time 4.61e-07/0.2716, allocations: 0 / 431.8 MB, free: 5.59 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02183/0.2934, allocations: 2.019 MB / 433.9 MB, free: 3.715 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.38/10.68, allocations: 4.062 kB / 433.9 MB, free: 3.711 MB / 334.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Hold_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Hold.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Hold/Hold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.f,sine.offset,sine.phase,sine.startTime,sine.y,time [Calling sys.exit(0), Time elapsed: 13.128466947004199]