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.002187/0.002187, allocations: 115.6 kB / 20.43 MB, free: 1.449 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.001519/0.001519, allocations: 213.4 kB / 23.74 MB, free: 4.656 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.612/1.612, allocations: 230.6 MB / 257.5 MB, free: 8.031 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Hold,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002156/0.002156, allocations: 47.92 kB / 377.8 MB, free: 3.141 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3556/0.3578, allocations: 53.36 MB / 431.1 MB, free: 6.867 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Hold): time 0.003583/0.3614, allocations: 1.634 MB / 432.8 MB, free: 5.23 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001309/0.3627, allocations: 0.5958 MB / 433.4 MB, free: 4.629 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001036/0.3628, allocations: 0 / 433.4 MB, free: 4.629 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.861e-05/0.3628, allocations: 7.875 kB / 433.4 MB, free: 4.621 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001628/0.363, allocations: 11.88 kB / 433.4 MB, free: 4.609 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003711/0.3634, allocations: 63.8 kB / 433.5 MB, free: 4.547 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001428/0.3635, allocations: 55.84 kB / 433.5 MB, free: 4.492 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001206/0.3636, allocations: 15.92 kB / 433.5 MB, free: 4.477 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001247/0.3638, allocations: 27.86 kB / 433.6 MB, free: 4.449 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.266e-05/0.3638, allocations: 31.84 kB / 433.6 MB, free: 4.418 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.699e-05/0.3639, allocations: 8 kB / 433.6 MB, free: 4.41 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.331e-05/0.3639, allocations: 4 kB / 433.6 MB, free: 4.406 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.017e-05/0.364, allocations: 15.92 kB / 433.6 MB, free: 4.391 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.138e-05/0.364, allocations: 31.75 kB / 433.6 MB, free: 4.359 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001842/0.3642, allocations: 68.09 kB / 433.7 MB, free: 4.297 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.3642, allocations: 0 / 433.7 MB, free: 4.297 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.3642, allocations: 0 / 433.7 MB, free: 4.297 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.863e-06/0.3642, allocations: 0 / 433.7 MB, free: 4.297 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.0006401/0.3648, allocations: 317.8 kB / 434 MB, free: 3.957 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.764e-05/0.3649, allocations: 16.03 kB / 434 MB, free: 3.941 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.047e-05/0.3649, allocations: 30.75 kB / 434.1 MB, free: 3.902 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001775/0.3651, allocations: 20.88 kB / 434.1 MB, free: 3.883 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003706/0.3655, allocations: 154.8 kB / 434.2 MB, free: 3.707 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.339e-05/0.3655, allocations: 4.375 kB / 434.2 MB, free: 3.703 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.785e-05/0.3655, allocations: 7.938 kB / 434.2 MB, free: 3.695 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003608/0.3659, allocations: 134.7 kB / 434.4 MB, free: 3.539 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.508e-05/0.3659, allocations: 3.984 kB / 434.4 MB, free: 3.535 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.444e-05/0.3659, allocations: 4 kB / 434.4 MB, free: 3.531 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.081e-06/0.3659, allocations: 0 / 434.4 MB, free: 3.531 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.796e-05/0.366, allocations: 27.92 kB / 434.4 MB, free: 3.504 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004855/0.3665, allocations: 258.6 kB / 434.7 MB, free: 3.199 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001751/0.3667, allocations: 94.36 kB / 434.8 MB, free: 3.07 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001028/0.3668, allocations: 47.42 kB / 434.8 MB, free: 3.012 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.401e-05/0.3668, allocations: 4 kB / 434.8 MB, free: 3.008 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.569e-05/0.3669, allocations: 38.56 kB / 434.8 MB, free: 2.961 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.363e-06/0.3669, allocations: 0 / 434.8 MB, free: 2.961 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003488/0.3672, allocations: 101.5 kB / 434.9 MB, free: 2.855 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001296/0.3673, allocations: 132.5 kB / 435.1 MB, free: 2.695 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002114/0.3676, allocations: 152.7 kB / 435.2 MB, free: 2.531 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.397e-05/0.3676, allocations: 29.7 kB / 435.3 MB, free: 2.496 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.378e-05/0.3677, allocations: 96.12 kB / 435.3 MB, free: 2.398 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.676e-05/0.3677, allocations: 3.953 kB / 435.4 MB, free: 2.395 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.992e-05/0.3678, allocations: 29.59 kB / 435.4 MB, free: 2.359 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002396/0.368, allocations: 318.8 kB / 435.7 MB, free: 2.039 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.391e-05/0.3681, allocations: 15.98 kB / 435.7 MB, free: 2.023 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.06e-05/0.3681, allocations: 48.28 kB / 435.8 MB, free: 1.961 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001316/0.3683, allocations: 60.22 kB / 435.8 MB, free: 1.887 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.3683, allocations: 4 kB / 435.8 MB, free: 1.883 MB / 334.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001795/0.3684, allocations: 81.5 kB / 435.9 MB, free: 1.797 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.425e-05/0.3685, allocations: 10.5 kB / 435.9 MB, free: 1.789 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.3685, allocations: 0 / 435.9 MB, free: 1.789 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.208e-05/0.3685, allocations: 4 kB / 435.9 MB, free: 1.785 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.421e-05/0.3686, allocations: 11.98 kB / 435.9 MB, free: 1.773 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.085e-05/0.3686, allocations: 3.938 kB / 435.9 MB, free: 1.77 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.582e-05/0.3686, allocations: 8.094 kB / 435.9 MB, free: 1.762 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.273e-05/0.3687, allocations: 8 kB / 435.9 MB, free: 1.754 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.0001336/0.3688, allocations: 117.8 kB / 436.1 MB, free: 1.629 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001069/0.3689, allocations: 61.59 kB / 436.1 MB, free: 1.562 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.914e-05/0.369, allocations: 19.91 kB / 436.1 MB, free: 1.539 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.369, allocations: 0 / 436.1 MB, free: 1.539 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.138e-06/0.369, allocations: 3.938 kB / 436.1 MB, free: 1.535 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.704e-06/0.369, allocations: 4 kB / 436.1 MB, free: 1.531 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002406/0.3692, allocations: 148.7 kB / 436.3 MB, free: 1.344 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.3692, allocations: 4.062 kB / 436.3 MB, free: 1.34 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.041e-05/0.3693, allocations: 19.94 kB / 436.3 MB, free: 1.32 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.3693, allocations: 0 / 436.3 MB, free: 1.32 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.658e-05/0.3693, allocations: 7.984 kB / 436.3 MB, free: 1.312 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.3693, allocations: 0 / 436.3 MB, free: 1.312 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.3693, allocations: 3.938 kB / 436.3 MB, free: 1.309 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002607/0.3696, allocations: 198.1 kB / 436.5 MB, free: 1.09 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.776e-05/0.3696, allocations: 15.94 kB / 436.5 MB, free: 1.074 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.965e-05/0.3696, allocations: 4 kB / 436.5 MB, free: 1.07 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.223e-05/0.3697, allocations: 4.188 kB / 436.5 MB, free: 1.066 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.887e-05/0.3697, allocations: 7.875 kB / 436.6 MB, free: 1.059 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.718e-06/0.3698, allocations: 11.94 kB / 436.6 MB, free: 1.047 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001076/0.3699, allocations: 113.9 kB / 436.7 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3699, allocations: 4 kB / 436.7 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002475/0.3701, allocations: 12 kB / 436.7 MB, free: 0.9219 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.0007357/0.3708, allocations: 0.7305 MB / 437.4 MB, free: 160 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001984/0.371, allocations: 43.86 kB / 437.5 MB, free: 116 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.112e-06/0.3711, allocations: 4 kB / 437.5 MB, free: 112 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.271e-05/0.3711, allocations: 7.984 kB / 437.5 MB, free: 104 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004738/0.3716, allocations: 36.56 kB / 437.5 MB, free: 68 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001978/0.3735, allocations: 1.47 MB / 439 MB, free: 14.47 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004419/0.374, allocations: 0.6962 MB / 439.7 MB, free: 13.75 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.041e-05/0.374, allocations: 11.98 kB / 439.7 MB, free: 13.74 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.099e-05/0.3741, allocations: 15.44 kB / 439.7 MB, free: 13.72 MB / 350.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3741, allocations: 4 kB / 439.7 MB, free: 13.72 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03545/0.4096, allocations: 2.02 MB / 441.7 MB, free: 11.83 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.06/11.47, allocations: 18.5 kB / 441.7 MB, free: 11.82 MB / 350.1 MB " [Timeout remaining time 648] (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] Reference file matches [Calling sys.exit(0), Time elapsed: 14.145308934850618]