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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001285/0.001285, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00136/0.00136, allocations: 194.6 kB / 16.53 MB, free: 6.664 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.311/1.311, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.381/2.381, allocations: 437 MB / 0.7104 GB, free: 5.094 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001361/0.001361, allocations: 59.91 kB / 0.8693 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5078/0.5092, allocations: 151.6 MB / 1.017 GB, free: 2.512 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.003454/0.5127, allocations: 2.314 MB / 1.02 GB, free: 192 kB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001184/0.5139, allocations: 0.7831 MB / 1.02 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.566e-05/0.514, allocations: 3.938 kB / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.000528/0.5146, allocations: 147.4 kB / 1.021 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001689/0.5147, allocations: 67.61 kB / 1.021 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001397/0.5149, allocations: 43.89 kB / 1.021 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001966/0.5151, allocations: 167.5 kB / 1.021 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002145/0.5153, allocations: 91.31 kB / 1.021 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001032/0.5154, allocations: 67.7 kB / 1.021 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001343/0.5156, allocations: 75.67 kB / 1.021 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.169e-05/0.5156, allocations: 12 kB / 1.021 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001054/0.5157, allocations: 55.89 kB / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 4.829e-05/0.5158, allocations: 31.91 kB / 1.021 GB, free: 14.65 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 7.352e-05/0.5158, allocations: 63.67 kB / 1.021 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002054/0.5161, allocations: 171.5 kB / 1.021 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.5161, allocations: 0 / 1.021 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.112e-06/0.5161, allocations: 0 / 1.021 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.73e-06/0.5161, allocations: 0 / 1.021 GB, free: 14.42 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.0006017/0.5167, allocations: 496.4 kB / 1.022 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.384e-05/0.5167, allocations: 12.03 kB / 1.022 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.826e-05/0.5168, allocations: 42.75 kB / 1.022 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001894/0.517, allocations: 24.73 kB / 1.022 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000215/0.5172, allocations: 220 kB / 1.022 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.715e-05/0.5172, allocations: 34.45 kB / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.826e-05/0.5173, allocations: 19.88 kB / 1.022 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002494/0.5175, allocations: 148.9 kB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.554e-06/0.5175, allocations: 0 / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.545e-05/0.5176, allocations: 4 kB / 1.022 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.866e-05/0.5176, allocations: 11.98 kB / 1.022 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001755/0.5178, allocations: 87.89 kB / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007337/0.5185, allocations: 0.6402 MB / 1.023 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002015/0.5187, allocations: 54.61 kB / 1.023 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.999e-05/0.5188, allocations: 32.84 kB / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.26e-05/0.5188, allocations: 0 / 1.023 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001754/0.519, allocations: 142.9 kB / 1.023 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.372e-06/0.519, allocations: 0 / 1.023 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0003285/0.5194, allocations: 167.1 kB / 1.023 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.333e-05/0.5194, allocations: 140.5 kB / 1.024 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001433/0.5196, allocations: 186.2 kB / 1.024 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.525e-05/0.5196, allocations: 25.7 kB / 1.024 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.417e-05/0.5197, allocations: 131.9 kB / 1.024 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.693e-05/0.5197, allocations: 31.62 kB / 1.024 GB, free: 11.51 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.466e-05/0.5198, allocations: 37.7 kB / 1.024 GB, free: 11.47 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.453e-05/0.5199, allocations: 326.8 kB / 1.024 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.99e-05/0.52, allocations: 39.98 kB / 1.024 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000117/0.5201, allocations: 105.4 kB / 1.024 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002267/0.5203, allocations: 234.4 kB / 1.025 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.5203, allocations: 0 / 1.025 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003233/0.5207, allocations: 244.9 kB / 1.025 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 4.06e-05/0.5207, allocations: 63.41 kB / 1.025 GB, free: 10.35 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.172e-06/0.5207, allocations: 4 kB / 1.025 GB, free: 10.35 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.323e-05/0.5207, allocations: 4 kB / 1.025 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001111/0.5209, allocations: 35.92 kB / 1.025 GB, free: 10.31 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.216e-06/0.5209, allocations: 7.984 kB / 1.025 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001319/0.521, allocations: 19.84 kB / 1.025 GB, free: 10.28 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.288e-05/0.521, allocations: 4 kB / 1.025 GB, free: 10.28 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.0001143/0.5212, allocations: 172 kB / 1.025 GB, free: 10.09 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.654e-05/0.5212, allocations: 23.69 kB / 1.025 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.451e-05/0.5212, allocations: 17.39 kB / 1.025 GB, free: 10.06 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.5212, allocations: 0 / 1.025 GB, free: 10.06 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.437e-06/0.5212, allocations: 0 / 1.025 GB, free: 10.06 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.434e-06/0.5212, allocations: 3.938 kB / 1.025 GB, free: 10.05 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001417/0.5214, allocations: 213.6 kB / 1.025 GB, free: 9.797 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.5214, allocations: 0 / 1.025 GB, free: 9.797 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.361e-05/0.5215, allocations: 8 kB / 1.025 GB, free: 9.789 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.5215, allocations: 7.938 kB / 1.025 GB, free: 9.781 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.348e-05/0.5215, allocations: 11.98 kB / 1.025 GB, free: 9.77 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.5215, allocations: 0 / 1.025 GB, free: 9.77 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.5215, allocations: 0 / 1.025 GB, free: 9.77 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003383/0.5219, allocations: 218.6 kB / 1.026 GB, free: 9.531 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.25e-05/0.5219, allocations: 88.86 kB / 1.026 GB, free: 9.426 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.689e-05/0.5219, allocations: 7.969 kB / 1.026 GB, free: 9.418 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.04e-05/0.522, allocations: 11.98 kB / 1.026 GB, free: 9.406 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.103e-05/0.5221, allocations: 12.06 kB / 1.026 GB, free: 9.395 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.897e-06/0.5221, allocations: 3.984 kB / 1.026 GB, free: 9.391 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 8.915e-05/0.5222, allocations: 136.3 kB / 1.026 GB, free: 9.258 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5222, allocations: 0 / 1.026 GB, free: 9.258 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000228/0.5224, allocations: 28 kB / 1.026 GB, free: 9.23 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.0005285/0.523, allocations: 0.7623 MB / 1.027 GB, free: 8.43 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002749/0.5233, allocations: 214.6 kB / 1.027 GB, free: 8.195 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.5233, allocations: 0 / 1.027 GB, free: 8.195 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001091/0.5234, allocations: 103.4 kB / 1.027 GB, free: 8.082 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001997/0.5236, allocations: 27.59 kB / 1.027 GB, free: 8.059 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001859/0.5255, allocations: 1.96 MB / 1.029 GB, free: 5.949 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002253/0.5257, allocations: 0.7156 MB / 1.03 GB, free: 5.207 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 7.077e-05/0.5258, allocations: 16.64 kB / 1.03 GB, free: 5.191 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.942e-05/0.5258, allocations: 39.42 kB / 1.03 GB, free: 5.152 MB / 0.7794 GB Notification: Performance of SimCode: time 2.81e-07/0.5259, allocations: 4 kB / 1.03 GB, free: 5.148 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.246/1.772, allocations: 3.063 MB / 1.033 GB, free: 2.176 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.587/9.359, allocations: 3.953 kB / 1.033 GB, free: 2.172 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