Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.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.001311/0.001311, allocations: 107.5 kB / 16.45 MB, free: 6.488 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.00136/0.00136, allocations: 196.6 kB / 19.41 MB, free: 3.68 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.428/1.428, allocations: 225.6 MB / 247.8 MB, free: 13.95 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.634/2.634, allocations: 443.5 MB / 0.7287 GB, free: 13.27 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.UnitDelay,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001967/0.001967, allocations: 67.89 kB / 1.056 GB, free: 5.898 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8959/0.8979, allocations: 160.7 MB / 1.213 GB, free: 4.043 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.002856/0.9008, allocations: 0.6733 MB / 1.214 GB, free: 3.539 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.002267/0.903, allocations: 1.049 MB / 1.215 GB, free: 2.695 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.288e-05/0.9031, allocations: 0 / 1.215 GB, free: 2.695 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.87e-05/0.9031, allocations: 13.22 kB / 1.215 GB, free: 2.684 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 8.4e-05/0.9032, allocations: 7.922 kB / 1.215 GB, free: 2.676 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003947/0.9036, allocations: 41.12 kB / 1.215 GB, free: 2.645 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001443/0.9038, allocations: 41.75 kB / 1.215 GB, free: 2.621 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001233/0.9039, allocations: 7.109 kB / 1.215 GB, free: 2.617 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001004/0.904, allocations: 18.66 kB / 1.215 GB, free: 2.605 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 7.647e-05/0.9041, allocations: 21.31 kB / 1.215 GB, free: 2.59 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.942e-05/0.9041, allocations: 4.344 kB / 1.215 GB, free: 2.59 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 8.818e-05/0.9042, allocations: 21.67 kB / 1.215 GB, free: 2.578 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.107e-05/0.9042, allocations: 9.578 kB / 1.215 GB, free: 2.57 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 4.752e-05/0.9042, allocations: 25.02 kB / 1.215 GB, free: 2.551 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001654/0.9044, allocations: 57.53 kB / 1.215 GB, free: 2.508 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.9044, allocations: 0.8125 kB / 1.215 GB, free: 2.508 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.884e-06/0.9044, allocations: 0 / 1.215 GB, free: 2.508 MB / 0.92 GB Notification: Performance of Transformations before backend: time 7.334e-06/0.9044, allocations: 1 kB / 1.215 GB, free: 2.508 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0006326/0.9051, allocations: 354.3 kB / 1.215 GB, free: 2.129 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.837e-05/0.9051, allocations: 14.67 kB / 1.215 GB, free: 2.125 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.125e-05/0.9052, allocations: 35.88 kB / 1.215 GB, free: 2.082 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.161e-05/0.9052, allocations: 7.094 kB / 1.215 GB, free: 2.078 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001693/0.9054, allocations: 174.5 kB / 1.215 GB, free: 1.871 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.482e-05/0.9054, allocations: 5.469 kB / 1.215 GB, free: 1.867 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.36e-05/0.9054, allocations: 3.656 kB / 1.215 GB, free: 1.867 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002063/0.9056, allocations: 61.92 kB / 1.215 GB, free: 1.816 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.31e-05/0.9056, allocations: 3.938 kB / 1.215 GB, free: 1.812 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.229e-05/0.9056, allocations: 0 / 1.215 GB, free: 1.812 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/0.9056, allocations: 0.9062 kB / 1.215 GB, free: 1.812 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001839/0.9058, allocations: 49.7 kB / 1.216 GB, free: 1.785 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004955/0.9063, allocations: 275.1 kB / 1.216 GB, free: 1.484 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001444/0.9065, allocations: 42.14 kB / 1.216 GB, free: 1.449 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.894e-05/0.9065, allocations: 33.23 kB / 1.216 GB, free: 1.426 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.426e-05/0.9066, allocations: 4 kB / 1.216 GB, free: 1.422 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002286/0.9068, allocations: 62.83 kB / 1.216 GB, free: 1.363 MB / 0.92 GB Notification: Performance of pre-optimization done (n=5): time 1.302e-06/0.9068, allocations: 1.125 kB / 1.216 GB, free: 1.363 MB / 0.92 GB Notification: Performance of matching and sorting (n=5): time 0.0003876/0.9072, allocations: 109.6 kB / 1.216 GB, free: 1.293 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.033e-05/0.9073, allocations: 52.78 kB / 1.216 GB, free: 1.23 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001069/0.9074, allocations: 118.6 kB / 1.216 GB, free: 1.113 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.995e-05/0.9074, allocations: 25.7 kB / 1.216 GB, free: 1.082 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 6.156e-05/0.9074, allocations: 86.27 kB / 1.216 GB, free: 0.9961 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.756e-05/0.9075, allocations: 18.19 kB / 1.216 GB, free: 0.9805 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.562e-05/0.9075, allocations: 23.17 kB / 1.216 GB, free: 0.957 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001497/0.9077, allocations: 315.8 kB / 1.217 GB, free: 0.6406 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.916e-05/0.9078, allocations: 29.42 kB / 1.217 GB, free: 0.625 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001077/0.9079, allocations: 45.89 kB / 1.217 GB, free: 0.582 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002093/0.9081, allocations: 80.42 kB / 1.217 GB, free: 0.5195 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.9081, allocations: 1.125 kB / 1.217 GB, free: 0.5195 MB / 0.92 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002581/0.9083, allocations: 96.52 kB / 1.217 GB, free: 468 kB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.036e-05/0.9084, allocations: 9.516 kB / 1.217 GB, free: 464 kB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.9084, allocations: 1.094 kB / 1.217 GB, free: 464 kB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.709e-05/0.9084, allocations: 2.188 kB / 1.217 GB, free: 464 kB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000113/0.9085, allocations: 18.08 kB / 1.217 GB, free: 456 kB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.367e-06/0.9085, allocations: 5.406 kB / 1.217 GB, free: 452 kB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.363e-05/0.9086, allocations: 4.844 kB / 1.217 GB, free: 452 kB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.449e-05/0.9086, allocations: 6.125 kB / 1.217 GB, free: 448 kB / 0.92 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (unitDelay1.y,$PRE.unitDelay1.y,unitDelay1.sampleTrigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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.0001091/0.9087, allocations: 117.6 kB / 1.217 GB, free: 324 kB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.382e-05/0.9087, allocations: 9.234 kB / 1.217 GB, free: 316 kB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002842/0.909, allocations: 89.62 kB / 1.217 GB, free: 248 kB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.909, allocations: 8.906 kB / 1.217 GB, free: 240 kB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.909, allocations: 0.9375 kB / 1.217 GB, free: 240 kB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.365e-06/0.909, allocations: 7.984 kB / 1.217 GB, free: 232 kB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000521/0.9095, allocations: 333 kB / 1.217 GB, free: 15.89 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.9095, allocations: 0 / 1.217 GB, free: 15.89 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.355e-05/0.9096, allocations: 10.98 kB / 1.217 GB, free: 15.88 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.9096, allocations: 3.938 kB / 1.217 GB, free: 15.88 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.067e-05/0.9096, allocations: 1.25 kB / 1.217 GB, free: 15.88 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.9096, allocations: 4 kB / 1.217 GB, free: 15.88 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/0.9096, allocations: 3.938 kB / 1.217 GB, free: 15.87 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002909/0.9099, allocations: 178 kB / 1.218 GB, free: 15.71 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.797e-05/0.91, allocations: 82.53 kB / 1.218 GB, free: 15.62 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.237e-05/0.91, allocations: 4.734 kB / 1.218 GB, free: 15.61 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.74e-05/0.9101, allocations: 3.75 kB / 1.218 GB, free: 15.61 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.698e-05/0.9101, allocations: 18.14 kB / 1.218 GB, free: 15.6 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.953e-06/0.9101, allocations: 2.188 kB / 1.218 GB, free: 15.6 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 6.78e-05/0.9102, allocations: 80.81 kB / 1.218 GB, free: 15.52 MB / 0.9356 GB Notification: Performance of sort global known variables: time 7e-08/0.9102, allocations: 0 / 1.218 GB, free: 15.52 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002554/0.9104, allocations: 16.91 kB / 1.218 GB, free: 15.52 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: 3 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y) * Number of discrete states: 1 (unitDelay1.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0008814/0.9113, allocations: 0.7178 MB / 1.219 GB, free: 14.82 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002902/0.9116, allocations: 60.36 kB / 1.219 GB, free: 14.8 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.9116, allocations: 0 / 1.219 GB, free: 14.8 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001111/0.9117, allocations: 27.81 kB / 1.219 GB, free: 14.79 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002815/0.912, allocations: 11.88 kB / 1.219 GB, free: 14.78 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002011/0.914, allocations: 1.378 MB / 1.22 GB, free: 13.45 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004161/0.9144, allocations: 0.6841 MB / 1.221 GB, free: 12.75 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.785e-05/0.9145, allocations: 7.375 kB / 1.221 GB, free: 12.74 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.401e-05/0.9145, allocations: 13.78 kB / 1.221 GB, free: 12.73 MB / 0.9356 GB Notification: Performance of SimCode: time 6.91e-07/0.9145, allocations: 1.094 kB / 1.221 GB, free: 12.73 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02534/0.9399, allocations: 1.724 MB / 1.222 GB, free: 11.79 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.101/9.041, allocations: 2.328 kB / 1.222 GB, free: 11.79 MB / 0.9356 GB " [Timeout remaining time 291] (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.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.958374350797385]