Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL,fileNamePrefix="Buildings_11_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.00143/0.00143, allocations: 111.9 kB / 15.61 MB, free: 128 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.001369/0.001369, allocations: 194.6 kB / 16.54 MB, free: 6.703 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.257/1.257, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.513/2.513, allocations: 469.8 MB / 0.7424 GB, free: 7.43 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001723/0.001723, allocations: 71.88 kB / 0.9086 GB, free: 34.25 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2385/0.2402, allocations: 159.2 MB / 1.064 GB, free: 14.19 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.003565/0.2438, allocations: 2.317 MB / 1.066 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001202/0.245, allocations: 0.7753 MB / 1.067 GB, free: 11.07 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.027e-05/0.2451, allocations: 4 kB / 1.067 GB, free: 11.07 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0004921/0.2457, allocations: 139.4 kB / 1.067 GB, free: 10.93 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001685/0.2458, allocations: 71.58 kB / 1.067 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001502/0.246, allocations: 51.89 kB / 1.067 GB, free: 10.81 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002059/0.2462, allocations: 155.5 kB / 1.067 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000222/0.2464, allocations: 97.34 kB / 1.068 GB, free: 10.57 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001112/0.2466, allocations: 75.7 kB / 1.068 GB, free: 10.49 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000131/0.2467, allocations: 63.73 kB / 1.068 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.281e-05/0.2467, allocations: 12 kB / 1.068 GB, free: 10.42 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001219/0.2469, allocations: 55.89 kB / 1.068 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 5.705e-05/0.2469, allocations: 47.72 kB / 1.068 GB, free: 10.32 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 8.175e-05/0.247, allocations: 67.66 kB / 1.068 GB, free: 10.25 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002215/0.2472, allocations: 167.5 kB / 1.068 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.105e-06/0.2473, allocations: 4 kB / 1.068 GB, free: 10.08 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.072e-06/0.2473, allocations: 0 / 1.068 GB, free: 10.08 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.369e-06/0.2473, allocations: 0 / 1.068 GB, free: 10.08 MB / 0.8262 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.0006499/0.2479, allocations: 498.4 kB / 1.069 GB, free: 9.535 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.381e-05/0.248, allocations: 8.031 kB / 1.069 GB, free: 9.527 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.365e-05/0.248, allocations: 42.73 kB / 1.069 GB, free: 9.477 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000185/0.2482, allocations: 24.84 kB / 1.069 GB, free: 9.453 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002219/0.2484, allocations: 212 kB / 1.069 GB, free: 9.207 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.109e-05/0.2485, allocations: 42.44 kB / 1.069 GB, free: 9.16 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.717e-05/0.2485, allocations: 11.94 kB / 1.069 GB, free: 9.148 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002642/0.2488, allocations: 154.8 kB / 1.069 GB, free: 8.984 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.317e-06/0.2488, allocations: 0 / 1.069 GB, free: 8.984 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.939e-05/0.2488, allocations: 7.922 kB / 1.069 GB, free: 8.977 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.811e-05/0.2489, allocations: 4 kB / 1.069 GB, free: 8.973 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001905/0.2491, allocations: 91.94 kB / 1.069 GB, free: 8.883 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008032/0.2499, allocations: 0.6324 MB / 1.07 GB, free: 8.188 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002072/0.2501, allocations: 58.5 kB / 1.07 GB, free: 8.121 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.215e-05/0.2502, allocations: 32.91 kB / 1.07 GB, free: 8.086 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.547e-05/0.2502, allocations: 4 kB / 1.07 GB, free: 8.082 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001874/0.2504, allocations: 146.9 kB / 1.07 GB, free: 7.914 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.272e-06/0.2504, allocations: 0 / 1.07 GB, free: 7.914 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0003432/0.2507, allocations: 167 kB / 1.07 GB, free: 7.738 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.05e-05/0.2508, allocations: 132.5 kB / 1.07 GB, free: 7.578 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001601/0.251, allocations: 186.9 kB / 1.07 GB, free: 7.387 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.495e-05/0.251, allocations: 29.7 kB / 1.07 GB, free: 7.352 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.965e-05/0.2511, allocations: 143.7 kB / 1.071 GB, free: 7.203 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.867e-05/0.2511, allocations: 11.81 kB / 1.071 GB, free: 7.191 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.729e-05/0.2512, allocations: 37.7 kB / 1.071 GB, free: 7.148 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001324/0.2513, allocations: 326.8 kB / 1.071 GB, free: 6.82 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.909e-05/0.2514, allocations: 39.88 kB / 1.071 GB, free: 6.781 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000135/0.2516, allocations: 117.5 kB / 1.071 GB, free: 6.637 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002542/0.2518, allocations: 230.3 kB / 1.071 GB, free: 6.359 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.2519, allocations: 4 kB / 1.071 GB, free: 6.355 MB / 0.8262 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003395/0.2522, allocations: 240.7 kB / 1.072 GB, free: 6.102 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.863e-05/0.2523, allocations: 67.33 kB / 1.072 GB, free: 6.023 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.246e-06/0.2523, allocations: 7.938 kB / 1.072 GB, free: 6.016 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.275e-05/0.2523, allocations: 4 kB / 1.072 GB, free: 6.012 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001058/0.2524, allocations: 28.23 kB / 1.072 GB, free: 5.984 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.223e-06/0.2524, allocations: 8 kB / 1.072 GB, free: 5.977 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001283/0.2525, allocations: 27.83 kB / 1.072 GB, free: 5.949 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.331e-05/0.2526, allocations: 8 kB / 1.072 GB, free: 5.941 MB / 0.8262 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.0001261/0.2527, allocations: 171.4 kB / 1.072 GB, free: 5.758 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.493e-05/0.2527, allocations: 19.75 kB / 1.072 GB, free: 5.738 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.281e-05/0.2528, allocations: 9.406 kB / 1.072 GB, free: 5.73 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.2528, allocations: 4 kB / 1.072 GB, free: 5.727 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.2528, allocations: 8 kB / 1.072 GB, free: 5.719 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.244e-06/0.2528, allocations: 0 / 1.072 GB, free: 5.719 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001797/0.253, allocations: 209.6 kB / 1.072 GB, free: 5.465 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.253, allocations: 0 / 1.072 GB, free: 5.465 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.263e-05/0.253, allocations: 11.98 kB / 1.072 GB, free: 5.453 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.947e-06/0.2531, allocations: 3.938 kB / 1.072 GB, free: 5.449 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.214e-05/0.2531, allocations: 4 kB / 1.072 GB, free: 5.445 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.2531, allocations: 0 / 1.072 GB, free: 5.445 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.2531, allocations: 0 / 1.072 GB, free: 5.445 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003504/0.2534, allocations: 214.6 kB / 1.072 GB, free: 5.211 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.202e-05/0.2535, allocations: 85.05 kB / 1.072 GB, free: 5.109 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.934e-05/0.2535, allocations: 15.88 kB / 1.072 GB, free: 5.094 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.663e-05/0.2536, allocations: 11.98 kB / 1.072 GB, free: 5.082 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.963e-05/0.2537, allocations: 11.98 kB / 1.072 GB, free: 5.07 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.642e-06/0.2537, allocations: 0 / 1.072 GB, free: 5.07 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001005/0.2538, allocations: 128.3 kB / 1.073 GB, free: 4.945 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2538, allocations: 4.062 kB / 1.073 GB, free: 4.941 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002217/0.254, allocations: 31.91 kB / 1.073 GB, free: 4.91 MB / 0.8262 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.0006046/0.2546, allocations: 0.7624 MB / 1.073 GB, free: 4.113 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002864/0.2549, allocations: 219 kB / 1.074 GB, free: 3.875 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.443e-06/0.2549, allocations: 0 / 1.074 GB, free: 3.875 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001229/0.2551, allocations: 111.3 kB / 1.074 GB, free: 3.754 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001899/0.2553, allocations: 15.94 kB / 1.074 GB, free: 3.738 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002007/0.2573, allocations: 1.96 MB / 1.076 GB, free: 1.621 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002971/0.2576, allocations: 0.7158 MB / 1.076 GB, free: 0.8789 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 6.907e-05/0.2577, allocations: 20.62 kB / 1.076 GB, free: 0.8555 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.681e-05/0.2577, allocations: 39.42 kB / 1.076 GB, free: 0.8164 MB / 0.8262 GB Notification: Performance of SimCode: time 2.2e-07/0.2577, allocations: 0 / 1.076 GB, free: 0.8164 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.117/1.374, allocations: 3.059 MB / 1.079 GB, free: 13.85 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.49/16.87, allocations: 17.52 kB / 1.079 GB, free: 13.84 MB / 0.8419 GB (rm -f Buildings_11_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; mkfifo Buildings_11_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; head -c 1048576 < Buildings_11_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe >> ../files/Buildings_11_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL_res.mat --tempDir=temp_Buildings_11_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL_fmu --startTime=0 --stopTime=10 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.fmu > Buildings_11_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches