Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.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.001968/0.001968, allocations: 110.6 kB / 18.94 MB, free: 2.949 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.002388/0.002388, allocations: 220.6 kB / 22.26 MB, free: 5.125 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.47/1.47, allocations: 230.6 MB / 256 MB, free: 8 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.068/3.068, allocations: 0.49 GB / 0.7951 GB, free: 33.39 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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: "" <> buildModelFMU(Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff,fileNamePrefix="Buildings_12_Buildings_Examples_Tutorial_CDL_Controls_Validation_SystemOnOff",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff,fileNamePrefix="Buildings_12_Buildings_Examples_Tutorial_CDL_Controls_Validation_SystemOnOff",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001978/0.001978, allocations: 63.64 kB / 1.154 GB, free: 25.69 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3206/0.3226, allocations: 176.1 MB / 1.326 GB, free: 1.965 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff): time 0.002421/0.325, allocations: 0.9281 MB / 1.327 GB, free: 1.043 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001421/0.3264, allocations: 0.9367 MB / 1.328 GB, free: 96 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.863e-05/0.3265, allocations: 0 / 1.328 GB, free: 96 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 5.18e-05/0.3266, allocations: 15.8 kB / 1.328 GB, free: 80 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0001157/0.3267, allocations: 15.81 kB / 1.328 GB, free: 64 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002435/0.3269, allocations: 47.94 kB / 1.328 GB, free: 16 kB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0002038/0.3272, allocations: 131.6 kB / 1.328 GB, free: 15.88 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001464/0.3273, allocations: 37.66 kB / 1.328 GB, free: 15.84 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001842/0.3275, allocations: 59.75 kB / 1.328 GB, free: 15.78 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001217/0.3276, allocations: 51.77 kB / 1.328 GB, free: 15.73 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.745e-05/0.3276, allocations: 15.94 kB / 1.328 GB, free: 15.71 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 6.088e-05/0.3277, allocations: 23.98 kB / 1.328 GB, free: 15.69 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.839e-05/0.3277, allocations: 23.92 kB / 1.328 GB, free: 15.67 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 6.334e-05/0.3278, allocations: 55.73 kB / 1.328 GB, free: 15.61 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003125/0.3281, allocations: 155.5 kB / 1.328 GB, free: 15.46 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.3281, allocations: 4 kB / 1.328 GB, free: 15.46 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.643e-06/0.3281, allocations: 4 kB / 1.328 GB, free: 15.45 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.237e-05/0.3281, allocations: 0 / 1.328 GB, free: 15.45 MB / 1.029 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0006758/0.3288, allocations: 361.7 kB / 1.329 GB, free: 15.07 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.447e-05/0.3288, allocations: 12.03 kB / 1.329 GB, free: 15.06 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.59e-05/0.3289, allocations: 38.69 kB / 1.329 GB, free: 15.01 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002466/0.3291, allocations: 32.86 kB / 1.329 GB, free: 14.98 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003117/0.3295, allocations: 168.1 kB / 1.329 GB, free: 14.79 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.73e-05/0.3295, allocations: 8.375 kB / 1.329 GB, free: 14.79 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.594e-05/0.3295, allocations: 11.94 kB / 1.329 GB, free: 14.77 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002464/0.3297, allocations: 105.6 kB / 1.329 GB, free: 14.66 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.777e-06/0.3297, allocations: 0 / 1.329 GB, free: 14.66 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.892e-05/0.3298, allocations: 8 kB / 1.329 GB, free: 14.66 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.496e-06/0.3298, allocations: 0 / 1.329 GB, free: 14.66 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001937/0.33, allocations: 69.16 kB / 1.329 GB, free: 14.59 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006482/0.3306, allocations: 375.5 kB / 1.329 GB, free: 14.18 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003044/0.3309, allocations: 74.66 kB / 1.33 GB, free: 14.1 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001133/0.331, allocations: 52.77 kB / 1.33 GB, free: 14.04 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.337e-05/0.3311, allocations: 0 / 1.33 GB, free: 14.04 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.683e-05/0.3311, allocations: 34.5 kB / 1.33 GB, free: 14 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 8.72e-07/0.3311, allocations: 0 / 1.33 GB, free: 14 MB / 1.029 GB Notification: Performance of matching and sorting (n=7): time 0.0004189/0.3315, allocations: 129.7 kB / 1.33 GB, free: 13.87 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.412e-05/0.3315, allocations: 51.41 kB / 1.33 GB, free: 13.8 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001753/0.3317, allocations: 160.7 kB / 1.33 GB, free: 13.64 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.758e-05/0.3318, allocations: 29.7 kB / 1.33 GB, free: 13.61 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 8.981e-05/0.3318, allocations: 112.2 kB / 1.33 GB, free: 13.49 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.157e-05/0.3319, allocations: 19.86 kB / 1.33 GB, free: 13.47 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.609e-05/0.3319, allocations: 25.7 kB / 1.33 GB, free: 13.44 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001621/0.3321, allocations: 322.8 kB / 1.33 GB, free: 13.12 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001126/0.3322, allocations: 27.98 kB / 1.33 GB, free: 13.09 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001191/0.3323, allocations: 58.55 kB / 1.331 GB, free: 13.02 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001546/0.3325, allocations: 60.92 kB / 1.331 GB, free: 12.96 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.3325, allocations: 0 / 1.331 GB, free: 12.96 MB / 1.029 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002517/0.3327, allocations: 109.5 kB / 1.331 GB, free: 12.85 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.873e-05/0.3328, allocations: 4 kB / 1.331 GB, free: 12.84 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.3328, allocations: 0 / 1.331 GB, free: 12.84 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.932e-05/0.3328, allocations: 8.016 kB / 1.331 GB, free: 12.84 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.635e-05/0.3329, allocations: 8.281 kB / 1.331 GB, free: 12.83 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.278e-06/0.3329, allocations: 4 kB / 1.331 GB, free: 12.82 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.908e-05/0.333, allocations: 19.88 kB / 1.331 GB, free: 12.8 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.08e-05/0.333, allocations: 8.25 kB / 1.331 GB, free: 12.8 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 5 (conSysSta.onTRoo.y,$PRE.conSysSta.onTRoo.y,conSysSta.onTOut.y,$PRE.conSysSta.onTOut.y,conSysSta.onSys) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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.0001217/0.3331, allocations: 125.6 kB / 1.331 GB, free: 12.67 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.978e-05/0.3331, allocations: 15.88 kB / 1.331 GB, free: 12.65 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.429e-05/0.3332, allocations: 16.72 kB / 1.331 GB, free: 12.63 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.3332, allocations: 0 / 1.331 GB, free: 12.63 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.3332, allocations: 0 / 1.331 GB, free: 12.63 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.3332, allocations: 4 kB / 1.331 GB, free: 12.63 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002514/0.3334, allocations: 184.6 kB / 1.331 GB, free: 12.41 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.3335, allocations: 3.938 kB / 1.331 GB, free: 12.4 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.991e-05/0.3335, allocations: 15.92 kB / 1.331 GB, free: 12.39 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.3335, allocations: 4 kB / 1.331 GB, free: 12.38 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.244e-05/0.3336, allocations: 3.984 kB / 1.331 GB, free: 12.38 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.3336, allocations: 0 / 1.331 GB, free: 12.38 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.3336, allocations: 0 / 1.331 GB, free: 12.38 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002853/0.3338, allocations: 195.5 kB / 1.331 GB, free: 12.17 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.791e-05/0.3339, allocations: 15.89 kB / 1.331 GB, free: 12.16 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.172e-05/0.3339, allocations: 8 kB / 1.331 GB, free: 12.15 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000114/0.334, allocations: 11.98 kB / 1.331 GB, free: 12.14 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.177e-05/0.3341, allocations: 15.97 kB / 1.331 GB, free: 12.12 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.861e-06/0.3341, allocations: 4 kB / 1.331 GB, free: 12.12 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001078/0.3342, allocations: 129.8 kB / 1.331 GB, free: 11.99 MB / 1.029 GB Notification: Performance of sort global known variables: time 6e-08/0.3342, allocations: 0 / 1.331 GB, free: 11.99 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002415/0.3344, allocations: 19.89 kB / 1.331 GB, free: 11.97 MB / 1.029 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 (conSysSta.onSys,conSysSta.onTOut.y,conSysSta.onTRoo.y) * Number of discrete states: 2 (conSysSta.onTRoo.y,conSysSta.onTOut.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (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 Backend phase and start with SimCode phase: time 0.0006006/0.335, allocations: 0.7358 MB / 1.332 GB, free: 11.21 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002394/0.3353, allocations: 67.91 kB / 1.332 GB, free: 11.14 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.3353, allocations: 0 / 1.332 GB, free: 11.14 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 9.635e-05/0.3354, allocations: 35.97 kB / 1.332 GB, free: 11.11 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003254/0.3357, allocations: 8 kB / 1.332 GB, free: 11.1 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002159/0.3379, allocations: 1.651 MB / 1.334 GB, free: 9.367 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003449/0.3382, allocations: 0.7041 MB / 1.335 GB, free: 8.637 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 6.681e-05/0.3383, allocations: 20.64 kB / 1.335 GB, free: 8.617 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.736e-05/0.3383, allocations: 39.45 kB / 1.335 GB, free: 8.578 MB / 1.029 GB Notification: Performance of SimCode: time 5.01e-07/0.3383, allocations: 3.938 kB / 1.335 GB, free: 8.574 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03125/0.3696, allocations: 2.78 MB / 1.337 GB, free: 5.934 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.14/11.51, allocations: 9.812 kB / 1.337 GB, free: 5.93 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.pipe ; mkfifo Buildings_12_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.pipe ; head -c 1048576 < Buildings_12_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.pipe >> ../files/Buildings_12_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff_res.mat --tempDir=temp_Buildings_12_Buildings_Examples_Tutorial_CDL_Controls_Validation_SystemOnOff_fmu --startTime=0 --stopTime=3600 --stepSize=1.44 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Examples_Tutorial_CDL_Controls_Validation_SystemOnOff.fmu > Buildings_12_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Examples_Tutorial_CDL_Controls_Validation_SystemOnOff.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.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: 17.936524400953203]