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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001153/0.001153, 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.001204/0.001204, allocations: 195.5 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.323/1.323, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.376/2.376, allocations: 390.2 MB / 0.6647 GB, free: 420 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001382/0.001383, allocations: 67.89 kB / 0.8126 GB, free: 14.37 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6234/0.6248, allocations: 140.4 MB / 0.9497 GB, free: 9.211 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.003181/0.628, allocations: 2.303 MB / 0.952 GB, free: 7.43 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001034/0.6291, allocations: 0.7823 MB / 0.9527 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.319e-05/0.6292, allocations: 1.531 kB / 0.9527 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0005189/0.6297, allocations: 154 kB / 0.9529 GB, free: 6.699 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.000153/0.6299, allocations: 63.86 kB / 0.9529 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001381/0.63, allocations: 54.86 kB / 0.953 GB, free: 6.605 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001946/0.6302, allocations: 159.3 kB / 0.9531 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002287/0.6305, allocations: 101.7 kB / 0.9532 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001078/0.6306, allocations: 63.45 kB / 0.9533 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001362/0.6307, allocations: 82.64 kB / 0.9534 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.588e-05/0.6308, allocations: 12.06 kB / 0.9534 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001039/0.6309, allocations: 50.28 kB / 0.9534 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.803e-05/0.6309, allocations: 35.16 kB / 0.9535 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.889e-05/0.631, allocations: 70.98 kB / 0.9535 GB, free: 6.27 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002092/0.6312, allocations: 166.1 kB / 0.9537 GB, free: 6.156 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.6312, allocations: 0 / 0.9537 GB, free: 6.156 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.132e-06/0.6312, allocations: 0 / 0.9537 GB, free: 6.156 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 9.518e-06/0.6313, allocations: 1.406 kB / 0.9537 GB, free: 6.156 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.0005757/0.6318, allocations: 490.7 kB / 0.9542 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.901e-05/0.6319, allocations: 10.03 kB / 0.9542 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.582e-05/0.6319, allocations: 47.12 kB / 0.9542 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001924/0.6321, allocations: 26.36 kB / 0.9542 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001762/0.6323, allocations: 220.8 kB / 0.9544 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.34e-05/0.6324, allocations: 31.83 kB / 0.9545 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.822e-05/0.6324, allocations: 19.3 kB / 0.9545 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002476/0.6326, allocations: 146.6 kB / 0.9546 GB, free: 5.211 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.178e-06/0.6327, allocations: 0.625 kB / 0.9546 GB, free: 5.211 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.58e-05/0.6327, allocations: 9.281 kB / 0.9546 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.72e-05/0.6327, allocations: 4.812 kB / 0.9546 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001869/0.6329, allocations: 85.38 kB / 0.9547 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006548/0.6336, allocations: 0.6463 MB / 0.9554 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002081/0.6338, allocations: 54.97 kB / 0.9554 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.949e-05/0.6339, allocations: 29.19 kB / 0.9554 GB, free: 4.477 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.485e-05/0.6339, allocations: 5.234 kB / 0.9554 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001571/0.634, allocations: 147.3 kB / 0.9556 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.413e-06/0.634, allocations: 0 / 0.9556 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003338/0.6344, allocations: 160.8 kB / 0.9557 GB, free: 4.219 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.052e-05/0.6344, allocations: 139.6 kB / 0.9559 GB, free: 4.055 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001348/0.6346, allocations: 191.6 kB / 0.9561 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.373e-05/0.6346, allocations: 27.05 kB / 0.9561 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.424e-05/0.6347, allocations: 137.7 kB / 0.9562 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.933e-05/0.6347, allocations: 26.5 kB / 0.9562 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.287e-05/0.6348, allocations: 39.36 kB / 0.9563 GB, free: 3.684 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.131e-05/0.6348, allocations: 325.4 kB / 0.9566 GB, free: 3.363 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.217e-05/0.6349, allocations: 36.27 kB / 0.9566 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001015/0.635, allocations: 114 kB / 0.9567 GB, free: 3.227 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002161/0.6352, allocations: 232.7 kB / 0.957 GB, free: 2.992 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.6352, allocations: 0 / 0.957 GB, free: 2.992 MB / 0.7169 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003152/0.6356, allocations: 242.8 kB / 0.9572 GB, free: 2.824 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.763e-05/0.6356, allocations: 68.12 kB / 0.9572 GB, free: 2.754 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.201e-06/0.6356, allocations: 2.656 kB / 0.9573 GB, free: 2.754 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.688e-05/0.6356, allocations: 3.031 kB / 0.9573 GB, free: 2.754 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001198/0.6358, allocations: 35.03 kB / 0.9573 GB, free: 2.742 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.606e-06/0.6358, allocations: 6.781 kB / 0.9573 GB, free: 2.738 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001313/0.6359, allocations: 19.84 kB / 0.9573 GB, free: 2.73 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.675e-05/0.6359, allocations: 16.12 kB / 0.9573 GB, free: 2.723 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 0.0001029/0.6361, allocations: 162 kB / 0.9575 GB, free: 2.562 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.247e-05/0.6361, allocations: 15.19 kB / 0.9575 GB, free: 2.555 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.721e-05/0.6361, allocations: 16.98 kB / 0.9575 GB, free: 2.543 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.6361, allocations: 1.719 kB / 0.9575 GB, free: 2.543 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.6361, allocations: 0 / 0.9575 GB, free: 2.543 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.375e-06/0.6361, allocations: 0 / 0.9575 GB, free: 2.543 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001279/0.6363, allocations: 219 kB / 0.9577 GB, free: 2.305 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.6363, allocations: 0 / 0.9577 GB, free: 2.305 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.93e-05/0.6364, allocations: 20.98 kB / 0.9577 GB, free: 2.293 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.6364, allocations: 3.938 kB / 0.9577 GB, free: 2.289 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.256e-05/0.6364, allocations: 1.781 kB / 0.9577 GB, free: 2.289 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.6364, allocations: 1.781 kB / 0.9578 GB, free: 2.289 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.6364, allocations: 0 / 0.9578 GB, free: 2.289 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003388/0.6368, allocations: 211.1 kB / 0.958 GB, free: 2.133 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.529e-05/0.6368, allocations: 91.61 kB / 0.958 GB, free: 2.027 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.891e-05/0.6368, allocations: 14.69 kB / 0.9581 GB, free: 2.016 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.198e-05/0.6369, allocations: 12.23 kB / 0.9581 GB, free: 2.012 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.768e-05/0.637, allocations: 10.73 kB / 0.9581 GB, free: 2.004 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.845e-06/0.637, allocations: 2.75 kB / 0.9581 GB, free: 2.004 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.764e-05/0.6371, allocations: 128.1 kB / 0.9582 GB, free: 1.906 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6371, allocations: 0 / 0.9582 GB, free: 1.906 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002431/0.6373, allocations: 30.12 kB / 0.9582 GB, free: 1.902 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.0004674/0.6378, allocations: 0.7668 MB / 0.959 GB, free: 1.199 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002972/0.6381, allocations: 213.2 kB / 0.9592 GB, free: 1.027 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.6381, allocations: 0.6875 kB / 0.9592 GB, free: 1.027 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001159/0.6383, allocations: 111 kB / 0.9593 GB, free: 0.9336 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002322/0.6385, allocations: 17.5 kB / 0.9593 GB, free: 0.9258 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002065/0.6406, allocations: 1.955 MB / 0.9612 GB, free: 15.23 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003147/0.6409, allocations: 0.7141 MB / 0.9619 GB, free: 14.51 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 8.681e-05/0.641, allocations: 26.47 kB / 0.9619 GB, free: 14.5 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.533e-05/0.6411, allocations: 37.59 kB / 0.962 GB, free: 14.46 MB / 0.7325 GB Notification: Performance of SimCode: time 4.2e-07/0.6411, allocations: 0 / 0.962 GB, free: 14.46 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02207/0.6632, allocations: 3.055 MB / 0.965 GB, free: 12.91 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.103/7.766, allocations: 16.02 kB / 0.965 GB, free: 12.89 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