Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firOrdHol.u|firOrdHol.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001102/0.001102, allocations: 97.78 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001091/0.001091, allocations: 181.8 kB / 16.92 MB, free: 6.918 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.476/1.476, allocations: 223.3 MB / 241 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.594/2.594, allocations: 437.8 MB / 0.7128 GB, free: 7.043 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003962/0.0003963, allocations: 12 kB / 0.8735 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7432/0.7436, allocations: 153.8 MB / 1.024 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.0008075/0.7445, allocations: 420.9 kB / 1.024 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001333/0.7458, allocations: 1.05 MB / 1.025 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.938e-05/0.7459, allocations: 8 kB / 1.025 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.827e-05/0.7459, allocations: 3.938 kB / 1.025 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 6.72e-05/0.746, allocations: 7.969 kB / 1.025 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002455/0.7462, allocations: 39.84 kB / 1.025 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 9.026e-05/0.7463, allocations: 67.83 kB / 1.025 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 8.214e-05/0.7464, allocations: 7.984 kB / 1.025 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 8.009e-05/0.7465, allocations: 27.92 kB / 1.025 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 6.304e-05/0.7466, allocations: 27.89 kB / 1.025 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.769e-05/0.7466, allocations: 8 kB / 1.025 GB, free: 14.24 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 6.415e-05/0.7467, allocations: 19.92 kB / 1.025 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.021e-05/0.7467, allocations: 11.98 kB / 1.025 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 5.43e-05/0.7468, allocations: 57.55 kB / 1.025 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 9.852e-05/0.7469, allocations: 47.89 kB / 1.025 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.7469, allocations: 0 / 1.025 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.232e-06/0.7469, allocations: 0 / 1.025 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.868e-06/0.7469, allocations: 0 / 1.025 GB, free: 14.1 MB / 0.7794 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.0005766/0.7475, allocations: 378.8 kB / 1.026 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.385e-05/0.7475, allocations: 12.03 kB / 1.026 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.117e-05/0.7476, allocations: 4.938 kB / 1.026 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001292/0.7477, allocations: 172.2 kB / 1.026 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.611e-05/0.7477, allocations: 8.375 kB / 1.026 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.775e-05/0.7478, allocations: 4.375 kB / 1.026 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002221/0.748, allocations: 94.14 kB / 1.026 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.642e-06/0.748, allocations: 192 / 1.026 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.566e-05/0.748, allocations: 7.938 kB / 1.026 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.949e-06/0.748, allocations: 0 / 1.026 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002232/0.7483, allocations: 63.95 kB / 1.026 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005032/0.7488, allocations: 316.7 kB / 1.026 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000211/0.749, allocations: 94.42 kB / 1.027 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001247/0.7491, allocations: 44.83 kB / 1.027 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.023e-05/0.7492, allocations: 4 kB / 1.027 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002252/0.7494, allocations: 103.5 kB / 1.027 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=10): time 1.733e-06/0.7494, allocations: 0 / 1.027 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10): time 0.0005046/0.7499, allocations: 189.5 kB / 1.027 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.766e-05/0.75, allocations: 55.41 kB / 1.027 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.992e-05/0.7501, allocations: 105.8 kB / 1.027 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.359e-05/0.7501, allocations: 33.7 kB / 1.027 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.473e-05/0.7501, allocations: 88.28 kB / 1.027 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.88e-05/0.7502, allocations: 27.64 kB / 1.027 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.346e-05/0.7502, allocations: 17.72 kB / 1.027 GB, free: 12.1 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001118/0.7503, allocations: 322.8 kB / 1.028 GB, free: 11.77 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001293/0.7505, allocations: 43.97 kB / 1.028 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001431/0.7506, allocations: 69.08 kB / 1.028 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002534/0.7509, allocations: 126.4 kB / 1.028 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.7509, allocations: 0 / 1.028 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003422/0.7512, allocations: 149.6 kB / 1.028 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.577e-05/0.7513, allocations: 5.719 kB / 1.028 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.772e-06/0.7513, allocations: 3.984 kB / 1.028 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.339e-05/0.7513, allocations: 4 kB / 1.028 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001325/0.7514, allocations: 23.92 kB / 1.028 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.225e-06/0.7515, allocations: 7.984 kB / 1.028 GB, free: 11.33 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.979e-05/0.7515, allocations: 15.94 kB / 1.028 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.011e-05/0.7516, allocations: 4 kB / 1.028 GB, free: 11.31 MB / 0.7794 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.0001177/0.7517, allocations: 133.8 kB / 1.028 GB, free: 11.17 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.685e-05/0.7517, allocations: 8.531 kB / 1.028 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003627/0.7521, allocations: 161.9 kB / 1.028 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.7521, allocations: 0 / 1.028 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.275e-06/0.7521, allocations: 4 kB / 1.028 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.059e-06/0.7521, allocations: 0 / 1.028 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005376/0.7526, allocations: 422.3 kB / 1.029 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.7527, allocations: 0 / 1.029 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.626e-05/0.7527, allocations: 15.98 kB / 1.029 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.7528, allocations: 3.938 kB / 1.029 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.13e-05/0.7528, allocations: 4 kB / 1.029 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.7528, allocations: 0 / 1.029 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.7528, allocations: 0 / 1.029 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003631/0.7532, allocations: 251.3 kB / 1.029 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.594e-05/0.7532, allocations: 81.11 kB / 1.029 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.976e-05/0.7532, allocations: 4 kB / 1.029 GB, free: 10.13 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001118/0.7533, allocations: 15.98 kB / 1.029 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.742e-05/0.7534, allocations: 7.984 kB / 1.029 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.092e-05/0.7534, allocations: 7.938 kB / 1.029 GB, free: 10.1 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.855e-05/0.7535, allocations: 87.27 kB / 1.029 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7535, allocations: 0 / 1.029 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002511/0.7537, allocations: 23.91 kB / 1.029 GB, free: 9.992 MB / 0.7794 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.0001332/0.7539, allocations: 99.25 kB / 1.029 GB, free: 9.887 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003162/0.7542, allocations: 111.9 kB / 1.029 GB, free: 9.777 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.7542, allocations: 288 / 1.029 GB, free: 9.777 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.000145/0.7543, allocations: 59.84 kB / 1.029 GB, free: 9.719 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002609/0.7546, allocations: 12.11 kB / 1.029 GB, free: 9.707 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003619/0.755, allocations: 205 kB / 1.03 GB, free: 9.477 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002449/0.7552, allocations: 0.6887 MB / 1.03 GB, free: 8.762 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.296e-05/0.7553, allocations: 11.44 kB / 1.03 GB, free: 8.75 MB / 0.7794 GB Notification: Performance of SimCode: time 2.71e-07/0.7553, allocations: 4 kB / 1.03 GB, free: 8.746 MB / 0.7794 GB Notification: Performance of Templates: time 0.002691/0.758, allocations: 1.08 MB / 1.031 GB, free: 7.672 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches