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: 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.001541/0.001541, allocations: 103.3 kB / 16.27 MB, free: 5.969 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.001883/0.001883, allocations: 187.8 kB / 17.19 MB, free: 5.609 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.33/1.33, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.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.256/2.256, allocations: 390.3 MB / 0.6653 GB, free: 0.7109 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001291/0.001291, allocations: 64.34 kB / 0.8132 GB, free: 32.96 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2393/0.2406, allocations: 140.4 MB / 0.9503 GB, free: 8.891 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.003836/0.2445, allocations: 2.314 MB / 0.9525 GB, free: 6.562 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001297/0.2458, allocations: 0.7636 MB / 0.9533 GB, free: 5.793 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001238/0.246, allocations: 4 kB / 0.9533 GB, free: 5.789 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.00059/0.2466, allocations: 163.2 kB / 0.9534 GB, free: 5.629 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0002056/0.2468, allocations: 59.67 kB / 0.9535 GB, free: 5.57 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001797/0.247, allocations: 51.88 kB / 0.9535 GB, free: 5.52 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0002271/0.2472, allocations: 159.5 kB / 0.9537 GB, free: 5.363 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002514/0.2475, allocations: 108.8 kB / 0.9538 GB, free: 5.254 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001264/0.2476, allocations: 67.77 kB / 0.9538 GB, free: 5.188 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001509/0.2478, allocations: 71.62 kB / 0.9539 GB, free: 5.117 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 3.242e-05/0.2478, allocations: 12 kB / 0.9539 GB, free: 5.105 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001421/0.248, allocations: 55.88 kB / 0.954 GB, free: 5.051 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 6.157e-05/0.2481, allocations: 39.91 kB / 0.954 GB, free: 5.012 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 8.363e-05/0.2481, allocations: 63.67 kB / 0.9541 GB, free: 4.949 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002479/0.2484, allocations: 171.7 kB / 0.9542 GB, free: 4.781 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.2484, allocations: 0 / 0.9542 GB, free: 4.781 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.463e-06/0.2484, allocations: 0 / 0.9542 GB, free: 4.781 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 8.587e-06/0.2484, allocations: 0 / 0.9542 GB, free: 4.781 MB / 0.7325 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.0007605/0.2492, allocations: 494.5 kB / 0.9547 GB, free: 4.238 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.368e-05/0.2492, allocations: 8.031 kB / 0.9547 GB, free: 4.23 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002272/0.2495, allocations: 28.73 kB / 0.9548 GB, free: 4.203 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002332/0.2497, allocations: 221 kB / 0.955 GB, free: 3.949 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.996e-05/0.2498, allocations: 34.45 kB / 0.955 GB, free: 3.91 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.497e-05/0.2498, allocations: 16.12 kB / 0.955 GB, free: 3.895 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002832/0.2501, allocations: 151.3 kB / 0.9552 GB, free: 3.734 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.646e-06/0.2501, allocations: 0 / 0.9552 GB, free: 3.734 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.105e-05/0.2502, allocations: 4 kB / 0.9552 GB, free: 3.73 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.904e-05/0.2502, allocations: 4 kB / 0.9552 GB, free: 3.727 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002087/0.2504, allocations: 95.88 kB / 0.9553 GB, free: 3.633 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008409/0.2513, allocations: 0.6402 MB / 0.9559 GB, free: 2.926 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002254/0.2515, allocations: 54.56 kB / 0.9559 GB, free: 2.863 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.268e-05/0.2516, allocations: 24.91 kB / 0.956 GB, free: 2.836 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.422e-05/0.2516, allocations: 7.938 kB / 0.956 GB, free: 2.828 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002043/0.2518, allocations: 142.7 kB / 0.9561 GB, free: 2.664 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 1.593e-06/0.2518, allocations: 4 kB / 0.9561 GB, free: 2.66 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.0003674/0.2522, allocations: 163.4 kB / 0.9563 GB, free: 2.488 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.128e-05/0.2523, allocations: 136.5 kB / 0.9564 GB, free: 2.324 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001623/0.2524, allocations: 182.8 kB / 0.9566 GB, free: 2.137 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.992e-05/0.2525, allocations: 29.7 kB / 0.9566 GB, free: 2.102 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 9.121e-05/0.2526, allocations: 139.8 kB / 0.9567 GB, free: 1.957 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.433e-05/0.2526, allocations: 19.72 kB / 0.9567 GB, free: 1.938 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.179e-05/0.2527, allocations: 41.64 kB / 0.9568 GB, free: 1.891 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001262/0.2528, allocations: 326.8 kB / 0.9571 GB, free: 1.562 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.182e-05/0.2529, allocations: 35.98 kB / 0.9571 GB, free: 1.527 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001258/0.253, allocations: 113.3 kB / 0.9572 GB, free: 1.383 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002568/0.2533, allocations: 226.4 kB / 0.9575 GB, free: 1.109 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.195e-06/0.2533, allocations: 0 / 0.9575 GB, free: 1.109 MB / 0.7325 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003576/0.2537, allocations: 248.8 kB / 0.9577 GB, free: 0.8477 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 4.449e-05/0.2537, allocations: 59.41 kB / 0.9577 GB, free: 0.7773 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.2537, allocations: 7.984 kB / 0.9578 GB, free: 0.7695 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.757e-05/0.2538, allocations: 7.984 kB / 0.9578 GB, free: 0.7617 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001283/0.2539, allocations: 31.92 kB / 0.9578 GB, free: 0.7305 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.787e-06/0.2539, allocations: 7.984 kB / 0.9578 GB, free: 0.7227 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001332/0.2541, allocations: 19.84 kB / 0.9578 GB, free: 0.7031 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.682e-05/0.2541, allocations: 12 kB / 0.9578 GB, free: 0.6914 MB / 0.7325 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.0001364/0.2542, allocations: 179.4 kB / 0.958 GB, free: 0.5039 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.431e-05/0.2543, allocations: 15.81 kB / 0.958 GB, free: 500 kB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.226e-05/0.2543, allocations: 21.33 kB / 0.958 GB, free: 480 kB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.2543, allocations: 0 / 0.958 GB, free: 480 kB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.087e-06/0.2543, allocations: 0 / 0.958 GB, free: 480 kB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.464e-06/0.2543, allocations: 0 / 0.958 GB, free: 480 kB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001714/0.2545, allocations: 209.6 kB / 0.9582 GB, free: 220 kB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.2545, allocations: 0 / 0.9582 GB, free: 220 kB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.053e-05/0.2546, allocations: 8 kB / 0.9582 GB, free: 212 kB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.364e-06/0.2546, allocations: 3.984 kB / 0.9582 GB, free: 208 kB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.587e-05/0.2546, allocations: 19.88 kB / 0.9583 GB, free: 188 kB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.492e-06/0.2546, allocations: 0 / 0.9583 GB, free: 188 kB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.2546, allocations: 0 / 0.9583 GB, free: 188 kB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003848/0.255, allocations: 214.6 kB / 0.9585 GB, free: 15.95 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 4.777e-05/0.2551, allocations: 88.95 kB / 0.9586 GB, free: 15.84 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.194e-05/0.2551, allocations: 7.938 kB / 0.9586 GB, free: 15.83 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.474e-05/0.2552, allocations: 16.05 kB / 0.9586 GB, free: 15.82 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.803e-05/0.2553, allocations: 11.98 kB / 0.9586 GB, free: 15.8 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.444e-06/0.2553, allocations: 0 / 0.9586 GB, free: 15.8 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0001111/0.2554, allocations: 127.2 kB / 0.9587 GB, free: 15.68 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.61e-07/0.2554, allocations: 0 / 0.9587 GB, free: 15.68 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0002502/0.2557, allocations: 32 kB / 0.9587 GB, free: 15.65 MB / 0.7481 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.0001057/0.2558, allocations: 109 kB / 0.9588 GB, free: 15.54 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0003116/0.2561, allocations: 219 kB / 0.9591 GB, free: 15.3 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2561, allocations: 0 / 0.9591 GB, free: 15.3 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001258/0.2563, allocations: 103.3 kB / 0.9592 GB, free: 15.18 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002298/0.2565, allocations: 19.98 kB / 0.9592 GB, free: 15.16 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005838/0.2571, allocations: 328.3 kB / 0.9595 GB, free: 14.82 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002965/0.2574, allocations: 0.7119 MB / 0.9602 GB, free: 14.08 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.845e-05/0.2575, allocations: 19.44 kB / 0.9602 GB, free: 14.06 MB / 0.7481 GB Notification: Performance of SimCode: time 3.51e-07/0.2575, allocations: 0 / 0.9602 GB, free: 14.06 MB / 0.7481 GB Notification: Performance of Templates: time 0.003332/0.2608, allocations: 1.705 MB / 0.9619 GB, free: 12.36 MB / 0.7481 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