Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_9_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL,fileNamePrefix="Buildings_9_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.001241/0.001241, allocations: 90.75 kB / 15.36 MB, free: 0.7383 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.005516/0.005516, allocations: 171.3 kB / 16.26 MB, free: 6.676 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.198/1.198, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.074/2.074, allocations: 390.9 MB / 0.6664 GB, free: 2.289 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004621/0.0004621, allocations: 11.98 kB / 0.8161 GB, free: 13.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4949/0.4954, allocations: 142.4 MB / 0.9552 GB, free: 7.691 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.001808/0.4973, allocations: 2.004 MB / 0.9571 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008161/0.4981, allocations: 0.7671 MB / 0.9579 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.036e-05/0.4982, allocations: 3.031 kB / 0.9579 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 8.268e-05/0.4982, allocations: 13.73 kB / 0.9579 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001771/0.4984, allocations: 63.39 kB / 0.9579 GB, free: 5.477 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001154/0.4986, allocations: 47.34 kB / 0.958 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001709/0.4987, allocations: 189.4 kB / 0.9582 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001769/0.4989, allocations: 216.8 kB / 0.9584 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.211e-05/0.499, allocations: 52.59 kB / 0.9584 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001065/0.4991, allocations: 67.34 kB / 0.9585 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.548e-05/0.4991, allocations: 5.344 kB / 0.9585 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.84e-05/0.4992, allocations: 61.45 kB / 0.9586 GB, free: 5.023 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.883e-05/0.4993, allocations: 34.41 kB / 0.9586 GB, free: 5 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.573e-05/0.4993, allocations: 84.91 kB / 0.9587 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001474/0.4995, allocations: 166.3 kB / 0.9588 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.845e-06/0.4995, allocations: 0 / 0.9588 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.233e-06/0.4995, allocations: 0 / 0.9588 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.046e-06/0.4995, allocations: 0 / 0.9588 GB, free: 4.816 MB / 0.7169 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.0004297/0.5, allocations: 475.8 kB / 0.9593 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 2.95e-05/0.5, allocations: 9.625 kB / 0.9593 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.876e-05/0.5, allocations: 42.86 kB / 0.9593 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001602/0.5002, allocations: 30.48 kB / 0.9594 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001336/0.5003, allocations: 208.6 kB / 0.9596 GB, free: 4.043 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.391e-05/0.5004, allocations: 41.27 kB / 0.9596 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.498e-05/0.5004, allocations: 14.81 kB / 0.9596 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002089/0.5006, allocations: 147.1 kB / 0.9598 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.143e-06/0.5006, allocations: 0 / 0.9598 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.286e-05/0.5006, allocations: 6.734 kB / 0.9598 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.59e-05/0.5007, allocations: 4.125 kB / 0.9598 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001601/0.5008, allocations: 89.39 kB / 0.9598 GB, free: 3.844 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005636/0.5014, allocations: 0.645 MB / 0.9605 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001781/0.5016, allocations: 64.7 kB / 0.9605 GB, free: 3.172 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.14e-05/0.5017, allocations: 27.48 kB / 0.9606 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.192e-05/0.5017, allocations: 1.438 kB / 0.9606 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001328/0.5018, allocations: 153.3 kB / 0.9607 GB, free: 3.008 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.252e-06/0.5018, allocations: 0 / 0.9607 GB, free: 3.008 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0002878/0.5021, allocations: 165.9 kB / 0.9609 GB, free: 2.898 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.939e-05/0.5022, allocations: 131.2 kB / 0.961 GB, free: 2.742 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000112/0.5023, allocations: 188.1 kB / 0.9612 GB, free: 2.594 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.098e-05/0.5023, allocations: 31.7 kB / 0.9612 GB, free: 2.559 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.536e-05/0.5023, allocations: 136.1 kB / 0.9613 GB, free: 2.426 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.755e-05/0.5024, allocations: 27.36 kB / 0.9614 GB, free: 2.402 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.633e-05/0.5024, allocations: 36.09 kB / 0.9614 GB, free: 2.367 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.553e-05/0.5024, allocations: 321.8 kB / 0.9617 GB, free: 2.047 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.932e-05/0.5025, allocations: 42.78 kB / 0.9617 GB, free: 2.027 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.159e-05/0.5026, allocations: 116.7 kB / 0.9619 GB, free: 1.91 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001698/0.5028, allocations: 229 kB / 0.9621 GB, free: 1.684 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.063e-06/0.5028, allocations: 0 / 0.9621 GB, free: 1.684 MB / 0.7169 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002674/0.5031, allocations: 246.1 kB / 0.9623 GB, free: 1.516 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.847e-05/0.5031, allocations: 71.14 kB / 0.9624 GB, free: 1.441 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.159e-06/0.5031, allocations: 6.797 kB / 0.9624 GB, free: 1.438 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.103e-05/0.5031, allocations: 11.95 kB / 0.9624 GB, free: 1.43 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.847e-05/0.5032, allocations: 27.61 kB / 0.9624 GB, free: 1.426 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.384e-06/0.5032, allocations: 8.125 kB / 0.9624 GB, free: 1.422 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001144/0.5034, allocations: 29.14 kB / 0.9625 GB, free: 1.406 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.353e-05/0.5034, allocations: 12.31 kB / 0.9625 GB, free: 1.402 MB / 0.7169 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 7.576e-05/0.5035, allocations: 159 kB / 0.9626 GB, free: 1.246 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.782e-05/0.5035, allocations: 15.12 kB / 0.9626 GB, free: 1.238 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.148e-05/0.5035, allocations: 13.91 kB / 0.9626 GB, free: 1.23 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.232e-06/0.5035, allocations: 0 / 0.9626 GB, free: 1.23 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.615e-06/0.5035, allocations: 5.094 kB / 0.9627 GB, free: 1.227 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.434e-06/0.5035, allocations: 3.984 kB / 0.9627 GB, free: 1.223 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.854e-05/0.5036, allocations: 206 kB / 0.9629 GB, free: 0.9961 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.5036, allocations: 0.75 kB / 0.9629 GB, free: 0.9961 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.867e-05/0.5037, allocations: 21.02 kB / 0.9629 GB, free: 0.9844 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.534e-06/0.5037, allocations: 5 kB / 0.9629 GB, free: 0.9805 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.017e-05/0.5037, allocations: 2 kB / 0.9629 GB, free: 0.9805 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.5037, allocations: 0 / 0.9629 GB, free: 0.9805 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.32e-07/0.5038, allocations: 1.062 kB / 0.9629 GB, free: 0.9805 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002963/0.5041, allocations: 229.2 kB / 0.9631 GB, free: 0.8125 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.351e-05/0.5041, allocations: 91.92 kB / 0.9632 GB, free: 0.707 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.372e-05/0.5041, allocations: 11.11 kB / 0.9632 GB, free: 0.6992 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.078e-05/0.5042, allocations: 8.562 kB / 0.9632 GB, free: 0.6992 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.39e-05/0.5043, allocations: 15.98 kB / 0.9632 GB, free: 0.6875 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.183e-06/0.5043, allocations: 2.844 kB / 0.9632 GB, free: 0.6875 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 6.985e-05/0.5043, allocations: 132 kB / 0.9633 GB, free: 0.5859 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5043, allocations: 0 / 0.9633 GB, free: 0.5859 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002113/0.5046, allocations: 30.09 kB / 0.9634 GB, free: 0.582 MB / 0.7169 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.000427/0.505, allocations: 0.7584 MB / 0.9641 GB, free: 15.89 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002658/0.5053, allocations: 220.6 kB / 0.9643 GB, free: 15.71 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.5053, allocations: 1.688 kB / 0.9643 GB, free: 15.71 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001128/0.5054, allocations: 108.6 kB / 0.9644 GB, free: 15.62 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001885/0.5056, allocations: 18.86 kB / 0.9645 GB, free: 15.62 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001705/0.5073, allocations: 2.009 MB / 0.9664 GB, free: 13.87 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001941/0.5075, allocations: 0.7222 MB / 0.9671 GB, free: 13.14 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 6.592e-05/0.5076, allocations: 22.28 kB / 0.9671 GB, free: 13.13 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.949e-05/0.5076, allocations: 36.67 kB / 0.9672 GB, free: 13.1 MB / 0.7325 GB Notification: Performance of SimCode: time 2.6e-07/0.5076, allocations: 1.25 kB / 0.9672 GB, free: 13.1 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.587/4.094, allocations: 2.742 MB / 0.9699 GB, free: 11.82 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002274/4.095, allocations: 202.6 kB / 0.97 GB, free: 11.57 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.876/5.971, allocations: 3.938 kB / 0.97 GB, free: 11.57 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; mkfifo Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe >> ../files/Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.fmu > Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches