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.001435/0.001436, allocations: 116.1 kB / 16.37 MB, free: 6.012 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.001699/0.001699, allocations: 191.6 kB / 17.31 MB, free: 5.613 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.402/1.402, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.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.245/2.245, allocations: 390.3 MB / 0.6655 GB, free: 0.6133 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001238, allocations: 59.44 kB / 0.814 GB, free: 32.63 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2757/0.2769, allocations: 140.4 MB / 0.9511 GB, free: 8.109 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.003629/0.2806, allocations: 2.319 MB / 0.9534 GB, free: 5.781 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.00122/0.2818, allocations: 0.7715 MB / 0.9541 GB, free: 5.004 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.611e-05/0.2819, allocations: 4 kB / 0.9541 GB, free: 5 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0005647/0.2825, allocations: 151.3 kB / 0.9543 GB, free: 4.852 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.000183/0.2827, allocations: 63.61 kB / 0.9543 GB, free: 4.789 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001474/0.2829, allocations: 47.88 kB / 0.9544 GB, free: 4.742 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0002574/0.2831, allocations: 167.5 kB / 0.9545 GB, free: 4.578 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002384/0.2834, allocations: 101 kB / 0.9546 GB, free: 4.477 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001061/0.2835, allocations: 63.7 kB / 0.9547 GB, free: 4.414 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001541/0.2837, allocations: 71.75 kB / 0.9548 GB, free: 4.344 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.488e-05/0.2837, allocations: 12 kB / 0.9548 GB, free: 4.332 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001088/0.2838, allocations: 59.88 kB / 0.9548 GB, free: 4.273 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 5.779e-05/0.2839, allocations: 39.84 kB / 0.9549 GB, free: 4.234 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 7.97e-05/0.284, allocations: 63.67 kB / 0.9549 GB, free: 4.172 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.000222/0.2842, allocations: 167.4 kB / 0.9551 GB, free: 4.008 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.2842, allocations: 0 / 0.9551 GB, free: 4.008 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.423e-06/0.2842, allocations: 4 kB / 0.9551 GB, free: 4.004 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.079e-06/0.2842, allocations: 0 / 0.9551 GB, free: 4.004 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.0006987/0.2849, allocations: 494.5 kB / 0.9556 GB, free: 3.461 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.084e-05/0.285, allocations: 8.031 kB / 0.9556 GB, free: 3.453 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002037/0.2852, allocations: 32.73 kB / 0.9556 GB, free: 3.422 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002458/0.2854, allocations: 217 kB / 0.9558 GB, free: 3.172 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.213e-05/0.2855, allocations: 38.45 kB / 0.9559 GB, free: 3.129 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.823e-05/0.2855, allocations: 12.12 kB / 0.9559 GB, free: 3.117 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002819/0.2858, allocations: 154.9 kB / 0.956 GB, free: 2.953 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.985e-06/0.2858, allocations: 4 kB / 0.956 GB, free: 2.949 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.731e-05/0.2859, allocations: 7.938 kB / 0.956 GB, free: 2.941 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.809e-05/0.2859, allocations: 4 kB / 0.956 GB, free: 2.938 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000195/0.2861, allocations: 83.95 kB / 0.9561 GB, free: 2.855 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008666/0.287, allocations: 0.6402 MB / 0.9567 GB, free: 2.148 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002427/0.2872, allocations: 62.48 kB / 0.9568 GB, free: 2.078 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.238e-05/0.2873, allocations: 28.91 kB / 0.9568 GB, free: 2.047 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.523e-05/0.2873, allocations: 0 / 0.9568 GB, free: 2.047 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000198/0.2875, allocations: 146.8 kB / 0.957 GB, free: 1.879 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 1.553e-06/0.2875, allocations: 0 / 0.957 GB, free: 1.879 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.0003778/0.2879, allocations: 163.3 kB / 0.9571 GB, free: 1.707 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.499e-05/0.288, allocations: 136.5 kB / 0.9572 GB, free: 1.543 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001715/0.2882, allocations: 182.8 kB / 0.9574 GB, free: 1.355 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.057e-05/0.2882, allocations: 29.7 kB / 0.9575 GB, free: 1.32 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 8.815e-05/0.2883, allocations: 135.8 kB / 0.9576 GB, free: 1.18 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.467e-05/0.2884, allocations: 23.7 kB / 0.9576 GB, free: 1.156 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.161e-05/0.2884, allocations: 41.7 kB / 0.9576 GB, free: 1.109 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001194/0.2886, allocations: 322.8 kB / 0.958 GB, free: 0.7852 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.521e-05/0.2887, allocations: 35.98 kB / 0.958 GB, free: 0.75 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001393/0.2888, allocations: 111.3 kB / 0.9581 GB, free: 0.6094 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002528/0.2891, allocations: 234.3 kB / 0.9583 GB, free: 336 kB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.009e-06/0.2891, allocations: 4 kB / 0.9583 GB, free: 332 kB / 0.7325 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003623/0.2895, allocations: 240.7 kB / 0.9585 GB, free: 72 kB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 7.421e-05/0.2895, allocations: 65.17 kB / 0.9586 GB, free: 15.99 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.237e-06/0.2896, allocations: 7.938 kB / 0.9586 GB, free: 15.98 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.919e-05/0.2896, allocations: 4 kB / 0.9586 GB, free: 15.98 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001341/0.2897, allocations: 31.81 kB / 0.9587 GB, free: 15.95 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.087e-05/0.2897, allocations: 7.984 kB / 0.9587 GB, free: 15.95 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001396/0.2899, allocations: 27.78 kB / 0.9587 GB, free: 15.92 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.743e-05/0.2899, allocations: 8.219 kB / 0.9587 GB, free: 15.91 MB / 0.7481 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.0001454/0.2901, allocations: 177.4 kB / 0.9589 GB, free: 15.72 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.133e-05/0.2901, allocations: 11.81 kB / 0.9589 GB, free: 15.71 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.611e-05/0.2901, allocations: 21.33 kB / 0.9589 GB, free: 15.69 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.561e-06/0.2901, allocations: 4 kB / 0.9589 GB, free: 15.69 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.664e-06/0.2902, allocations: 4 kB / 0.9589 GB, free: 15.68 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.2902, allocations: 0 / 0.9589 GB, free: 15.68 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001878/0.2904, allocations: 213.6 kB / 0.9591 GB, free: 15.43 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.2904, allocations: 0 / 0.9591 GB, free: 15.43 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.396e-05/0.2905, allocations: 12 kB / 0.9591 GB, free: 15.41 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.2905, allocations: 0 / 0.9591 GB, free: 15.41 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.952e-05/0.2905, allocations: 11.92 kB / 0.9591 GB, free: 15.4 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/0.2905, allocations: 0 / 0.9591 GB, free: 15.4 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.2905, allocations: 0 / 0.9591 GB, free: 15.4 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003728/0.2909, allocations: 210.6 kB / 0.9593 GB, free: 15.17 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 4.808e-05/0.2909, allocations: 88.95 kB / 0.9594 GB, free: 15.07 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.891e-05/0.291, allocations: 7.938 kB / 0.9594 GB, free: 15.06 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001097/0.2911, allocations: 16.05 kB / 0.9594 GB, free: 15.04 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.203e-05/0.2912, allocations: 7.984 kB / 0.9594 GB, free: 15.04 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.327e-06/0.2912, allocations: 4 kB / 0.9594 GB, free: 15.03 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0001038/0.2913, allocations: 127.2 kB / 0.9596 GB, free: 14.91 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2913, allocations: 0 / 0.9596 GB, free: 14.91 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0002467/0.2915, allocations: 32 kB / 0.9596 GB, free: 14.88 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.0001208/0.2917, allocations: 105 kB / 0.9597 GB, free: 14.77 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0003132/0.292, allocations: 222.9 kB / 0.9599 GB, free: 14.52 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.292, allocations: 0 / 0.9599 GB, free: 14.52 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001184/0.2921, allocations: 103.4 kB / 0.96 GB, free: 14.41 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002234/0.2924, allocations: 19.98 kB / 0.96 GB, free: 14.39 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000527/0.2929, allocations: 302.7 kB / 0.9603 GB, free: 14.07 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003112/0.2932, allocations: 0.708 MB / 0.961 GB, free: 13.34 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 6.756e-05/0.2933, allocations: 20.64 kB / 0.961 GB, free: 13.32 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.663e-05/0.2933, allocations: 19.42 kB / 0.961 GB, free: 13.3 MB / 0.7481 GB Notification: Performance of SimCode: time 1.793e-06/0.2933, allocations: 0 / 0.961 GB, free: 13.3 MB / 0.7481 GB Notification: Performance of Templates: time 0.004006/0.2973, allocations: 1.402 MB / 0.9624 GB, free: 11.91 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 -s gbode -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