Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.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.001468/0.001468, allocations: 97.31 kB / 19.73 MB, free: 2.117 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.001502/0.001502, allocations: 220 kB / 23.03 MB, free: 4.922 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.431/1.431, allocations: 230.6 MB / 256.8 MB, free: 7.812 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.118/3.118, allocations: 0.49 GB / 0.7959 GB, free: 35.34 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.Electrical.Utilities.Examples.TestVoltageCTRL,fileNamePrefix="Buildings_12_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL,fileNamePrefix="Buildings_12_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL",fmuType="cs",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.001974/0.001974, allocations: 60.84 kB / 1.155 GB, free: 25.46 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3437/0.3457, allocations: 176.1 MB / 1.327 GB, free: 1.527 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.004102/0.3498, allocations: 2.322 MB / 1.329 GB, free: 15.2 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.001484/0.3513, allocations: 0.8143 MB / 1.33 GB, free: 14.38 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001059/0.3514, allocations: 4 kB / 1.33 GB, free: 14.38 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0005869/0.352, allocations: 143.4 kB / 1.33 GB, free: 14.23 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0002051/0.3522, allocations: 75.59 kB / 1.33 GB, free: 14.16 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.000196/0.3524, allocations: 63.8 kB / 1.33 GB, free: 14.1 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002591/0.3526, allocations: 163.4 kB / 1.33 GB, free: 13.94 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002431/0.3529, allocations: 85.11 kB / 1.33 GB, free: 13.85 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001769/0.353, allocations: 71.77 kB / 1.33 GB, free: 13.78 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001707/0.3532, allocations: 71.61 kB / 1.33 GB, free: 13.71 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.406e-05/0.3532, allocations: 12 kB / 1.33 GB, free: 13.7 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00013/0.3534, allocations: 55.89 kB / 1.33 GB, free: 13.64 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 6.423e-05/0.3534, allocations: 39.91 kB / 1.33 GB, free: 13.61 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 8.75e-05/0.3535, allocations: 55.72 kB / 1.33 GB, free: 13.55 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002836/0.3538, allocations: 175.3 kB / 1.331 GB, free: 13.38 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.581e-06/0.3538, allocations: 4 kB / 1.331 GB, free: 13.38 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.222e-06/0.3538, allocations: 0 / 1.331 GB, free: 13.38 MB / 1.029 GB Notification: Performance of Transformations before backend: time 9.428e-06/0.3538, allocations: 0 / 1.331 GB, free: 13.38 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0007426/0.3546, allocations: 429.2 kB / 1.331 GB, free: 12.91 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.779e-05/0.3546, allocations: 15.97 kB / 1.331 GB, free: 12.9 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.432e-05/0.3546, allocations: 4.312 kB / 1.331 GB, free: 12.89 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.271e-05/0.3546, allocations: 42.75 kB / 1.331 GB, free: 12.84 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002981/0.3549, allocations: 44.81 kB / 1.331 GB, free: 12.8 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002539/0.3552, allocations: 163.7 kB / 1.331 GB, free: 12.62 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.225e-05/0.3553, allocations: 63.41 kB / 1.331 GB, free: 12.54 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.137e-05/0.3553, allocations: 8 kB / 1.331 GB, free: 12.54 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003244/0.3556, allocations: 179.7 kB / 1.332 GB, free: 12.34 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.159e-05/0.3556, allocations: 3.984 kB / 1.332 GB, free: 12.34 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.046e-05/0.3557, allocations: 8 kB / 1.332 GB, free: 12.33 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.751e-05/0.3557, allocations: 4 kB / 1.332 GB, free: 12.32 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002286/0.3559, allocations: 125.5 kB / 1.332 GB, free: 12.2 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000869/0.3568, allocations: 0.5771 MB / 1.332 GB, free: 11.56 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002579/0.357, allocations: 84.5 kB / 1.332 GB, free: 11.46 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.653e-05/0.3571, allocations: 58.48 kB / 1.332 GB, free: 11.4 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.097e-05/0.3571, allocations: 0 / 1.332 GB, free: 11.4 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002336/0.3574, allocations: 176.4 kB / 1.333 GB, free: 11.2 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 1.312e-06/0.3574, allocations: 4 kB / 1.333 GB, free: 11.19 MB / 1.029 GB Notification: Performance of matching and sorting (n=7): time 0.0004351/0.3578, allocations: 222.7 kB / 1.333 GB, free: 10.95 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.833e-05/0.3579, allocations: 136.5 kB / 1.333 GB, free: 10.79 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002137/0.3581, allocations: 187.2 kB / 1.333 GB, free: 10.59 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.179e-05/0.3581, allocations: 29.7 kB / 1.333 GB, free: 10.55 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001011/0.3582, allocations: 136 kB / 1.333 GB, free: 10.41 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.14e-05/0.3583, allocations: 23.84 kB / 1.333 GB, free: 10.39 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.269e-05/0.3583, allocations: 37.66 kB / 1.333 GB, free: 10.35 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001444/0.3585, allocations: 326.8 kB / 1.334 GB, free: 10.02 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001361/0.3586, allocations: 99.38 kB / 1.334 GB, free: 9.91 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001846/0.3588, allocations: 165.8 kB / 1.334 GB, free: 9.703 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000297/0.3591, allocations: 230.4 kB / 1.334 GB, free: 9.426 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.3591, allocations: 0 / 1.334 GB, free: 9.426 MB / 1.029 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004408/0.3595, allocations: 308 kB / 1.334 GB, free: 9.094 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 5.396e-05/0.3596, allocations: 63.41 kB / 1.334 GB, free: 9.02 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.201e-06/0.3596, allocations: 0 / 1.334 GB, free: 9.02 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.909e-05/0.3596, allocations: 4.312 kB / 1.334 GB, free: 9.016 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001301/0.3598, allocations: 35.92 kB / 1.334 GB, free: 8.98 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.867e-06/0.3598, allocations: 4 kB / 1.334 GB, free: 8.977 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001526/0.3599, allocations: 31.83 kB / 1.334 GB, free: 8.945 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.842e-05/0.3599, allocations: 11.94 kB / 1.334 GB, free: 8.934 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 6 (voltageControl.ctrl.tSwitch,$PRE.voltageControl.ctrl.tSwitch,voltageControl.ctrl.connected,$PRE.voltageControl.ctrl.connected,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 2 * 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.0001521/0.3601, allocations: 167.3 kB / 1.335 GB, free: 8.754 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.599e-05/0.3601, allocations: 11.95 kB / 1.335 GB, free: 8.742 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.293e-05/0.3602, allocations: 17.39 kB / 1.335 GB, free: 8.715 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/0.3602, allocations: 0 / 1.335 GB, free: 8.715 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.3602, allocations: 8 kB / 1.335 GB, free: 8.707 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.606e-06/0.3602, allocations: 0 / 1.335 GB, free: 8.707 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001895/0.3604, allocations: 180.6 kB / 1.335 GB, free: 8.488 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.3604, allocations: 0 / 1.335 GB, free: 8.488 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.732e-05/0.3604, allocations: 11.98 kB / 1.335 GB, free: 8.477 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.3604, allocations: 0 / 1.335 GB, free: 8.477 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.78e-05/0.3605, allocations: 4 kB / 1.335 GB, free: 8.473 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.819e-06/0.3605, allocations: 4 kB / 1.335 GB, free: 8.469 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.3605, allocations: 0 / 1.335 GB, free: 8.469 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004609/0.3609, allocations: 286 kB / 1.335 GB, free: 8.152 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.489e-05/0.361, allocations: 11.94 kB / 1.335 GB, free: 8.141 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.516e-05/0.361, allocations: 4 kB / 1.335 GB, free: 8.137 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001025/0.3611, allocations: 15.98 kB / 1.335 GB, free: 8.121 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.062e-05/0.3612, allocations: 7.984 kB / 1.335 GB, free: 8.113 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.546e-06/0.3612, allocations: 0 / 1.335 GB, free: 8.113 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001304/0.3613, allocations: 136.3 kB / 1.335 GB, free: 7.98 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3613, allocations: 0 / 1.335 GB, free: 7.98 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002604/0.3616, allocations: 35.94 kB / 1.335 GB, free: 7.945 MB / 1.029 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (voltageControl.y) * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,voltageControl.ctrl.connected,voltageControl.ctrl.tSwitch) * Number of discrete states: 4 ($whenCondition2,voltageControl.ctrl.connected,voltageControl.ctrl.tSwitch,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 1 * 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.0007916/0.3623, allocations: 0.8248 MB / 1.336 GB, free: 7.074 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004003/0.3627, allocations: 299.7 kB / 1.336 GB, free: 6.738 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 5.982e-06/0.3628, allocations: 4 kB / 1.336 GB, free: 6.734 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001447/0.3629, allocations: 113.1 kB / 1.337 GB, free: 6.605 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002485/0.3631, allocations: 24.61 kB / 1.337 GB, free: 6.582 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002662/0.3658, allocations: 2.241 MB / 1.339 GB, free: 4.125 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001161/0.3659, allocations: 110.7 kB / 1.339 GB, free: 4 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 7.321e-05/0.366, allocations: 12.64 kB / 1.339 GB, free: 3.988 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.639e-05/0.3661, allocations: 39.42 kB / 1.339 GB, free: 3.949 MB / 1.029 GB Notification: Performance of SimCode: time 4.21e-07/0.3661, allocations: 0 / 1.339 GB, free: 3.949 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02611/0.3922, allocations: 3.449 MB / 1.342 GB, free: 0.6836 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.63/12.02, allocations: 14.36 kB / 1.342 GB, free: 0.6758 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; mkfifo Buildings_12_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; head -c 1048576 < Buildings_12_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe >> ../files/Buildings_12_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL_res.mat --tempDir=temp_Buildings_12_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL_fmu --startTime=0 --stopTime=10 --stepSize=0.004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.fmu > Buildings_12_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.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: 18.68852068996057]