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.001253/0.001253, allocations: 109.1 kB / 21.22 MB, free: 0.6484 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.001423/0.001423, allocations: 205.5 kB / 24.51 MB, free: 3.945 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.434/1.434, allocations: 230.5 MB / 258.2 MB, free: 7.793 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.002618/0.002618, allocations: 59.91 kB / 378.5 MB, free: 2.832 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2513/0.2539, allocations: 53.41 MB / 431.9 MB, free: 6.457 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Hold): time 0.002805/0.2567, allocations: 1.615 MB / 433.5 MB, free: 4.84 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000957/0.2577, allocations: 0.5298 MB / 434.1 MB, free: 4.305 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.613e-05/0.2578, allocations: 3.938 kB / 434.1 MB, free: 4.301 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.552e-05/0.2578, allocations: 7.938 kB / 434.1 MB, free: 4.293 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001184/0.258, allocations: 11.86 kB / 434.1 MB, free: 4.281 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003013/0.2583, allocations: 63.8 kB / 434.1 MB, free: 4.219 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001147/0.2584, allocations: 59.73 kB / 434.2 MB, free: 4.16 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000101/0.2585, allocations: 18.09 kB / 434.2 MB, free: 4.145 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001163/0.2586, allocations: 35.84 kB / 434.3 MB, free: 4.109 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.556e-05/0.2586, allocations: 27.8 kB / 434.3 MB, free: 4.082 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.887e-05/0.2587, allocations: 4 kB / 434.3 MB, free: 4.078 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.683e-05/0.2587, allocations: 12 kB / 434.3 MB, free: 4.066 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.479e-05/0.2588, allocations: 15.92 kB / 434.3 MB, free: 4.051 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.135e-05/0.2588, allocations: 15.88 kB / 434.3 MB, free: 4.035 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001677/0.259, allocations: 79.53 kB / 434.4 MB, free: 3.957 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.259, allocations: 0 / 434.4 MB, free: 3.957 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.259, allocations: 0 / 434.4 MB, free: 3.957 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.2e-06/0.259, allocations: 0 / 434.4 MB, free: 3.957 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.0004979/0.2595, allocations: 317.9 kB / 434.7 MB, free: 3.617 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.812e-05/0.2595, allocations: 8.031 kB / 434.7 MB, free: 3.609 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.418e-05/0.2595, allocations: 8.188 kB / 434.7 MB, free: 3.602 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.865e-05/0.2596, allocations: 34.75 kB / 434.8 MB, free: 3.559 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001506/0.2597, allocations: 20.88 kB / 434.8 MB, free: 3.539 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002734/0.26, allocations: 154.2 kB / 434.9 MB, free: 3.367 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.081e-05/0.26, allocations: 8.125 kB / 434.9 MB, free: 3.359 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.719e-05/0.26, allocations: 4 kB / 435 MB, free: 3.355 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002906/0.2603, allocations: 126.8 kB / 435.1 MB, free: 3.207 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.386e-06/0.2603, allocations: 3.938 kB / 435.1 MB, free: 3.203 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.14e-05/0.2603, allocations: 4 kB / 435.1 MB, free: 3.199 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.927e-06/0.2603, allocations: 4 kB / 435.1 MB, free: 3.195 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.943e-05/0.2604, allocations: 35.91 kB / 435.1 MB, free: 3.16 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000381/0.2608, allocations: 246.5 kB / 435.4 MB, free: 2.867 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001406/0.2609, allocations: 90.36 kB / 435.4 MB, free: 2.742 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.348e-05/0.261, allocations: 47.55 kB / 435.5 MB, free: 2.684 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.323e-05/0.2611, allocations: 4 kB / 435.5 MB, free: 2.68 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.387e-05/0.2611, allocations: 42.48 kB / 435.5 MB, free: 2.629 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 3.066e-06/0.2611, allocations: 3.984 kB / 435.5 MB, free: 2.625 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002862/0.2614, allocations: 94.03 kB / 435.6 MB, free: 2.527 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.904e-05/0.2615, allocations: 144.5 kB / 435.8 MB, free: 2.355 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001567/0.2616, allocations: 146.4 kB / 435.9 MB, free: 2.195 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.026e-05/0.2617, allocations: 29.7 kB / 436 MB, free: 2.16 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.674e-05/0.2617, allocations: 92.12 kB / 436 MB, free: 2.066 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.153e-05/0.2617, allocations: 11.94 kB / 436.1 MB, free: 2.055 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.878e-05/0.2618, allocations: 21.67 kB / 436.1 MB, free: 2.027 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001394/0.2619, allocations: 318.8 kB / 436.4 MB, free: 1.707 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.924e-05/0.262, allocations: 15.94 kB / 436.4 MB, free: 1.691 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.041e-05/0.262, allocations: 40.28 kB / 436.4 MB, free: 1.637 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000111/0.2621, allocations: 64.22 kB / 436.5 MB, free: 1.559 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.2621, allocations: 0 / 436.5 MB, free: 1.559 MB / 334.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001594/0.2623, allocations: 85.5 kB / 436.6 MB, free: 1.469 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.23e-05/0.2623, allocations: 4 kB / 436.6 MB, free: 1.465 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.2623, allocations: 8.156 kB / 436.6 MB, free: 1.457 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.889e-05/0.2623, allocations: 3.984 kB / 436.6 MB, free: 1.453 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.891e-05/0.2624, allocations: 12 kB / 436.6 MB, free: 1.441 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.819e-06/0.2624, allocations: 7.875 kB / 436.6 MB, free: 1.434 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.425e-05/0.2625, allocations: 4 kB / 436.6 MB, free: 1.43 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.069e-05/0.2625, allocations: 7.984 kB / 436.6 MB, free: 1.422 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 8.753e-05/0.2626, allocations: 117.8 kB / 436.7 MB, free: 1.297 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.135e-05/0.2627, allocations: 57.58 kB / 436.8 MB, free: 1.234 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.558e-05/0.2627, allocations: 15.92 kB / 436.8 MB, free: 1.215 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-06/0.2627, allocations: 8.062 kB / 436.8 MB, free: 1.207 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.2627, allocations: 3.938 kB / 436.8 MB, free: 1.203 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.2627, allocations: 3.938 kB / 436.8 MB, free: 1.199 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001873/0.2629, allocations: 152.7 kB / 437 MB, free: 1.008 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.2629, allocations: 0 / 437 MB, free: 1.008 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.444e-05/0.263, allocations: 11.98 kB / 437 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.263, allocations: 4 kB / 437 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.155e-06/0.263, allocations: 0 / 437 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.987e-06/0.263, allocations: 4 kB / 437 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.263, allocations: 3.938 kB / 437 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002156/0.2632, allocations: 210.1 kB / 437.2 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.881e-05/0.2632, allocations: 15.94 kB / 437.2 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.921e-05/0.2632, allocations: 4 kB / 437.2 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.649e-05/0.2633, allocations: 7.984 kB / 437.2 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.031e-05/0.2633, allocations: 7.938 kB / 437.2 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.318e-06/0.2634, allocations: 0 / 437.2 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.865e-05/0.2634, allocations: 114.6 kB / 437.4 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2634, allocations: 0 / 437.4 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002312/0.2637, allocations: 12 kB / 437.4 MB, free: 0.5977 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.0004898/0.2642, allocations: 0.7337 MB / 438.1 MB, free: 15.83 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001463/0.2643, allocations: 43.91 kB / 438.1 MB, free: 15.79 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.2643, allocations: 0 / 438.1 MB, free: 15.79 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.691e-05/0.2643, allocations: 19.92 kB / 438.2 MB, free: 15.77 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003577/0.2647, allocations: 32.47 kB / 438.2 MB, free: 15.74 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001502/0.2662, allocations: 1.469 MB / 439.7 MB, free: 14.15 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.448e-05/0.2663, allocations: 83.38 kB / 439.7 MB, free: 14.05 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.706e-05/0.2663, allocations: 4 kB / 439.8 MB, free: 14.04 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.598e-05/0.2664, allocations: 27.42 kB / 439.8 MB, free: 14.02 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2664, allocations: 0 / 439.8 MB, free: 14.02 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02078/0.2872, allocations: 2.121 MB / 441.9 MB, free: 12.02 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.1/11.38, allocations: 20.2 kB / 441.9 MB, free: 12 MB / 350.1 MB " [Timeout remaining time 648] (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: 13.887516853981651]