Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.OnePhase.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.OnePhase.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.OnePhase.Sources.Examples.VariablePowerSource") translateModel(Buildings.Electrical.AC.OnePhase.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.OnePhase.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.495/2.495, allocations: 390.3 MB / 405.3 MB, free: 13.49 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.001133/0.001133, allocations: 177.1 kB / 498.1 MB, free: 5.746 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.815/1.815, allocations: 223.2 MB / 0.7948 GB, free: 17.81 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.0009435/0.0009436, allocations: 98.72 kB / 0.9346 GB, free: 6.086 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004603/0.0004603, allocations: 13.78 kB / 1.084 GB, free: 221.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3621/0.3626, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2164/0.5791, allocations: 171.5 MB / 1.39 GB, free: 6.395 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003436/0.5795, allocations: 95.94 kB / 1.39 GB, free: 6.301 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.0463/0.6258, allocations: 18.73 MB / 1.409 GB, free: 3.383 MB / 0.9011 GB Notification: Performance of FrontEnd: time 2.084e-06/0.6259, allocations: 0 / 1.409 GB, free: 3.383 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 2.182e-05/0.6259, allocations: 4 kB / 1.409 GB, free: 3.379 MB / 0.9011 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.001237/0.6271, allocations: 0.645 MB / 1.409 GB, free: 2.68 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 4.934e-05/0.6272, allocations: 8.031 kB / 1.409 GB, free: 2.672 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008101/0.628, allocations: 99.48 kB / 1.41 GB, free: 2.574 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004507/0.6285, allocations: 282.4 kB / 1.41 GB, free: 2.258 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.797e-05/0.6285, allocations: 16.44 kB / 1.41 GB, free: 2.242 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.501e-05/0.6286, allocations: 20 kB / 1.41 GB, free: 2.223 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007993/0.6294, allocations: 418.6 kB / 1.41 GB, free: 1.789 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.875e-05/0.6294, allocations: 7.938 kB / 1.41 GB, free: 1.781 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.397e-05/0.6295, allocations: 4 kB / 1.41 GB, free: 1.777 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.403e-05/0.6295, allocations: 28.36 kB / 1.41 GB, free: 1.746 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008403/0.6303, allocations: 412.8 kB / 1.411 GB, free: 1.344 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00215/0.6325, allocations: 1.658 MB / 1.412 GB, free: 15.56 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001123/0.6336, allocations: 481.2 kB / 1.413 GB, free: 15.07 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001746/0.6338, allocations: 97.05 kB / 1.413 GB, free: 14.95 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005517/0.6344, allocations: 277.3 kB / 1.413 GB, free: 14.67 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=27): time 2.895e-06/0.6344, allocations: 0 / 1.413 GB, free: 14.67 MB / 0.9167 GB Notification: Performance of matching and sorting (n=28): time 0.001979/0.6364, allocations: 0.7759 MB / 1.414 GB, free: 13.86 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.901e-05/0.6365, allocations: 85.09 kB / 1.414 GB, free: 13.76 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000242/0.6368, allocations: 196.1 kB / 1.414 GB, free: 13.56 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 4.941e-05/0.6368, allocations: 33.7 kB / 1.414 GB, free: 13.52 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001446/0.637, allocations: 176.3 kB / 1.414 GB, free: 13.35 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 9.847e-05/0.6371, allocations: 90.66 kB / 1.414 GB, free: 13.26 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.494e-05/0.6371, allocations: 8 kB / 1.414 GB, free: 13.25 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001833/0.6373, allocations: 338.8 kB / 1.415 GB, free: 12.91 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004224/0.6377, allocations: 180.2 kB / 1.415 GB, free: 12.73 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004727/0.6382, allocations: 258 kB / 1.415 GB, free: 12.45 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000484/0.6387, allocations: 234.8 kB / 1.415 GB, free: 12.22 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.6387, allocations: 4 kB / 1.415 GB, free: 12.21 MB / 0.9167 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001176/0.6399, allocations: 0.5559 MB / 1.416 GB, free: 11.64 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005213/0.6404, allocations: 0.9021 MB / 1.417 GB, free: 10.67 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/0.6404, allocations: 0 / 1.417 GB, free: 10.67 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002793/0.6407, allocations: 40.83 kB / 1.417 GB, free: 10.62 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004284/0.6412, allocations: 91.86 kB / 1.417 GB, free: 10.54 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001671/0.6429, allocations: 1.52 MB / 1.418 GB, free: 8.875 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003577/0.6432, allocations: 47.86 kB / 1.418 GB, free: 8.828 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.597e-05/0.6433, allocations: 15.98 kB / 1.418 GB, free: 8.812 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.159e-05/0.6433, allocations: 5.094 kB / 1.418 GB, free: 8.809 MB / 0.9167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001046/0.6443, allocations: 0.5021 MB / 1.419 GB, free: 8.297 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.746e-06/0.6444, allocations: 0 / 1.419 GB, free: 8.297 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001359/0.6445, allocations: 41.31 kB / 1.419 GB, free: 8.254 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003712/0.6449, allocations: 95.84 kB / 1.419 GB, free: 8.16 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001358/0.6463, allocations: 1.5 MB / 1.421 GB, free: 6.52 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003275/0.6466, allocations: 51.73 kB / 1.421 GB, free: 6.469 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.125e-05/0.6466, allocations: 16 kB / 1.421 GB, free: 6.453 MB / 0.9167 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 () * Number of clocked 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.0003277/0.647, allocations: 237.1 kB / 1.421 GB, free: 6.211 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.344e-05/0.647, allocations: 27.7 kB / 1.421 GB, free: 6.184 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001074/0.6481, allocations: 496.2 kB / 1.421 GB, free: 5.688 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.53e-06/0.6481, allocations: 4 kB / 1.421 GB, free: 5.684 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.006e-06/0.6481, allocations: 0 / 1.421 GB, free: 5.684 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.56e-06/0.6482, allocations: 0 / 1.421 GB, free: 5.684 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007393/0.6489, allocations: 0.5661 MB / 1.422 GB, free: 5.055 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.915e-06/0.6489, allocations: 0 / 1.422 GB, free: 5.055 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003803/0.6493, allocations: 91.94 kB / 1.422 GB, free: 4.965 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001156/0.6494, allocations: 32.83 kB / 1.422 GB, free: 4.93 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.959e-05/0.6495, allocations: 8 kB / 1.422 GB, free: 4.922 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00115/0.6506, allocations: 1.429 MB / 1.423 GB, free: 3.359 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.6506, allocations: 0 / 1.423 GB, free: 3.359 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001048/0.6517, allocations: 0.598 MB / 1.424 GB, free: 2.715 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001884/0.6519, allocations: 136.6 kB / 1.424 GB, free: 2.562 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.285e-05/0.6519, allocations: 11.98 kB / 1.424 GB, free: 2.551 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003148/0.6523, allocations: 43.95 kB / 1.424 GB, free: 2.508 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001159/0.6524, allocations: 35.91 kB / 1.424 GB, free: 2.473 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.22e-05/0.6524, allocations: 4 kB / 1.424 GB, free: 2.469 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0001738/0.6526, allocations: 172.5 kB / 1.424 GB, free: 2.301 MB / 0.9167 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6526, allocations: 0 / 1.424 GB, free: 2.301 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0006632/0.6533, allocations: 147.9 kB / 1.425 GB, free: 2.156 MB / 0.9167 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) * Number of clocked states: 0 () * 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.0002388/0.6535, allocations: 134.8 kB / 1.425 GB, free: 2.012 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.001892/0.6554, allocations: 1.016 MB / 1.426 GB, free: 0.9453 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.6554, allocations: 0 / 1.426 GB, free: 0.9453 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.000601/0.656, allocations: 334.9 kB / 1.426 GB, free: 0.6055 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00035/0.6564, allocations: 44.47 kB / 1.426 GB, free: 0.5625 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.623/1.279, allocations: 0.7328 MB / 1.427 GB, free: 190.2 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003342/1.28, allocations: 0.7935 MB / 1.428 GB, free: 189.5 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0004425/1.28, allocations: 91.59 kB / 1.428 GB, free: 189.5 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001154/1.28, allocations: 29.36 kB / 1.428 GB, free: 189.5 MB / 0.9167 GB Notification: Performance of SimCode: time 1.082e-06/1.28, allocations: 3.75 kB / 1.428 GB, free: 189.5 MB / 0.9167 GB Notification: Performance of Templates: time 0.01055/1.291, allocations: 4.02 MB / 1.432 GB, free: 189.4 MB / 0.9167 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.makefile (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.sim & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource.csv","../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches