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.273/2.273, allocations: 387.1 MB / 399.7 MB, free: 9.5 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.001171/0.001171, allocations: 176.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.393/1.393, allocations: 221.3 MB / 0.7871 GB, free: 12.96 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.0008213/0.0008213, allocations: 87.95 kB / 0.9267 GB, free: 14.03 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.938e-05/2.988e-05, allocations: 4 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2568/0.2569, allocations: 142.3 MB / 1.212 GB, free: 38.55 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9595/1.216, allocations: 171.5 MB / 1.38 GB, free: 19.04 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003382/1.217, allocations: 95.73 kB / 1.38 GB, free: 19.03 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.06206/1.279, allocations: 18.6 MB / 1.398 GB, free: 27.32 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.573e-06/1.279, allocations: 0 / 1.398 GB, free: 27.32 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.782e-05/1.279, allocations: 8 kB / 1.398 GB, free: 27.32 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.001394/1.28, allocations: 0.614 MB / 1.399 GB, free: 26.67 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.457e-05/1.281, allocations: 12.03 kB / 1.399 GB, free: 26.66 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001301/1.282, allocations: 99.53 kB / 1.399 GB, free: 26.56 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004541/1.282, allocations: 282.4 kB / 1.399 GB, free: 26.27 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.058e-05/1.282, allocations: 15.67 kB / 1.399 GB, free: 26.26 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.217e-05/1.282, allocations: 26.34 kB / 1.399 GB, free: 26.24 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007866/1.283, allocations: 369.8 kB / 1.399 GB, free: 25.95 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.121e-05/1.283, allocations: 0 / 1.399 GB, free: 25.95 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.061e-05/1.283, allocations: 15.55 kB / 1.4 GB, free: 25.94 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-05/1.283, allocations: 20.36 kB / 1.4 GB, free: 25.92 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007444/1.284, allocations: 316.6 kB / 1.4 GB, free: 25.71 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002553/1.287, allocations: 1.656 MB / 1.401 GB, free: 24.14 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00115/1.288, allocations: 395.5 kB / 1.402 GB, free: 23.84 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003763/1.288, allocations: 156.5 kB / 1.402 GB, free: 23.73 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001976/1.289, allocations: 89.11 kB / 1.402 GB, free: 23.63 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004848/1.289, allocations: 230.2 kB / 1.402 GB, free: 23.44 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=27): time 3.457e-06/1.289, allocations: 0 / 1.402 GB, free: 23.44 MB / 0.8386 GB Notification: Performance of matching and sorting (n=28): time 0.001314/1.29, allocations: 437.9 kB / 1.403 GB, free: 23.09 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.127e-05/1.29, allocations: 85.11 kB / 1.403 GB, free: 22.98 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002569/1.291, allocations: 196.8 kB / 1.403 GB, free: 22.81 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 4.334e-05/1.291, allocations: 36.89 kB / 1.403 GB, free: 22.78 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001219/1.291, allocations: 164.8 kB / 1.403 GB, free: 22.64 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 8.87e-05/1.291, allocations: 88.28 kB / 1.403 GB, free: 22.56 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.049e-05/1.291, allocations: 6.625 kB / 1.403 GB, free: 22.56 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001423/1.291, allocations: 336.9 kB / 1.404 GB, free: 22.23 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003185/1.292, allocations: 130.3 kB / 1.404 GB, free: 22.15 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003564/1.292, allocations: 213.1 kB / 1.404 GB, free: 21.97 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000401/1.292, allocations: 185 kB / 1.404 GB, free: 21.83 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/1.292, allocations: 4 kB / 1.404 GB, free: 21.83 MB / 0.8386 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001106/1.293, allocations: 482.2 kB / 1.405 GB, free: 21.45 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003825/1.294, allocations: 0.9031 MB / 1.405 GB, free: 20.49 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.111e-05/1.294, allocations: 3.984 kB / 1.405 GB, free: 20.49 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003116/1.294, allocations: 40.52 kB / 1.405 GB, free: 20.45 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006233/1.295, allocations: 91.17 kB / 1.406 GB, free: 20.36 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001725/1.297, allocations: 1.496 MB / 1.407 GB, free: 18.83 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005295/1.297, allocations: 51.36 kB / 1.407 GB, free: 18.78 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.729e-05/1.297, allocations: 15.75 kB / 1.407 GB, free: 18.77 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.014e-05/1.297, allocations: 4 kB / 1.407 GB, free: 18.77 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009974/1.298, allocations: 422.4 kB / 1.407 GB, free: 18.45 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.599e-06/1.298, allocations: 0 / 1.407 GB, free: 18.45 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00018/1.298, allocations: 43.02 kB / 1.408 GB, free: 18.41 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005425/1.299, allocations: 87.3 kB / 1.408 GB, free: 18.33 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0015/1.301, allocations: 1.486 MB / 1.409 GB, free: 16.8 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004941/1.301, allocations: 46.98 kB / 1.409 GB, free: 16.76 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.048e-05/1.301, allocations: 16.06 kB / 1.409 GB, free: 16.74 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.0001828/1.301, allocations: 127.7 kB / 1.409 GB, free: 16.62 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.189e-05/1.301, allocations: 23.72 kB / 1.409 GB, free: 16.6 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00102/1.302, allocations: 397.2 kB / 1.41 GB, free: 16.31 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.442e-06/1.302, allocations: 4 kB / 1.41 GB, free: 16.3 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/1.302, allocations: 0 / 1.41 GB, free: 16.3 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/1.302, allocations: 4 kB / 1.41 GB, free: 16.3 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009014/1.303, allocations: 0.5619 MB / 1.41 GB, free: 15.77 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/1.303, allocations: 0 / 1.41 GB, free: 15.77 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005688/1.304, allocations: 91.44 kB / 1.41 GB, free: 15.69 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002018/1.304, allocations: 38.83 kB / 1.41 GB, free: 15.65 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.704e-05/1.304, allocations: 3.562 kB / 1.41 GB, free: 15.65 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001386/1.306, allocations: 1.417 MB / 1.412 GB, free: 14.18 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.538e-06/1.306, allocations: 3.953 kB / 1.412 GB, free: 14.18 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009036/1.307, allocations: 0.5074 MB / 1.412 GB, free: 13.71 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001948/1.307, allocations: 142.1 kB / 1.412 GB, free: 13.57 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.168e-05/1.307, allocations: 7.188 kB / 1.412 GB, free: 13.57 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004855/1.307, allocations: 43.39 kB / 1.412 GB, free: 13.53 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001366/1.308, allocations: 27.89 kB / 1.412 GB, free: 13.5 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.649e-05/1.308, allocations: 11 kB / 1.412 GB, free: 13.5 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0002287/1.308, allocations: 174.8 kB / 1.413 GB, free: 13.35 MB / 0.8386 GB Notification: Performance of sort global known variables: time 3.31e-07/1.308, allocations: 0 / 1.413 GB, free: 13.35 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.001052/1.309, allocations: 140.9 kB / 1.413 GB, free: 13.23 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.0002759/1.309, allocations: 134.7 kB / 1.413 GB, free: 13.09 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.001927/1.311, allocations: 0.8686 MB / 1.414 GB, free: 12.34 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/1.311, allocations: 0 / 1.414 GB, free: 12.34 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0006577/1.312, allocations: 290.5 kB / 1.414 GB, free: 12.09 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005367/1.312, allocations: 44.12 kB / 1.414 GB, free: 12.07 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001511/1.314, allocations: 475.3 kB / 1.414 GB, free: 11.64 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005482/1.314, allocations: 0.7868 MB / 1.415 GB, free: 10.84 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0005884/1.315, allocations: 102 kB / 1.415 GB, free: 10.73 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001486/1.315, allocations: 27.19 kB / 1.415 GB, free: 10.71 MB / 0.8386 GB Notification: Performance of SimCode: time 7.01e-07/1.315, allocations: 0 / 1.415 GB, free: 10.71 MB / 0.8386 GB Notification: Performance of Templates: time 0.01247/1.328, allocations: 4.307 MB / 1.42 GB, free: 6.434 MB / 0.8386 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