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: translateModel(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|voltageControl.V_nominal|sou.V_in|Vtr_high.y|voltageControl.y",fileNamePrefix="Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL") translateModel(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|voltageControl.V_nominal|sou.V_in|Vtr_high.y|voltageControl.y",fileNamePrefix="Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01095/0.01095, allocations: 100.8 kB / 15.87 MB, free: 5.867 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.001926/0.001926, allocations: 195.8 kB / 16.79 MB, free: 5.809 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.426/1.426, allocations: 222.9 MB / 240.5 MB, free: 4.594 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.476/2.476, allocations: 390.2 MB / 0.6649 GB, free: 0.6094 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00169/0.00169, allocations: 59.89 kB / 0.8125 GB, free: 14.89 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7053/0.707, allocations: 140.3 MB / 0.9496 GB, free: 9.207 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.003353/0.7104, allocations: 2.373 MB / 0.9519 GB, free: 7.367 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001007/0.7114, allocations: 0.7619 MB / 0.9526 GB, free: 6.777 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.704e-05/0.7115, allocations: 2.656 kB / 0.9526 GB, free: 6.777 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.000498/0.712, allocations: 147.8 kB / 0.9528 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001373/0.7122, allocations: 55.67 kB / 0.9528 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001285/0.7123, allocations: 46.89 kB / 0.9529 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001989/0.7125, allocations: 194.4 kB / 0.9531 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002007/0.7127, allocations: 87 kB / 0.9531 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001015/0.7129, allocations: 61.39 kB / 0.9532 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000127/0.713, allocations: 64.06 kB / 0.9533 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.235e-05/0.713, allocations: 7.75 kB / 0.9533 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001288/0.7131, allocations: 58.5 kB / 0.9533 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.171e-05/0.7132, allocations: 43.41 kB / 0.9534 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.573e-05/0.7133, allocations: 62.69 kB / 0.9534 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001572/0.7135, allocations: 129.2 kB / 0.9535 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.7135, allocations: 3.984 kB / 0.9535 GB, free: 6.156 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.653e-06/0.7135, allocations: 4.844 kB / 0.9536 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.22e-06/0.7135, allocations: 0 / 0.9536 GB, free: 6.152 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.0005843/0.7141, allocations: 492.5 kB / 0.954 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.385e-05/0.7141, allocations: 9.594 kB / 0.954 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002041/0.7143, allocations: 26.14 kB / 0.9541 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001854/0.7145, allocations: 222.4 kB / 0.9543 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.445e-05/0.7146, allocations: 40.17 kB / 0.9543 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.133e-05/0.7146, allocations: 11.81 kB / 0.9543 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000251/0.7149, allocations: 146.9 kB / 0.9545 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.887e-06/0.7149, allocations: 0 / 0.9545 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.61e-05/0.7149, allocations: 6.469 kB / 0.9545 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.873e-05/0.7149, allocations: 3.844 kB / 0.9545 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001885/0.7151, allocations: 94.06 kB / 0.9546 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006842/0.7158, allocations: 0.6385 MB / 0.9552 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002103/0.716, allocations: 62.06 kB / 0.9552 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.993e-05/0.7161, allocations: 28.88 kB / 0.9553 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.084e-05/0.7161, allocations: 1.125 kB / 0.9553 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001644/0.7163, allocations: 139.7 kB / 0.9554 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.263e-06/0.7163, allocations: 4 kB / 0.9554 GB, free: 4.379 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003501/0.7167, allocations: 156.9 kB / 0.9556 GB, free: 4.273 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.361e-05/0.7167, allocations: 139.3 kB / 0.9557 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001353/0.7168, allocations: 188.2 kB / 0.9559 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.341e-05/0.7169, allocations: 31.05 kB / 0.9559 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.738e-05/0.7169, allocations: 137.5 kB / 0.956 GB, free: 3.793 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.949e-05/0.717, allocations: 22.66 kB / 0.956 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.167e-05/0.717, allocations: 39.45 kB / 0.9561 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.449e-05/0.7171, allocations: 327.2 kB / 0.9564 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.007e-05/0.7172, allocations: 39.66 kB / 0.9564 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001061/0.7173, allocations: 106.3 kB / 0.9565 GB, free: 3.289 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001921/0.7175, allocations: 232.3 kB / 0.9568 GB, free: 3.055 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.997e-06/0.7175, allocations: 1.688 kB / 0.9568 GB, free: 3.055 MB / 0.7169 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003194/0.7178, allocations: 245.5 kB / 0.957 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.613e-05/0.7179, allocations: 71.7 kB / 0.9571 GB, free: 2.809 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.585e-06/0.7179, allocations: 6.312 kB / 0.9571 GB, free: 2.805 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.602e-05/0.7179, allocations: 4.094 kB / 0.9571 GB, free: 2.805 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001112/0.718, allocations: 27.83 kB / 0.9571 GB, free: 2.801 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.826e-06/0.718, allocations: 5.812 kB / 0.9571 GB, free: 2.797 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001267/0.7182, allocations: 24.55 kB / 0.9571 GB, free: 2.785 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.307e-05/0.7182, allocations: 11.09 kB / 0.9571 GB, free: 2.781 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 8.994e-05/0.7183, allocations: 162.6 kB / 0.9573 GB, free: 2.621 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.011e-05/0.7183, allocations: 11.38 kB / 0.9573 GB, free: 2.617 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.687e-05/0.7183, allocations: 16.31 kB / 0.9573 GB, free: 2.605 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.7183, allocations: 3.812 kB / 0.9573 GB, free: 2.605 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.7183, allocations: 0 / 0.9573 GB, free: 2.605 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.7183, allocations: 3.938 kB / 0.9573 GB, free: 2.602 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001258/0.7185, allocations: 215.8 kB / 0.9575 GB, free: 2.363 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.7185, allocations: 1.469 kB / 0.9575 GB, free: 2.363 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.899e-05/0.7186, allocations: 12.27 kB / 0.9575 GB, free: 2.359 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.7186, allocations: 0 / 0.9575 GB, free: 2.359 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.514e-05/0.7186, allocations: 10.72 kB / 0.9576 GB, free: 2.352 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.7186, allocations: 0 / 0.9576 GB, free: 2.352 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.7186, allocations: 0 / 0.9576 GB, free: 2.352 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003368/0.719, allocations: 216.8 kB / 0.9578 GB, free: 2.191 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.1e-05/0.719, allocations: 92.05 kB / 0.9579 GB, free: 2.086 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.042e-05/0.719, allocations: 10.61 kB / 0.9579 GB, free: 2.078 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.279e-05/0.7191, allocations: 10.5 kB / 0.9579 GB, free: 2.074 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.591e-05/0.7192, allocations: 11.98 kB / 0.9579 GB, free: 2.066 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.698e-06/0.7192, allocations: 2.438 kB / 0.9579 GB, free: 2.066 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 9.161e-05/0.7193, allocations: 131.6 kB / 0.958 GB, free: 1.965 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.31e-07/0.7193, allocations: 3.938 kB / 0.958 GB, free: 1.961 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002395/0.7196, allocations: 30.53 kB / 0.958 GB, free: 1.957 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 9.047e-05/0.7197, allocations: 107.2 kB / 0.9581 GB, free: 1.863 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002776/0.7199, allocations: 216.5 kB / 0.9584 GB, free: 1.688 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.7199, allocations: 0 / 0.9584 GB, free: 1.688 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001096/0.7201, allocations: 106.6 kB / 0.9585 GB, free: 1.598 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002217/0.7203, allocations: 13.31 kB / 0.9585 GB, free: 1.594 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005511/0.7209, allocations: 368.5 kB / 0.9588 GB, free: 1.301 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001532/0.721, allocations: 0.7227 MB / 0.9595 GB, free: 0.5781 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.851e-05/0.7211, allocations: 12.53 kB / 0.9595 GB, free: 0.5703 MB / 0.7169 GB Notification: Performance of SimCode: time 5.71e-07/0.7211, allocations: 3.938 kB / 0.9595 GB, free: 0.5664 MB / 0.7169 GB Notification: Performance of Templates: time 0.003143/0.7242, allocations: 1.686 MB / 0.9612 GB, free: 15.71 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.makefile (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 & ./Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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