Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.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 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/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.Electrical.Utilities.Examples.TestVoltageCTRL,fileNamePrefix="Buildings_latest_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL,fileNamePrefix="Buildings_latest_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004869/0.004869, allocations: 98.52 kB / 15.73 MB, free: 5.527 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001027/0.001028, allocations: 187.4 kB / 16.67 MB, free: 5.465 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.323/1.323, allocations: 222.9 MB / 240.4 MB, free: 4.188 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.626/2.626, allocations: 469.4 MB / 0.7422 GB, free: 7.668 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001299/0.001299, allocations: 59.89 kB / 1.064 GB, free: 13.98 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2817/0.283, allocations: 159.1 MB / 1.22 GB, free: 14.75 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.003775/0.2868, allocations: 2.325 MB / 1.222 GB, free: 12.41 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001331/0.2881, allocations: 0.7831 MB / 1.223 GB, free: 11.62 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000116/0.2883, allocations: 0 / 1.223 GB, free: 11.62 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0005774/0.2889, allocations: 151.4 kB / 1.223 GB, free: 11.47 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0002067/0.2891, allocations: 59.67 kB / 1.223 GB, free: 11.41 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001836/0.2893, allocations: 67.8 kB / 1.223 GB, free: 11.35 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002286/0.2895, allocations: 151.5 kB / 1.223 GB, free: 11.2 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002349/0.2898, allocations: 97.05 kB / 1.223 GB, free: 11.11 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001363/0.2899, allocations: 71.7 kB / 1.223 GB, free: 11.04 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001636/0.2901, allocations: 63.69 kB / 1.223 GB, free: 10.97 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.494e-05/0.2901, allocations: 12 kB / 1.223 GB, free: 10.96 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001242/0.2903, allocations: 51.89 kB / 1.223 GB, free: 10.91 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 6.042e-05/0.2903, allocations: 39.84 kB / 1.223 GB, free: 10.87 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 8.784e-05/0.2904, allocations: 67.72 kB / 1.224 GB, free: 10.8 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002622/0.2907, allocations: 167.3 kB / 1.224 GB, free: 10.64 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.2907, allocations: 0 / 1.224 GB, free: 10.64 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.553e-06/0.2907, allocations: 7.938 kB / 1.224 GB, free: 10.63 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.073e-05/0.2907, allocations: 0 / 1.224 GB, free: 10.63 MB / 0.9825 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.0007584/0.2915, allocations: 498.4 kB / 1.224 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.791e-05/0.2915, allocations: 12.03 kB / 1.224 GB, free: 10.07 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.459e-05/0.2916, allocations: 38.75 kB / 1.224 GB, free: 10.03 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002006/0.2918, allocations: 24.83 kB / 1.224 GB, free: 10 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002362/0.292, allocations: 224.1 kB / 1.224 GB, free: 9.746 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.972e-05/0.2921, allocations: 38.45 kB / 1.224 GB, free: 9.703 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.917e-05/0.2921, allocations: 11.94 kB / 1.225 GB, free: 9.691 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002669/0.2924, allocations: 144.2 kB / 1.225 GB, free: 9.535 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.596e-06/0.2924, allocations: 0 / 1.225 GB, free: 9.535 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.862e-05/0.2925, allocations: 8 kB / 1.225 GB, free: 9.527 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.827e-05/0.2925, allocations: 4 kB / 1.225 GB, free: 9.523 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001875/0.2927, allocations: 87.88 kB / 1.225 GB, free: 9.438 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008074/0.2935, allocations: 0.6364 MB / 1.225 GB, free: 8.734 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002171/0.2937, allocations: 62.48 kB / 1.225 GB, free: 8.664 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.46e-05/0.2938, allocations: 36.91 kB / 1.225 GB, free: 8.625 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.406e-05/0.2938, allocations: 0 / 1.225 GB, free: 8.625 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001825/0.294, allocations: 138.9 kB / 1.226 GB, free: 8.465 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=7): time 1.223e-06/0.294, allocations: 0 / 1.226 GB, free: 8.465 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7): time 0.0003427/0.2944, allocations: 163.2 kB / 1.226 GB, free: 8.293 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.588e-05/0.2945, allocations: 140.4 kB / 1.226 GB, free: 8.125 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001514/0.2946, allocations: 190.8 kB / 1.226 GB, free: 7.93 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.773e-05/0.2946, allocations: 29.7 kB / 1.226 GB, free: 7.895 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.352e-05/0.2947, allocations: 140 kB / 1.226 GB, free: 7.75 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.244e-05/0.2948, allocations: 19.89 kB / 1.226 GB, free: 7.73 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.224e-05/0.2948, allocations: 45.66 kB / 1.226 GB, free: 7.68 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 9.738e-05/0.2949, allocations: 318.8 kB / 1.227 GB, free: 7.359 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.711e-05/0.295, allocations: 35.98 kB / 1.227 GB, free: 7.324 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001223/0.2952, allocations: 115 kB / 1.227 GB, free: 7.18 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002304/0.2954, allocations: 238.2 kB / 1.227 GB, free: 6.895 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.2954, allocations: 4 kB / 1.227 GB, free: 6.891 MB / 0.9825 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003326/0.2957, allocations: 236.7 kB / 1.227 GB, free: 6.641 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 4.572e-05/0.2958, allocations: 67.34 kB / 1.227 GB, free: 6.562 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.967e-06/0.2958, allocations: 8 kB / 1.227 GB, free: 6.555 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.365e-05/0.2958, allocations: 4.312 kB / 1.227 GB, free: 6.551 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001139/0.296, allocations: 31.98 kB / 1.227 GB, free: 6.52 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.067e-05/0.296, allocations: 11.92 kB / 1.227 GB, free: 6.508 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001329/0.2961, allocations: 23.89 kB / 1.227 GB, free: 6.484 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.375e-05/0.2961, allocations: 4.312 kB / 1.227 GB, free: 6.48 MB / 0.9825 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.0001226/0.2963, allocations: 163.5 kB / 1.227 GB, free: 6.305 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.679e-05/0.2963, allocations: 19.84 kB / 1.228 GB, free: 6.285 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.055e-05/0.2963, allocations: 17.39 kB / 1.228 GB, free: 6.262 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.903e-06/0.2963, allocations: 4 kB / 1.228 GB, free: 6.258 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.69e-06/0.2963, allocations: 0 / 1.228 GB, free: 6.258 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.2963, allocations: 3.938 kB / 1.228 GB, free: 6.254 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001573/0.2965, allocations: 213.6 kB / 1.228 GB, free: 5.996 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.2965, allocations: 0 / 1.228 GB, free: 5.996 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.823e-05/0.2966, allocations: 8 kB / 1.228 GB, free: 5.988 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.548e-06/0.2966, allocations: 7.938 kB / 1.228 GB, free: 5.98 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.302e-05/0.2966, allocations: 3.984 kB / 1.228 GB, free: 5.977 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.2966, allocations: 0 / 1.228 GB, free: 5.977 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.2966, allocations: 0 / 1.228 GB, free: 5.977 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000354/0.297, allocations: 226.7 kB / 1.228 GB, free: 5.73 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.678e-05/0.2971, allocations: 81.06 kB / 1.228 GB, free: 5.633 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.882e-05/0.2971, allocations: 7.969 kB / 1.228 GB, free: 5.625 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.397e-05/0.2972, allocations: 15.98 kB / 1.228 GB, free: 5.609 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.658e-05/0.2973, allocations: 7.984 kB / 1.228 GB, free: 5.602 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.755e-06/0.2973, allocations: 0 / 1.228 GB, free: 5.602 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001021/0.2974, allocations: 136.4 kB / 1.228 GB, free: 5.469 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2974, allocations: 3.938 kB / 1.228 GB, free: 5.465 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002365/0.2976, allocations: 31.95 kB / 1.228 GB, free: 5.434 MB / 0.9825 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.0005655/0.2982, allocations: 0.7546 MB / 1.229 GB, free: 4.645 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002914/0.2985, allocations: 214.7 kB / 1.229 GB, free: 4.41 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.2985, allocations: 0 / 1.229 GB, free: 4.41 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001124/0.2986, allocations: 99.39 kB / 1.229 GB, free: 4.301 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002199/0.2989, allocations: 35.84 kB / 1.229 GB, free: 4.266 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00206/0.3009, allocations: 1.964 MB / 1.231 GB, free: 2.148 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002587/0.3012, allocations: 0.7119 MB / 1.232 GB, free: 1.41 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 8.506e-05/0.3013, allocations: 20.64 kB / 1.232 GB, free: 1.391 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.846e-05/0.3014, allocations: 35.42 kB / 1.232 GB, free: 1.355 MB / 0.9825 GB Notification: Performance of SimCode: time 2.5e-07/0.3014, allocations: 0 / 1.232 GB, free: 1.355 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02105/0.3224, allocations: 3.145 MB / 1.235 GB, free: 14.32 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.367/7.69, allocations: 12.33 kB / 1.235 GB, free: 14.31 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; mkfifo Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe >> ../files/Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Buildings_latest_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.fmu > Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches