Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001959/0.001959, allocations: 78.88 kB / 19.18 MB, free: 2.527 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.0016/0.0016, allocations: 165.7 kB / 22.46 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.478/1.478, allocations: 177.1 MB / 202.8 MB, free: 9.184 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 2.861/2.861, allocations: 377.8 MB / 0.6221 GB, free: 12.57 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/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_12_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_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 3.196e-06/3.196e-06, allocations: 0 / 0.9814 GB, free: 11.98 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.15e-05/3.469e-05, allocations: 6.281 kB / 0.9814 GB, free: 11.97 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold): time 0.002156/0.002191, allocations: 0.6717 MB / 0.9821 GB, free: 11.3 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001581/0.003772, allocations: 1.1 MB / 0.9831 GB, free: 10.19 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.578e-05/0.003828, allocations: 4 kB / 0.9831 GB, free: 10.18 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 2.976e-05/0.003858, allocations: 3.938 kB / 0.9831 GB, free: 10.18 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 6.83e-05/0.003926, allocations: 7.938 kB / 0.9832 GB, free: 10.17 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003257/0.004252, allocations: 59.73 kB / 0.9832 GB, free: 10.11 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001277/0.004379, allocations: 67.78 kB / 0.9833 GB, free: 10.05 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 9.659e-05/0.004476, allocations: 8 kB / 0.9833 GB, free: 10.04 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001011/0.004577, allocations: 35.95 kB / 0.9833 GB, free: 10 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 7.048e-05/0.004648, allocations: 23.91 kB / 0.9833 GB, free: 9.98 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.394e-05/0.004672, allocations: 8 kB / 0.9833 GB, free: 9.973 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 7.779e-05/0.004749, allocations: 31.91 kB / 0.9834 GB, free: 9.941 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.918e-05/0.004778, allocations: 15.98 kB / 0.9834 GB, free: 9.926 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 6.224e-05/0.004841, allocations: 23.91 kB / 0.9834 GB, free: 9.902 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.000184/0.005025, allocations: 87.67 kB / 0.9835 GB, free: 9.816 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.005028, allocations: 3.938 kB / 0.9835 GB, free: 9.812 MB / 0.9356 GB Notification: Performance of FrontEnd: time 9.32e-07/0.005029, allocations: 0 / 0.9835 GB, free: 9.812 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 5.621e-06/0.005035, allocations: 0 / 0.9835 GB, free: 9.812 MB / 0.9356 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.0006724/0.005707, allocations: 306.1 kB / 0.9838 GB, free: 9.48 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.924e-05/0.005746, allocations: 12.03 kB / 0.9838 GB, free: 9.469 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001014/0.005848, allocations: 12.89 kB / 0.9838 GB, free: 9.457 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001225/0.00597, allocations: 117.7 kB / 0.9839 GB, free: 9.316 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.917e-05/0.005999, allocations: 8.375 kB / 0.9839 GB, free: 9.309 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.683e-05/0.006016, allocations: 4.375 kB / 0.9839 GB, free: 9.305 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002351/0.006251, allocations: 78.2 kB / 0.984 GB, free: 9.223 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.128e-05/0.006263, allocations: 4.125 kB / 0.984 GB, free: 9.219 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.665e-05/0.006279, allocations: 4.375 kB / 0.984 GB, free: 9.215 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.047e-05/0.00629, allocations: 8.359 kB / 0.984 GB, free: 9.207 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002164/0.006506, allocations: 59.89 kB / 0.9841 GB, free: 9.148 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005238/0.00703, allocations: 244.4 kB / 0.9843 GB, free: 8.879 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000214/0.007244, allocations: 70.73 kB / 0.9844 GB, free: 8.801 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001325/0.007377, allocations: 40.77 kB / 0.9844 GB, free: 8.758 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.729e-05/0.007404, allocations: 4 kB / 0.9844 GB, free: 8.754 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002753/0.007679, allocations: 91.3 kB / 0.9845 GB, free: 8.652 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=10): time 1.573e-06/0.007681, allocations: 4 kB / 0.9845 GB, free: 8.648 MB / 0.9356 GB Notification: Performance of matching and sorting (n=10): time 0.0005532/0.008234, allocations: 173.5 kB / 0.9847 GB, free: 8.473 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.779e-05/0.008292, allocations: 59.41 kB / 0.9847 GB, free: 8.402 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001045/0.008396, allocations: 105.8 kB / 0.9848 GB, free: 8.289 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.819e-05/0.008424, allocations: 29.7 kB / 0.9849 GB, free: 8.254 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 5.6e-05/0.00848, allocations: 84.38 kB / 0.985 GB, free: 8.164 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 4.198e-05/0.008522, allocations: 35.72 kB / 0.985 GB, free: 8.129 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.003e-05/0.008582, allocations: 30.09 kB / 0.985 GB, free: 8.094 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001546/0.008737, allocations: 326.8 kB / 0.9853 GB, free: 7.766 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001294/0.008866, allocations: 39.91 kB / 0.9854 GB, free: 7.727 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001439/0.00901, allocations: 58.55 kB / 0.9854 GB, free: 7.66 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002625/0.009273, allocations: 102.5 kB / 0.9855 GB, free: 7.551 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/0.009275, allocations: 0 / 0.9855 GB, free: 7.551 MB / 0.9356 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003411/0.009616, allocations: 141.6 kB / 0.9857 GB, free: 7.406 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.875e-05/0.009635, allocations: 7.938 kB / 0.9857 GB, free: 7.398 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.00964, allocations: 0 / 0.9857 GB, free: 7.398 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.804e-05/0.009658, allocations: 4 kB / 0.9857 GB, free: 7.395 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001428/0.009801, allocations: 27.91 kB / 0.9857 GB, free: 7.367 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.232e-06/0.009807, allocations: 0 / 0.9857 GB, free: 7.367 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.797e-05/0.009895, allocations: 15.89 kB / 0.9857 GB, free: 7.352 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.525e-05/0.009911, allocations: 4 kB / 0.9857 GB, free: 7.348 MB / 0.9356 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.000119/0.01003, allocations: 134.3 kB / 0.9858 GB, free: 7.207 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.061e-05/0.01005, allocations: 7.891 kB / 0.9859 GB, free: 7.199 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003797/0.01043, allocations: 146.1 kB / 0.986 GB, free: 7.051 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-06/0.01043, allocations: 0 / 0.986 GB, free: 7.051 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.01044, allocations: 0 / 0.986 GB, free: 7.051 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.01044, allocations: 7.938 kB / 0.986 GB, free: 7.043 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005673/0.01101, allocations: 342.1 kB / 0.9863 GB, free: 6.672 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.01101, allocations: 4 kB / 0.9863 GB, free: 6.668 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001168/0.01113, allocations: 11.98 kB / 0.9863 GB, free: 6.656 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.01113, allocations: 0 / 0.9863 GB, free: 6.656 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.392e-05/0.01114, allocations: 4 kB / 0.9863 GB, free: 6.652 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.01115, allocations: 256 / 0.9863 GB, free: 6.652 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.01115, allocations: 0 / 0.9863 GB, free: 6.652 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004161/0.01156, allocations: 247.5 kB / 0.9866 GB, free: 6.395 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 2.133e-05/0.01158, allocations: 15.98 kB / 0.9866 GB, free: 6.379 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.031e-05/0.0116, allocations: 7.938 kB / 0.9866 GB, free: 6.371 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001121/0.01172, allocations: 15.98 kB / 0.9866 GB, free: 6.355 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.248e-05/0.01176, allocations: 3.984 kB / 0.9866 GB, free: 6.352 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.998e-06/0.01177, allocations: 7.938 kB / 0.9866 GB, free: 6.344 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 5.557e-05/0.01182, allocations: 83.28 kB / 0.9867 GB, free: 6.262 MB / 0.9356 GB Notification: Performance of sort global known variables: time 8.1e-08/0.01182, allocations: 0 / 0.9867 GB, free: 6.262 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.000266/0.01209, allocations: 23.98 kB / 0.9867 GB, free: 6.238 MB / 0.9356 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.0001882/0.01228, allocations: 103.2 kB / 0.9868 GB, free: 6.129 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003382/0.01262, allocations: 107.9 kB / 0.9869 GB, free: 6.023 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.694e-06/0.01262, allocations: 0 / 0.9869 GB, free: 6.023 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.000137/0.01276, allocations: 39.97 kB / 0.987 GB, free: 5.984 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002778/0.01303, allocations: 15.91 kB / 0.987 GB, free: 5.969 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004204/0.01345, allocations: 161.5 kB / 0.9871 GB, free: 5.785 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.699e-05/0.01354, allocations: 75.7 kB / 0.9872 GB, free: 5.691 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.721e-05/0.01358, allocations: 4.5 kB / 0.9872 GB, free: 5.684 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.566e-05/0.01361, allocations: 12.5 kB / 0.9872 GB, free: 5.672 MB / 0.9356 GB Notification: Performance of SimCode: time 4.61e-07/0.01361, allocations: 0 / 0.9872 GB, free: 5.672 MB / 0.9356 GB Notification: Performance of Templates: time 0.004459/0.01807, allocations: 1.071 MB / 0.9883 GB, free: 4.629 MB / 0.9356 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Discrete.Validation.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Discrete_Validation_FirstOrderHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.309076942503452]