Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00182/0.00182, allocations: 107.9 kB / 16.45 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002125/0.002125, allocations: 191.8 kB / 19.41 MB, free: 3.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.424/1.424, allocations: 225.6 MB / 247.8 MB, free: 13.93 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.659/2.659, allocations: 443.5 MB / 0.7287 GB, free: 13.22 MB / 0.5919 GB " [Timeout remaining time 177] Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001919/0.001919, allocations: 71.88 kB / 1.056 GB, free: 5.848 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.908/0.9099, allocations: 160.7 MB / 1.213 GB, free: 3.879 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.001958/0.9119, allocations: 0.6875 MB / 1.214 GB, free: 3.359 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001475/0.9133, allocations: 1.062 MB / 1.215 GB, free: 2.504 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.366e-05/0.9134, allocations: 0.7188 kB / 1.215 GB, free: 2.504 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 2.93e-05/0.9134, allocations: 3.938 kB / 1.215 GB, free: 2.5 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 7.638e-05/0.9135, allocations: 9.891 kB / 1.215 GB, free: 2.492 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002943/0.9138, allocations: 41.59 kB / 1.215 GB, free: 2.461 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001228/0.9139, allocations: 60.27 kB / 1.215 GB, free: 2.422 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 9.32e-05/0.914, allocations: 7.062 kB / 1.215 GB, free: 2.418 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 7.085e-05/0.9141, allocations: 24.36 kB / 1.215 GB, free: 2.402 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 6.829e-05/0.9141, allocations: 26.75 kB / 1.215 GB, free: 2.383 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.64e-05/0.9142, allocations: 4.5 kB / 1.215 GB, free: 2.383 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 6.77e-05/0.9142, allocations: 14.94 kB / 1.215 GB, free: 2.379 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.364e-05/0.9143, allocations: 13.03 kB / 1.215 GB, free: 2.367 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 3.855e-05/0.9143, allocations: 21.45 kB / 1.215 GB, free: 2.352 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001531/0.9144, allocations: 60.58 kB / 1.215 GB, free: 2.309 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.9144, allocations: 0 / 1.215 GB, free: 2.309 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.242e-06/0.9144, allocations: 0 / 1.215 GB, free: 2.309 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.239e-06/0.9145, allocations: 5 kB / 1.215 GB, free: 2.305 MB / 0.92 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0006867/0.9151, allocations: 380.2 kB / 1.215 GB, free: 1.906 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/0.9152, allocations: 13.94 kB / 1.215 GB, free: 1.902 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.826e-05/0.9152, allocations: 32.91 kB / 1.215 GB, free: 1.863 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.069e-05/0.9153, allocations: 7.094 kB / 1.215 GB, free: 1.859 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001459/0.9154, allocations: 166.5 kB / 1.215 GB, free: 1.66 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.127e-05/0.9154, allocations: 2.594 kB / 1.215 GB, free: 1.66 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.016e-05/0.9154, allocations: 6.766 kB / 1.215 GB, free: 1.656 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002126/0.9156, allocations: 65.42 kB / 1.216 GB, free: 1.605 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.139e-05/0.9157, allocations: 3.938 kB / 1.216 GB, free: 1.602 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.017e-05/0.9157, allocations: 0 / 1.216 GB, free: 1.602 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.628e-06/0.9157, allocations: 1.156 kB / 1.216 GB, free: 1.602 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001846/0.9159, allocations: 48.39 kB / 1.216 GB, free: 1.578 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004862/0.9163, allocations: 283 kB / 1.216 GB, free: 1.27 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000175/0.9165, allocations: 55.23 kB / 1.216 GB, free: 1.227 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001091/0.9166, allocations: 35.11 kB / 1.216 GB, free: 1.203 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.237e-05/0.9166, allocations: 1.062 kB / 1.216 GB, free: 1.203 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000218/0.9169, allocations: 77.19 kB / 1.216 GB, free: 1.133 MB / 0.92 GB Notification: Performance of pre-optimization done (n=7): time 1.362e-06/0.9169, allocations: 0 / 1.216 GB, free: 1.133 MB / 0.92 GB Notification: Performance of matching and sorting (n=7): time 0.0004233/0.9173, allocations: 126 kB / 1.216 GB, free: 1.059 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.071e-05/0.9173, allocations: 52.91 kB / 1.216 GB, free: 0.9961 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.998e-05/0.9174, allocations: 105.3 kB / 1.216 GB, free: 0.8906 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.074e-05/0.9175, allocations: 26.8 kB / 1.216 GB, free: 0.8594 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 5.842e-05/0.9175, allocations: 85.3 kB / 1.216 GB, free: 0.7734 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.797e-05/0.9175, allocations: 26.86 kB / 1.216 GB, free: 0.75 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.556e-05/0.9176, allocations: 28.45 kB / 1.216 GB, free: 0.7227 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001612/0.9178, allocations: 321.3 kB / 1.217 GB, free: 412 kB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001073/0.9179, allocations: 30.06 kB / 1.217 GB, free: 396 kB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001234/0.918, allocations: 58.36 kB / 1.217 GB, free: 340 kB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002265/0.9182, allocations: 90.59 kB / 1.217 GB, free: 268 kB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.9182, allocations: 1.094 kB / 1.217 GB, free: 268 kB / 0.92 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002816/0.9185, allocations: 117.3 kB / 1.217 GB, free: 192 kB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/0.9185, allocations: 6.125 kB / 1.217 GB, free: 192 kB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.9185, allocations: 1.25 kB / 1.217 GB, free: 192 kB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.572e-05/0.9185, allocations: 2.219 kB / 1.217 GB, free: 192 kB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001177/0.9187, allocations: 24.45 kB / 1.217 GB, free: 180 kB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.795e-06/0.9187, allocations: 2.438 kB / 1.217 GB, free: 180 kB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.339e-05/0.9187, allocations: 12.12 kB / 1.217 GB, free: 172 kB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.25e-05/0.9188, allocations: 11.94 kB / 1.217 GB, free: 164 kB / 0.92 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 (zerOrdHol.firstTrigger,$PRE.zerOrdHol.firstTrigger,zerOrdHol.sampleTrigger,$whenCondition1,$PRE.zerOrdHol.ySample,zerOrdHol.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.0001075/0.9189, allocations: 129.4 kB / 1.217 GB, free: 32 kB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.315e-05/0.9189, allocations: 2.062 kB / 1.217 GB, free: 32 kB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003108/0.9192, allocations: 103.4 kB / 1.217 GB, free: 15.96 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.9192, allocations: 1.125 kB / 1.217 GB, free: 15.96 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.9192, allocations: 0 / 1.217 GB, free: 15.96 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.9192, allocations: 1.062 kB / 1.217 GB, free: 15.96 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000501/0.9197, allocations: 374.2 kB / 1.218 GB, free: 15.59 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.9197, allocations: 1 kB / 1.218 GB, free: 15.59 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.512e-05/0.9198, allocations: 11.5 kB / 1.218 GB, free: 15.59 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.029e-06/0.9198, allocations: 5.047 kB / 1.218 GB, free: 15.59 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.348e-06/0.9198, allocations: 0 / 1.218 GB, free: 15.59 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.9198, allocations: 1.062 kB / 1.218 GB, free: 15.59 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.9198, allocations: 0 / 1.218 GB, free: 15.59 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003257/0.9201, allocations: 203.4 kB / 1.218 GB, free: 15.41 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.879e-05/0.9202, allocations: 82.31 kB / 1.218 GB, free: 15.32 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.877e-05/0.9202, allocations: 1.188 kB / 1.218 GB, free: 15.32 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001/0.9203, allocations: 9.547 kB / 1.218 GB, free: 15.31 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.183e-05/0.9203, allocations: 7.219 kB / 1.218 GB, free: 15.31 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.154e-05/0.9203, allocations: 1.156 kB / 1.218 GB, free: 15.31 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 4.941e-05/0.9204, allocations: 88.36 kB / 1.218 GB, free: 15.23 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.01e-07/0.9204, allocations: 4 kB / 1.218 GB, free: 15.22 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002454/0.9206, allocations: 15.75 kB / 1.218 GB, free: 15.22 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: 4 (zerOrdHol.sampleTrigger,$whenCondition1,zerOrdHol.ySample,zerOrdHol.firstTrigger) * Number of discrete states: 1 (zerOrdHol.ySample) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0006814/0.9213, allocations: 0.7492 MB / 1.219 GB, free: 14.51 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002629/0.9216, allocations: 75.53 kB / 1.219 GB, free: 14.47 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.9216, allocations: 1.156 kB / 1.219 GB, free: 14.47 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.000109/0.9217, allocations: 27.02 kB / 1.219 GB, free: 14.46 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002665/0.922, allocations: 11.36 kB / 1.219 GB, free: 14.46 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00172/0.9237, allocations: 1.422 MB / 1.22 GB, free: 13.09 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003454/0.924, allocations: 0.6887 MB / 1.221 GB, free: 12.39 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.31e-05/0.9241, allocations: 3.844 kB / 1.221 GB, free: 12.39 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.145e-05/0.9241, allocations: 19.66 kB / 1.221 GB, free: 12.37 MB / 0.9356 GB Notification: Performance of SimCode: time 3.51e-07/0.9241, allocations: 0 / 1.221 GB, free: 12.37 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02427/0.9484, allocations: 1.823 MB / 1.223 GB, free: 11.39 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.938/8.886, allocations: 5.703 kB / 1.223 GB, free: 11.39 MB / 0.9356 GB " [Timeout remaining time 291] (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.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: 14.825210505630821]