Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.Electrical.Utilities.Examples.TestVoltageCTRL,fileNamePrefix="Buildings_10_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL,fileNamePrefix="Buildings_10_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.001118/0.001118, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001241/0.001241, allocations: 197.1 kB / 16.14 MB, free: 6.711 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.305/1.305, allocations: 222.9 MB / 239.8 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.374/2.374, allocations: 437 MB / 0.71 GB, free: 5.324 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001222/0.001222, allocations: 63.89 kB / 0.8686 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.482/0.4832, allocations: 151.6 MB / 1.017 GB, free: 2.766 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.003274/0.4865, allocations: 2.38 MB / 1.019 GB, free: 384 kB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.00105/0.4876, allocations: 0.7754 MB / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.962e-05/0.4877, allocations: 4 kB / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0004564/0.4882, allocations: 127.5 kB / 1.02 GB, free: 15.46 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001383/0.4883, allocations: 63.72 kB / 1.02 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001364/0.4885, allocations: 51.89 kB / 1.02 GB, free: 15.35 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001917/0.4887, allocations: 187.4 kB / 1.02 GB, free: 15.17 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001885/0.4889, allocations: 75.31 kB / 1.02 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 9.947e-05/0.489, allocations: 59.7 kB / 1.02 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001256/0.4891, allocations: 67.75 kB / 1.02 GB, free: 14.97 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.136e-05/0.4891, allocations: 8 kB / 1.02 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001173/0.4893, allocations: 55.88 kB / 1.02 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 5.263e-05/0.4893, allocations: 43.83 kB / 1.021 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 7.419e-05/0.4894, allocations: 67.66 kB / 1.021 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001977/0.4896, allocations: 159.5 kB / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.4896, allocations: 4 kB / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.172e-06/0.4896, allocations: 0 / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.939e-06/0.4896, allocations: 0 / 1.021 GB, free: 14.64 MB / 0.7794 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.0005768/0.4902, allocations: 0.4907 MB / 1.021 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.217e-05/0.4903, allocations: 8.031 kB / 1.021 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.051e-05/0.4903, allocations: 46.73 kB / 1.021 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000178/0.4905, allocations: 28.73 kB / 1.021 GB, free: 14 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001906/0.4907, allocations: 216 kB / 1.021 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.103e-05/0.4907, allocations: 34.45 kB / 1.022 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.385e-05/0.4908, allocations: 11.94 kB / 1.022 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002447/0.491, allocations: 153.2 kB / 1.022 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.502e-06/0.491, allocations: 0 / 1.022 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.433e-05/0.4911, allocations: 4 kB / 1.022 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.778e-05/0.4911, allocations: 7.984 kB / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001795/0.4913, allocations: 91.89 kB / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007338/0.492, allocations: 0.6402 MB / 1.022 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002033/0.4922, allocations: 58.5 kB / 1.022 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.891e-05/0.4923, allocations: 24.91 kB / 1.022 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.192e-05/0.4923, allocations: 4 kB / 1.022 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001721/0.4925, allocations: 142.9 kB / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.363e-06/0.4925, allocations: 4 kB / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0003325/0.4928, allocations: 163.1 kB / 1.023 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.675e-05/0.4929, allocations: 140.5 kB / 1.023 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001357/0.4931, allocations: 182.8 kB / 1.023 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.612e-05/0.4931, allocations: 29.7 kB / 1.023 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.112e-05/0.4932, allocations: 135.9 kB / 1.023 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.286e-05/0.4932, allocations: 23.66 kB / 1.023 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.286e-05/0.4932, allocations: 37.7 kB / 1.023 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.49e-05/0.4933, allocations: 326.8 kB / 1.024 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.946e-05/0.4934, allocations: 39.97 kB / 1.024 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001118/0.4935, allocations: 107.1 kB / 1.024 GB, free: 11.19 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002138/0.4938, allocations: 230.3 kB / 1.024 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.648e-06/0.4938, allocations: 4 kB / 1.024 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003116/0.4941, allocations: 248.8 kB / 1.024 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 4.067e-05/0.4941, allocations: 67.33 kB / 1.024 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.4942, allocations: 4 kB / 1.024 GB, free: 10.56 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.236e-05/0.4942, allocations: 4 kB / 1.024 GB, free: 10.56 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001109/0.4943, allocations: 35.92 kB / 1.024 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.021e-05/0.4943, allocations: 7.938 kB / 1.024 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000128/0.4944, allocations: 23.83 kB / 1.024 GB, free: 10.49 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.71e-05/0.4945, allocations: 12 kB / 1.024 GB, free: 10.48 MB / 0.7794 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.0001084/0.4946, allocations: 163.6 kB / 1.025 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.537e-05/0.4946, allocations: 19.75 kB / 1.025 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.284e-05/0.4946, allocations: 9.406 kB / 1.025 GB, free: 10.28 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.948e-06/0.4946, allocations: 4 kB / 1.025 GB, free: 10.28 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/0.4947, allocations: 3.938 kB / 1.025 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.437e-06/0.4947, allocations: 3.984 kB / 1.025 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001423/0.4948, allocations: 205.7 kB / 1.025 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.4948, allocations: 3.984 kB / 1.025 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.036e-05/0.4949, allocations: 11.98 kB / 1.025 GB, free: 10 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.976e-06/0.4949, allocations: 7.938 kB / 1.025 GB, free: 9.996 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.443e-05/0.4949, allocations: 8 kB / 1.025 GB, free: 9.988 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.4949, allocations: 0 / 1.025 GB, free: 9.988 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.4949, allocations: 0 / 1.025 GB, free: 9.988 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003376/0.4953, allocations: 211 kB / 1.025 GB, free: 9.758 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.122e-05/0.4953, allocations: 92.89 kB / 1.025 GB, free: 9.648 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.947e-05/0.4954, allocations: 11.92 kB / 1.025 GB, free: 9.637 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.487e-05/0.4955, allocations: 12.06 kB / 1.025 GB, free: 9.625 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.957e-05/0.4955, allocations: 11.98 kB / 1.025 GB, free: 9.613 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.494e-06/0.4955, allocations: 0 / 1.025 GB, free: 9.613 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 9.434e-05/0.4956, allocations: 136.2 kB / 1.025 GB, free: 9.48 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4956, allocations: 0 / 1.025 GB, free: 9.48 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002363/0.4959, allocations: 32 kB / 1.025 GB, free: 9.449 MB / 0.7794 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.0005327/0.4964, allocations: 0.7506 MB / 1.026 GB, free: 8.66 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002652/0.4967, allocations: 218.6 kB / 1.026 GB, free: 8.422 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.4967, allocations: 0 / 1.026 GB, free: 8.422 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001127/0.4968, allocations: 104.1 kB / 1.026 GB, free: 8.309 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001997/0.497, allocations: 23.97 kB / 1.026 GB, free: 8.285 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001826/0.4989, allocations: 1.983 MB / 1.028 GB, free: 6.152 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002207/0.4991, allocations: 0.716 MB / 1.029 GB, free: 5.41 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 7.417e-05/0.4992, allocations: 24.62 kB / 1.029 GB, free: 5.387 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.769e-05/0.4992, allocations: 35.42 kB / 1.029 GB, free: 5.352 MB / 0.7794 GB Notification: Performance of SimCode: time 2.51e-07/0.4993, allocations: 3.938 kB / 1.029 GB, free: 5.348 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.111/1.61, allocations: 2.814 MB / 1.032 GB, free: 2.648 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002302/1.611, allocations: 204.2 kB / 1.032 GB, free: 2.395 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.519/3.129, allocations: 3.938 kB / 1.032 GB, free: 2.391 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; mkfifo Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe >> ../files/Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL_res.mat --tempDir=temp_Buildings_10_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.fmu > Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches