Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|RL.i.1.|RL.i.2.|RL.S.1.|RL.S.2.|generator.S.1.|generator.S.2.|grid.sou.S.1.|grid.sou.S.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource") translateModel(Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|RL.i.1.|RL.i.2.|RL.S.1.|RL.S.2.|generator.S.1.|generator.S.2.|grid.sou.S.1.|grid.sou.S.2.",fileNamePrefix="Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.18/2.18, allocations: 387.1 MB / 399.7 MB, free: 9.484 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001186/0.001186, allocations: 172.9 kB / 492.3 MB, free: 0.625 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.548/1.548, allocations: 221.3 MB / 0.7871 GB, free: 12.89 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009048/0.0009051, allocations: 86.77 kB / 0.9267 GB, free: 13.98 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 5.002e-05/5.003e-05, allocations: 4 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2972/0.2972, allocations: 142.3 MB / 1.212 GB, free: 38.52 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9288/1.226, allocations: 172.9 MB / 1.381 GB, free: 18.95 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002525/1.226, allocations: 97.23 kB / 1.381 GB, free: 18.95 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.04148/1.268, allocations: 19.27 MB / 1.4 GB, free: 25.68 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.202e-06/1.268, allocations: 0 / 1.4 GB, free: 25.68 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.087e-05/1.268, allocations: 12 kB / 1.4 GB, free: 25.66 MB / 0.8386 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.0009216/1.269, allocations: 0.6067 MB / 1.401 GB, free: 25.03 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.617e-05/1.269, allocations: 12.03 kB / 1.401 GB, free: 25.02 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007474/1.27, allocations: 103.5 kB / 1.401 GB, free: 24.92 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003012/1.27, allocations: 282 kB / 1.401 GB, free: 24.63 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.465e-05/1.27, allocations: 15.25 kB / 1.401 GB, free: 24.62 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.31e-05/1.27, allocations: 23.27 kB / 1.401 GB, free: 24.6 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004848/1.271, allocations: 371 kB / 1.402 GB, free: 24.3 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.279e-05/1.271, allocations: 0 / 1.402 GB, free: 24.3 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.13e-05/1.271, allocations: 10.58 kB / 1.402 GB, free: 24.3 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.424e-05/1.271, allocations: 23.67 kB / 1.402 GB, free: 24.28 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004174/1.271, allocations: 314.1 kB / 1.402 GB, free: 24.07 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001589/1.273, allocations: 1.65 MB / 1.403 GB, free: 22.51 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006775/1.273, allocations: 402.5 kB / 1.404 GB, free: 22.2 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001943/1.274, allocations: 154.3 kB / 1.404 GB, free: 22.09 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001463/1.274, allocations: 100.5 kB / 1.404 GB, free: 21.98 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003216/1.274, allocations: 227.5 kB / 1.404 GB, free: 21.79 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=27): time 1.453e-06/1.274, allocations: 0 / 1.404 GB, free: 21.79 MB / 0.8386 GB Notification: Performance of matching and sorting (n=28): time 0.0007801/1.275, allocations: 432.8 kB / 1.405 GB, free: 21.45 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.2e-05/1.275, allocations: 85.2 kB / 1.405 GB, free: 21.34 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000156/1.275, allocations: 202.8 kB / 1.405 GB, free: 21.17 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.737e-05/1.275, allocations: 33.33 kB / 1.405 GB, free: 21.13 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.035e-05/1.275, allocations: 161.4 kB / 1.405 GB, free: 21 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 5.657e-05/1.275, allocations: 99.84 kB / 1.405 GB, free: 20.91 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.899e-05/1.275, allocations: 10.12 kB / 1.405 GB, free: 20.91 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.792e-05/1.275, allocations: 337.1 kB / 1.406 GB, free: 20.58 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001817/1.276, allocations: 127 kB / 1.406 GB, free: 20.5 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002038/1.276, allocations: 211.1 kB / 1.406 GB, free: 20.32 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002242/1.276, allocations: 190.4 kB / 1.406 GB, free: 20.18 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/1.276, allocations: 3.938 kB / 1.406 GB, free: 20.18 MB / 0.8386 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006198/1.277, allocations: 478.5 kB / 1.407 GB, free: 19.8 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002863/1.277, allocations: 0.9005 MB / 1.407 GB, free: 18.84 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.194e-06/1.277, allocations: 4 kB / 1.407 GB, free: 18.84 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002037/1.277, allocations: 39.95 kB / 1.407 GB, free: 18.8 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003672/1.278, allocations: 91.73 kB / 1.408 GB, free: 18.72 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001107/1.279, allocations: 1.491 MB / 1.409 GB, free: 17.18 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003073/1.279, allocations: 61.78 kB / 1.409 GB, free: 17.12 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.913e-05/1.279, allocations: 10 kB / 1.409 GB, free: 17.12 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 7.104e-06/1.279, allocations: 5.25 kB / 1.409 GB, free: 17.11 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000565/1.28, allocations: 412.3 kB / 1.41 GB, free: 16.81 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/1.28, allocations: 4.281 kB / 1.41 GB, free: 16.8 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001071/1.28, allocations: 44.12 kB / 1.41 GB, free: 16.76 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003284/1.28, allocations: 83.31 kB / 1.41 GB, free: 16.68 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009296/1.281, allocations: 1.482 MB / 1.411 GB, free: 15.16 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002753/1.281, allocations: 47.55 kB / 1.411 GB, free: 15.12 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.54e-05/1.281, allocations: 14.75 kB / 1.411 GB, free: 15.11 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.load.T_start,load.T_start,$PRE.load.count,load.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001144/1.282, allocations: 129.4 kB / 1.411 GB, free: 14.98 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.007e-05/1.282, allocations: 27.72 kB / 1.411 GB, free: 14.95 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006243/1.282, allocations: 396.9 kB / 1.412 GB, free: 14.67 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/1.282, allocations: 4 kB / 1.412 GB, free: 14.66 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/1.282, allocations: 4 kB / 1.412 GB, free: 14.66 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/1.282, allocations: 3.984 kB / 1.412 GB, free: 14.66 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005305/1.283, allocations: 0.5609 MB / 1.412 GB, free: 14.13 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/1.283, allocations: 4 kB / 1.412 GB, free: 14.12 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000355/1.283, allocations: 87.58 kB / 1.412 GB, free: 14.04 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.734e-05/1.283, allocations: 36.39 kB / 1.412 GB, free: 14.01 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.495e-05/1.283, allocations: 7.438 kB / 1.412 GB, free: 14 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009422/1.284, allocations: 1.4 MB / 1.414 GB, free: 12.55 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/1.284, allocations: 7.984 kB / 1.414 GB, free: 12.54 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006681/1.285, allocations: 0.5077 MB / 1.414 GB, free: 12.08 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001608/1.285, allocations: 138.5 kB / 1.414 GB, free: 11.94 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.135e-05/1.285, allocations: 11.38 kB / 1.414 GB, free: 11.93 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003112/1.285, allocations: 47.88 kB / 1.414 GB, free: 11.89 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001073/1.286, allocations: 30.83 kB / 1.414 GB, free: 11.86 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.459e-05/1.286, allocations: 8 kB / 1.414 GB, free: 11.86 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001671/1.286, allocations: 174.1 kB / 1.415 GB, free: 11.71 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.61e-07/1.286, allocations: 0 / 1.415 GB, free: 11.71 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0006139/1.286, allocations: 141.7 kB / 1.415 GB, free: 11.59 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,load.T_start,load.count) * Number of discrete states: 1 (load.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002235/1.287, allocations: 139.4 kB / 1.415 GB, free: 11.45 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.00122/1.288, allocations: 0.8708 MB / 1.416 GB, free: 10.7 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/1.288, allocations: 1.125 kB / 1.416 GB, free: 10.7 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0004013/1.288, allocations: 288.6 kB / 1.416 GB, free: 10.45 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003126/1.289, allocations: 39.22 kB / 1.416 GB, free: 10.43 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000945/1.29, allocations: 471.5 kB / 1.416 GB, free: 10 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004175/1.29, allocations: 0.7914 MB / 1.417 GB, free: 9.195 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0003376/1.29, allocations: 106.1 kB / 1.417 GB, free: 9.09 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001008/1.29, allocations: 31.36 kB / 1.417 GB, free: 9.062 MB / 0.8386 GB Notification: Performance of SimCode: time 4.11e-07/1.29, allocations: 0 / 1.417 GB, free: 9.062 MB / 0.8386 GB Notification: Performance of Templates: time 0.00814/1.299, allocations: 4.306 MB / 1.422 GB, free: 4.793 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.makefile (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.sim & ./Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesBalanced_Sources_Examples_VariablePowerSource.csv","../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Sources.Examples.VariablePowerSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches