Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.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.001228/0.001228, allocations: 107.5 kB / 21.21 MB, free: 0.6523 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.001377/0.001377, allocations: 212.5 kB / 24.51 MB, free: 3.941 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.364/1.364, allocations: 230.6 MB / 258.3 MB, free: 7.789 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.Hold,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_Hold",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Hold,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_Hold",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001452/0.001452, allocations: 55.84 kB / 378.5 MB, free: 2.953 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2357/0.2372, allocations: 53.35 MB / 431.9 MB, free: 6.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Hold): time 0.002742/0.2399, allocations: 1.616 MB / 433.5 MB, free: 5.043 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009704/0.2409, allocations: 0.5337 MB / 434 MB, free: 4.504 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.048e-05/0.241, allocations: 7.938 kB / 434 MB, free: 4.496 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.021e-05/0.241, allocations: 3.938 kB / 434 MB, free: 4.492 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001158/0.2411, allocations: 11.86 kB / 434 MB, free: 4.48 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003033/0.2415, allocations: 63.75 kB / 434.1 MB, free: 4.418 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001048/0.2416, allocations: 55.8 kB / 434.1 MB, free: 4.363 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.243e-05/0.2416, allocations: 26.02 kB / 434.2 MB, free: 4.34 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001163/0.2418, allocations: 39.8 kB / 434.2 MB, free: 4.301 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.271e-05/0.2418, allocations: 19.86 kB / 434.2 MB, free: 4.281 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.436e-05/0.2418, allocations: 4 kB / 434.2 MB, free: 4.277 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.1e-05/0.2419, allocations: 12 kB / 434.2 MB, free: 4.266 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.385e-05/0.2419, allocations: 19.91 kB / 434.3 MB, free: 4.246 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.288e-05/0.242, allocations: 19.81 kB / 434.3 MB, free: 4.227 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001418/0.2421, allocations: 71.66 kB / 434.4 MB, free: 4.156 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.2421, allocations: 0 / 434.4 MB, free: 4.156 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.173e-06/0.2421, allocations: 0 / 434.4 MB, free: 4.156 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.579e-06/0.2421, allocations: 4 kB / 434.4 MB, free: 4.152 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.0004322/0.2425, allocations: 305.9 kB / 434.7 MB, free: 3.824 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.439e-05/0.2426, allocations: 16.02 kB / 434.7 MB, free: 3.809 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.863e-05/0.2426, allocations: 4.188 kB / 434.7 MB, free: 3.805 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.063e-05/0.2426, allocations: 34.75 kB / 434.7 MB, free: 3.762 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001354/0.2428, allocations: 20.88 kB / 434.7 MB, free: 3.742 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002499/0.243, allocations: 156.9 kB / 434.9 MB, free: 3.566 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.146e-05/0.243, allocations: 12.06 kB / 434.9 MB, free: 3.555 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.107e-05/0.243, allocations: 4 kB / 434.9 MB, free: 3.551 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002677/0.2433, allocations: 126.8 kB / 435 MB, free: 3.402 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.297e-06/0.2433, allocations: 3.938 kB / 435 MB, free: 3.398 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.015e-05/0.2433, allocations: 4 kB / 435 MB, free: 3.395 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.757e-06/0.2433, allocations: 0 / 435 MB, free: 3.395 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.648e-05/0.2434, allocations: 31.97 kB / 435.1 MB, free: 3.363 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003142/0.2437, allocations: 246.5 kB / 435.3 MB, free: 3.07 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001397/0.2439, allocations: 94.36 kB / 435.4 MB, free: 2.941 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.611e-05/0.2439, allocations: 43.55 kB / 435.4 MB, free: 2.887 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.365e-05/0.244, allocations: 11.92 kB / 435.5 MB, free: 2.875 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.008e-05/0.244, allocations: 38.55 kB / 435.5 MB, free: 2.828 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.312e-06/0.244, allocations: 0 / 435.5 MB, free: 2.828 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002759/0.2443, allocations: 97.94 kB / 435.6 MB, free: 2.727 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.206e-05/0.2443, allocations: 140.6 kB / 435.7 MB, free: 2.559 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001332/0.2445, allocations: 149.4 kB / 435.9 MB, free: 2.398 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.748e-05/0.2445, allocations: 29.7 kB / 435.9 MB, free: 2.363 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.309e-05/0.2445, allocations: 92.12 kB / 436 MB, free: 2.27 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.6e-05/0.2446, allocations: 7.953 kB / 436 MB, free: 2.262 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.13e-05/0.2446, allocations: 25.61 kB / 436 MB, free: 2.23 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001226/0.2447, allocations: 318.8 kB / 436.3 MB, free: 1.91 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.891e-05/0.2448, allocations: 16 kB / 436.3 MB, free: 1.895 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.229e-05/0.2448, allocations: 44.22 kB / 436.4 MB, free: 1.836 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001046/0.2449, allocations: 64.22 kB / 436.5 MB, free: 1.758 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.2449, allocations: 0 / 436.5 MB, free: 1.758 MB / 334.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001561/0.2451, allocations: 81.56 kB / 436.5 MB, free: 1.672 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.222e-05/0.2451, allocations: 4.156 kB / 436.5 MB, free: 1.668 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.2451, allocations: 8 kB / 436.5 MB, free: 1.66 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.122e-05/0.2451, allocations: 0 / 436.5 MB, free: 1.66 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.084e-05/0.2452, allocations: 19.92 kB / 436.6 MB, free: 1.641 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.145e-06/0.2452, allocations: 3.938 kB / 436.6 MB, free: 1.637 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.494e-05/0.2453, allocations: 4 kB / 436.6 MB, free: 1.633 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.089e-05/0.2453, allocations: 7.984 kB / 436.6 MB, free: 1.625 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.715e-05/0.2454, allocations: 117.8 kB / 436.7 MB, free: 1.5 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.798e-05/0.2455, allocations: 57.58 kB / 436.8 MB, free: 1.438 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.425e-05/0.2455, allocations: 23.92 kB / 436.8 MB, free: 1.41 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.2455, allocations: 4 kB / 436.8 MB, free: 1.406 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.98e-06/0.2455, allocations: 3.938 kB / 436.8 MB, free: 1.402 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.2455, allocations: 0 / 436.8 MB, free: 1.402 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001851/0.2457, allocations: 152.7 kB / 436.9 MB, free: 1.211 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.2457, allocations: 0 / 436.9 MB, free: 1.211 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.581e-05/0.2458, allocations: 15.98 kB / 436.9 MB, free: 1.195 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.2458, allocations: 0 / 436.9 MB, free: 1.195 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.543e-06/0.2458, allocations: 0 / 436.9 MB, free: 1.195 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.917e-06/0.2458, allocations: 4 kB / 437 MB, free: 1.191 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.379e-06/0.2458, allocations: 7.875 kB / 437 MB, free: 1.184 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002063/0.246, allocations: 202.1 kB / 437.2 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.073e-05/0.246, allocations: 15.94 kB / 437.2 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.719e-05/0.246, allocations: 4 kB / 437.2 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.358e-05/0.2461, allocations: 8.172 kB / 437.2 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.805e-05/0.2461, allocations: 11.94 kB / 437.2 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.268e-06/0.2461, allocations: 0 / 437.2 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.138e-05/0.2462, allocations: 111.2 kB / 437.3 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2462, allocations: 0 / 437.3 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002295/0.2464, allocations: 12 kB / 437.3 MB, free: 0.8008 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.0004776/0.2469, allocations: 0.7328 MB / 438 MB, free: 36 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001604/0.2471, allocations: 43.97 kB / 438.1 MB, free: 15.99 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.2471, allocations: 3.938 kB / 438.1 MB, free: 15.98 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.924e-05/0.2471, allocations: 15.92 kB / 438.1 MB, free: 15.97 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003528/0.2475, allocations: 34.95 kB / 438.1 MB, free: 15.94 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001426/0.2489, allocations: 1.473 MB / 439.6 MB, free: 14.35 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.553e-05/0.249, allocations: 91.31 kB / 439.7 MB, free: 14.24 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.669e-05/0.249, allocations: 4 kB / 439.7 MB, free: 14.23 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.807e-05/0.2491, allocations: 23.42 kB / 439.7 MB, free: 14.21 MB / 350.1 MB Notification: Performance of SimCode: time 6.92e-07/0.2491, allocations: 0 / 439.7 MB, free: 14.21 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02184/0.2709, allocations: 2.126 MB / 441.9 MB, free: 12.24 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.55/10.82, allocations: 10.59 kB / 441.9 MB, free: 12.23 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_Hold_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_Hold.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.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.continuous,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,time [Calling sys.exit(0), Time elapsed: 13.214887769077905]