Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.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.001805/0.001805, allocations: 79.2 kB / 19.18 MB, free: 2.52 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.002394/0.002394, allocations: 161.8 kB / 22.45 MB, free: 5.375 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.517/1.517, allocations: 177.2 MB / 202.8 MB, free: 9.18 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.185/3.185, allocations: 389 MB / 0.633 GB, free: 0.9688 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) 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: translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 4.649e-06/4.649e-06, allocations: 0 / 1 GB, free: 7.293 MB / 0.9512 GB Notification: Performance of FrontEnd - Absyn->SCode: time 5.375e-05/5.84e-05, allocations: 5.797 kB / 1 GB, free: 7.289 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.003505/0.003563, allocations: 0.6837 MB / 1.001 GB, free: 6.609 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.002267/0.00583, allocations: 1.104 MB / 1.002 GB, free: 5.492 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.378e-05/0.005904, allocations: 0 / 1.002 GB, free: 5.492 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 4.643e-05/0.00595, allocations: 3.938 kB / 1.002 GB, free: 5.488 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 8.861e-05/0.006039, allocations: 11.88 kB / 1.002 GB, free: 5.477 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.000431/0.00647, allocations: 51.75 kB / 1.002 GB, free: 5.426 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.000179/0.006649, allocations: 71.83 kB / 1.002 GB, free: 5.355 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001212/0.00677, allocations: 7.938 kB / 1.002 GB, free: 5.348 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001417/0.006912, allocations: 39.95 kB / 1.002 GB, free: 5.309 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001133/0.007025, allocations: 31.89 kB / 1.002 GB, free: 5.277 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 3.582e-05/0.007061, allocations: 8 kB / 1.002 GB, free: 5.27 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001028/0.007164, allocations: 19.92 kB / 1.002 GB, free: 5.25 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 3.249e-05/0.007196, allocations: 15.98 kB / 1.002 GB, free: 5.234 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 5.873e-05/0.007255, allocations: 27.91 kB / 1.002 GB, free: 5.207 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.000226/0.007481, allocations: 79.8 kB / 1.002 GB, free: 5.129 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.007486, allocations: 3.938 kB / 1.002 GB, free: 5.125 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.343e-06/0.007488, allocations: 0 / 1.002 GB, free: 5.125 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 7.113e-06/0.007495, allocations: 4 kB / 1.002 GB, free: 5.121 MB / 0.9512 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0008258/0.008321, allocations: 298.2 kB / 1.003 GB, free: 4.797 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 5.502e-05/0.008376, allocations: 12.03 kB / 1.003 GB, free: 4.785 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001398/0.008515, allocations: 12.88 kB / 1.003 GB, free: 4.773 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001568/0.008672, allocations: 125.6 kB / 1.003 GB, free: 4.625 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.964e-05/0.008702, allocations: 384 / 1.003 GB, free: 4.625 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.732e-05/0.008729, allocations: 8.375 kB / 1.003 GB, free: 4.617 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002937/0.009023, allocations: 90.14 kB / 1.003 GB, free: 4.523 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.345e-05/0.009036, allocations: 192 / 1.003 GB, free: 4.523 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.431e-05/0.009051, allocations: 384 / 1.003 GB, free: 4.523 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.43e-06/0.009056, allocations: 384 / 1.003 GB, free: 4.523 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002325/0.009289, allocations: 59.89 kB / 1.003 GB, free: 4.465 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005882/0.009877, allocations: 236.5 kB / 1.003 GB, free: 4.203 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002353/0.01011, allocations: 70.66 kB / 1.003 GB, free: 4.125 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001341/0.01025, allocations: 44.77 kB / 1.003 GB, free: 4.078 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 3.535e-05/0.01028, allocations: 3.938 kB / 1.003 GB, free: 4.074 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003275/0.01061, allocations: 99.42 kB / 1.003 GB, free: 3.965 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=10): time 1.783e-06/0.01061, allocations: 0 / 1.003 GB, free: 3.965 MB / 0.9512 GB Notification: Performance of matching and sorting (n=10): time 0.000612/0.01122, allocations: 177.5 kB / 1.003 GB, free: 3.785 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.135e-05/0.01128, allocations: 51.41 kB / 1.003 GB, free: 3.723 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001249/0.01141, allocations: 109.8 kB / 1.004 GB, free: 3.605 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 3.255e-05/0.01144, allocations: 33.7 kB / 1.004 GB, free: 3.566 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 7.518e-05/0.01152, allocations: 88.33 kB / 1.004 GB, free: 3.473 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 4.159e-05/0.01156, allocations: 31.77 kB / 1.004 GB, free: 3.441 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.27e-05/0.01164, allocations: 33.7 kB / 1.004 GB, free: 3.402 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001776/0.01182, allocations: 318.8 kB / 1.004 GB, free: 3.082 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001377/0.01196, allocations: 35.97 kB / 1.004 GB, free: 3.047 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001514/0.01211, allocations: 62.53 kB / 1.004 GB, free: 2.977 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002823/0.01239, allocations: 102.5 kB / 1.004 GB, free: 2.867 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-06/0.01239, allocations: 0 / 1.004 GB, free: 2.867 MB / 0.9512 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003602/0.01275, allocations: 141.5 kB / 1.004 GB, free: 2.723 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.495e-05/0.01278, allocations: 7.938 kB / 1.004 GB, free: 2.715 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.418e-05/0.01279, allocations: 3.984 kB / 1.004 GB, free: 2.711 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.227e-05/0.01282, allocations: 8.312 kB / 1.004 GB, free: 2.703 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001491/0.01296, allocations: 23.92 kB / 1.004 GB, free: 2.68 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.172e-05/0.01298, allocations: 8 kB / 1.004 GB, free: 2.672 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.239e-05/0.01306, allocations: 7.938 kB / 1.004 GB, free: 2.664 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.532e-05/0.01307, allocations: 4 kB / 1.004 GB, free: 2.66 MB / 0.9512 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 (firOrdHol.firstTrigger,$PRE.firOrdHol.firstTrigger,firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.c,$PRE.firOrdHol.c,firOrdHol.pre_uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.uSample,$PRE.firOrdHol.uSample,firOrdHol.tSample,$PRE.firOrdHol.tSample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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.0001314/0.01321, allocations: 130.3 kB / 1.005 GB, free: 2.523 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.11e-05/0.01323, allocations: 7.891 kB / 1.005 GB, free: 2.516 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004034/0.01363, allocations: 146.4 kB / 1.005 GB, free: 2.367 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.528e-06/0.01363, allocations: 4.094 kB / 1.005 GB, free: 2.363 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.033e-06/0.01364, allocations: 3.938 kB / 1.005 GB, free: 2.359 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.578e-06/0.01365, allocations: 0 / 1.005 GB, free: 2.359 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005976/0.01424, allocations: 350 kB / 1.005 GB, free: 1.98 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.909e-06/0.01425, allocations: 3.984 kB / 1.005 GB, free: 1.977 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.558e-05/0.01432, allocations: 11.98 kB / 1.005 GB, free: 1.965 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.01433, allocations: 0 / 1.005 GB, free: 1.965 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.683e-05/0.01434, allocations: 11.94 kB / 1.005 GB, free: 1.953 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.01435, allocations: 4 kB / 1.005 GB, free: 1.949 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.01435, allocations: 0 / 1.005 GB, free: 1.949 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004344/0.01478, allocations: 231.4 kB / 1.005 GB, free: 1.707 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 1.612e-05/0.0148, allocations: 15.83 kB / 1.005 GB, free: 1.691 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.33e-05/0.01482, allocations: 4 kB / 1.005 GB, free: 1.688 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001118/0.01493, allocations: 7.984 kB / 1.005 GB, free: 1.68 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.403e-05/0.01499, allocations: 7.984 kB / 1.005 GB, free: 1.672 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.151e-05/0.015, allocations: 4 kB / 1.005 GB, free: 1.668 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 6.066e-05/0.01506, allocations: 87.27 kB / 1.005 GB, free: 1.582 MB / 0.9512 GB Notification: Performance of sort global known variables: time 8e-08/0.01506, allocations: 4 kB / 1.005 GB, free: 1.578 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002734/0.01533, allocations: 20 kB / 1.005 GB, free: 1.559 MB / 0.9512 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0002001/0.01553, allocations: 103.2 kB / 1.006 GB, free: 1.445 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0003435/0.01588, allocations: 95.88 kB / 1.006 GB, free: 1.352 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.01588, allocations: 4 kB / 1.006 GB, free: 1.348 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001491/0.01603, allocations: 43.91 kB / 1.006 GB, free: 1.305 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003094/0.01634, allocations: 24.36 kB / 1.006 GB, free: 1.281 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004618/0.0168, allocations: 153.6 kB / 1.006 GB, free: 1.105 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.904e-05/0.01688, allocations: 75.33 kB / 1.006 GB, free: 1.012 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 3.529e-05/0.01691, allocations: 4.5 kB / 1.006 GB, free: 1.008 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.989e-05/0.01695, allocations: 12.5 kB / 1.006 GB, free: 0.9961 MB / 0.9512 GB Notification: Performance of SimCode: time 1.002e-06/0.01695, allocations: 0 / 1.006 GB, free: 0.9961 MB / 0.9512 GB Notification: Performance of Templates: time 0.004954/0.02191, allocations: 1.075 MB / 1.007 GB, free: 15.94 MB / 0.9669 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.644228633493185]