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.00128/0.00128, allocations: 109.1 kB / 21.22 MB, free: 0.7344 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.001436/0.001436, allocations: 207.4 kB / 24.53 MB, free: 4.07 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.436/1.436, allocations: 230.5 MB / 258.2 MB, free: 8.02 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.001958/0.001958, allocations: 59.91 kB / 378.6 MB, free: 2.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2444/0.2463, allocations: 53.4 MB / 432 MB, free: 6.668 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Hold): time 0.003012/0.2493, allocations: 1.639 MB / 433.6 MB, free: 5.023 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001017/0.2503, allocations: 0.5764 MB / 434.2 MB, free: 4.441 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.988e-05/0.2504, allocations: 4 kB / 434.2 MB, free: 4.438 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.649e-05/0.2505, allocations: 7.875 kB / 434.2 MB, free: 4.43 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001186/0.2506, allocations: 15.86 kB / 434.2 MB, free: 4.414 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002851/0.2509, allocations: 71.8 kB / 434.3 MB, free: 4.344 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001325/0.251, allocations: 51.8 kB / 434.3 MB, free: 4.293 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.749e-05/0.2511, allocations: 15.98 kB / 434.4 MB, free: 4.277 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001191/0.2512, allocations: 35.84 kB / 434.4 MB, free: 4.242 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.276e-05/0.2513, allocations: 23.86 kB / 434.4 MB, free: 4.219 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.726e-05/0.2513, allocations: 4 kB / 434.4 MB, free: 4.215 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.55e-05/0.2513, allocations: 4 kB / 434.4 MB, free: 4.211 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.135e-05/0.2514, allocations: 19.92 kB / 434.4 MB, free: 4.191 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.921e-05/0.2514, allocations: 31.75 kB / 434.5 MB, free: 4.16 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001593/0.2516, allocations: 68.44 kB / 434.5 MB, free: 4.098 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.583e-06/0.2516, allocations: 8 kB / 434.5 MB, free: 4.09 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.2516, allocations: 4 kB / 434.6 MB, free: 4.086 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.108e-06/0.2516, allocations: 3.938 kB / 434.6 MB, free: 4.082 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.0005116/0.2521, allocations: 309.9 kB / 434.9 MB, free: 3.75 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.747e-05/0.2521, allocations: 16.02 kB / 434.9 MB, free: 3.734 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.247e-05/0.2521, allocations: 192 / 434.9 MB, free: 3.734 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.147e-05/0.2522, allocations: 34.75 kB / 434.9 MB, free: 3.691 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001679/0.2523, allocations: 20.88 kB / 434.9 MB, free: 3.672 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002831/0.2526, allocations: 158.4 kB / 435.1 MB, free: 3.496 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.3e-05/0.2526, allocations: 4.125 kB / 435.1 MB, free: 3.492 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.318e-05/0.2527, allocations: 8 kB / 435.1 MB, free: 3.484 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003895/0.253, allocations: 130.7 kB / 435.2 MB, free: 3.332 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/0.2531, allocations: 0 / 435.2 MB, free: 3.332 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.031e-05/0.2531, allocations: 0 / 435.2 MB, free: 3.332 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.136e-06/0.2531, allocations: 4 kB / 435.2 MB, free: 3.328 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001387/0.2532, allocations: 27.91 kB / 435.3 MB, free: 3.301 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004396/0.2537, allocations: 254.6 kB / 435.5 MB, free: 3 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001879/0.2538, allocations: 94.3 kB / 435.6 MB, free: 2.871 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001107/0.2539, allocations: 47.55 kB / 435.6 MB, free: 2.812 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.715e-05/0.254, allocations: 7.984 kB / 435.6 MB, free: 2.805 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.577e-05/0.254, allocations: 34.55 kB / 435.7 MB, free: 2.762 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.623e-06/0.254, allocations: 0 / 435.7 MB, free: 2.762 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0004044/0.2544, allocations: 101.7 kB / 435.8 MB, free: 2.656 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001202/0.2545, allocations: 140.5 kB / 435.9 MB, free: 2.488 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001908/0.2547, allocations: 146.4 kB / 436.1 MB, free: 2.328 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.476e-05/0.2548, allocations: 29.7 kB / 436.1 MB, free: 2.293 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001732/0.2549, allocations: 92.12 kB / 436.2 MB, free: 2.199 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.326e-05/0.255, allocations: 8.266 kB / 436.2 MB, free: 2.191 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.485e-05/0.255, allocations: 29.67 kB / 436.2 MB, free: 2.156 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001805/0.2552, allocations: 314.8 kB / 436.5 MB, free: 1.84 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.154e-05/0.2553, allocations: 12 kB / 436.5 MB, free: 1.828 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.101e-05/0.2554, allocations: 40.28 kB / 436.6 MB, free: 1.773 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000167/0.2555, allocations: 64.22 kB / 436.6 MB, free: 1.695 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.2555, allocations: 0 / 436.6 MB, free: 1.695 MB / 334.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002363/0.2558, allocations: 85.62 kB / 436.7 MB, free: 1.605 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.908e-05/0.2558, allocations: 11.97 kB / 436.7 MB, free: 1.594 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.2558, allocations: 0 / 436.7 MB, free: 1.594 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.887e-05/0.2558, allocations: 7.938 kB / 436.7 MB, free: 1.586 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000116/0.2559, allocations: 11.98 kB / 436.8 MB, free: 1.574 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.363e-05/0.2559, allocations: 7.938 kB / 436.8 MB, free: 1.566 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.942e-05/0.256, allocations: 4 kB / 436.8 MB, free: 1.562 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.527e-05/0.256, allocations: 7.984 kB / 436.8 MB, free: 1.555 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.0001286/0.2562, allocations: 121.8 kB / 436.9 MB, free: 1.426 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001331/0.2563, allocations: 57.64 kB / 436.9 MB, free: 1.363 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.361e-05/0.2563, allocations: 15.92 kB / 437 MB, free: 1.344 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.965e-06/0.2563, allocations: 0 / 437 MB, free: 1.344 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.714e-05/0.2563, allocations: 8.062 kB / 437 MB, free: 1.336 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.2564, allocations: 0 / 437 MB, free: 1.336 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000291/0.2566, allocations: 160.6 kB / 437.1 MB, free: 1.137 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.754e-06/0.2566, allocations: 0 / 437.1 MB, free: 1.137 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.226e-05/0.2567, allocations: 19.92 kB / 437.1 MB, free: 1.117 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.005e-06/0.2567, allocations: 0 / 437.1 MB, free: 1.117 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.289e-05/0.2568, allocations: 4 kB / 437.2 MB, free: 1.113 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.2568, allocations: 4.062 kB / 437.2 MB, free: 1.109 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.515e-05/0.2568, allocations: 3.938 kB / 437.2 MB, free: 1.105 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002918/0.2571, allocations: 202 kB / 437.4 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.364e-05/0.2571, allocations: 19.94 kB / 437.4 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.472e-05/0.2572, allocations: 8 kB / 437.4 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001199/0.2573, allocations: 3.984 kB / 437.4 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.627e-05/0.2573, allocations: 7.938 kB / 437.4 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.632e-06/0.2573, allocations: 0 / 437.4 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001224/0.2575, allocations: 118.2 kB / 437.5 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2575, allocations: 0 / 437.5 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004191/0.2579, allocations: 8 kB / 437.5 MB, free: 0.7227 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.0007008/0.2586, allocations: 0.7305 MB / 438.3 MB, free: 15.96 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002247/0.2588, allocations: 44.16 kB / 438.3 MB, free: 15.91 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.165e-06/0.2588, allocations: 0 / 438.3 MB, free: 15.91 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.072e-05/0.2589, allocations: 12 kB / 438.3 MB, free: 15.9 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005626/0.2594, allocations: 42.53 kB / 438.3 MB, free: 15.86 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002316/0.2618, allocations: 1.472 MB / 439.8 MB, free: 14.28 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004429/0.2622, allocations: 0.7002 MB / 440.5 MB, free: 13.55 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.119e-05/0.2622, allocations: 7.938 kB / 440.5 MB, free: 13.54 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.148e-05/0.2623, allocations: 23.42 kB / 440.6 MB, free: 13.52 MB / 350.1 MB Notification: Performance of SimCode: time 1.242e-06/0.2623, allocations: 0 / 440.6 MB, free: 13.52 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0291/0.2914, allocations: 2.052 MB / 442.6 MB, free: 11.59 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.09/11.38, allocations: 16.81 kB / 442.6 MB, free: 11.57 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.91389041900402]