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.388/2.388, allocations: 387.4 MB / 394.9 MB, free: 13.46 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.001009/0.001009, allocations: 180.8 kB / 487.4 MB, free: 5.07 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.589/1.589, allocations: 221.5 MB / 0.7824 GB, free: 0.9453 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008124/0.0008124, allocations: 106.6 kB / 0.9219 GB, free: 2.172 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.633e-05/1.635e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2622/0.2623, allocations: 142.4 MB / 1.206 GB, free: 43.95 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8864/1.149, allocations: 170.8 MB / 1.373 GB, free: 18.31 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002424/1.149, allocations: 91.94 kB / 1.373 GB, free: 18.31 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.03948/1.188, allocations: 18.54 MB / 1.391 GB, free: 28.37 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.492e-06/1.189, allocations: 0 / 1.391 GB, free: 28.37 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.954e-05/1.189, allocations: 3.844 kB / 1.391 GB, free: 28.37 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.0009687/1.19, allocations: 0.6131 MB / 1.392 GB, free: 27.84 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.768e-05/1.19, allocations: 11.56 kB / 1.392 GB, free: 27.84 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007575/1.19, allocations: 105 kB / 1.392 GB, free: 27.8 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003166/1.191, allocations: 278.9 kB / 1.392 GB, free: 27.55 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.795e-05/1.191, allocations: 11.62 kB / 1.392 GB, free: 27.55 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.453e-05/1.191, allocations: 11.53 kB / 1.392 GB, free: 27.55 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003708/1.191, allocations: 245.8 kB / 1.392 GB, free: 27.52 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004072/1.192, allocations: 348.3 kB / 1.393 GB, free: 27.36 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.417e-05/1.192, allocations: 0 / 1.393 GB, free: 27.36 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.092e-05/1.192, allocations: 3.844 kB / 1.393 GB, free: 27.36 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.366e-05/1.192, allocations: 19.73 kB / 1.393 GB, free: 27.35 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001624/1.193, allocations: 1.595 MB / 1.394 GB, free: 26.11 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006441/1.194, allocations: 383.2 kB / 1.394 GB, free: 26 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001769/1.194, allocations: 149 kB / 1.395 GB, free: 25.97 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000143/1.194, allocations: 99.19 kB / 1.395 GB, free: 25.87 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002739/1.195, allocations: 222.1 kB / 1.395 GB, free: 25.75 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=27): time 1.804e-06/1.195, allocations: 0 / 1.395 GB, free: 25.75 MB / 0.8386 GB Notification: Performance of matching and sorting (n=28): time 0.000827/1.195, allocations: 423.7 kB / 1.395 GB, free: 25.6 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.987e-05/1.195, allocations: 77.11 kB / 1.395 GB, free: 25.5 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001674/1.196, allocations: 191.7 kB / 1.396 GB, free: 25.39 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.117e-05/1.196, allocations: 29.55 kB / 1.396 GB, free: 25.36 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001028/1.196, allocations: 170.3 kB / 1.396 GB, free: 25.23 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 6.288e-05/1.196, allocations: 87.84 kB / 1.396 GB, free: 25.16 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.121e-05/1.196, allocations: 3.719 kB / 1.396 GB, free: 25.16 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001364/1.196, allocations: 329.6 kB / 1.396 GB, free: 24.84 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001591/1.196, allocations: 126.5 kB / 1.396 GB, free: 24.83 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001811/1.196, allocations: 201.6 kB / 1.396 GB, free: 24.73 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002423/1.197, allocations: 168.2 kB / 1.397 GB, free: 24.7 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/1.197, allocations: 0 / 1.397 GB, free: 24.7 MB / 0.8386 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006126/1.197, allocations: 427.7 kB / 1.397 GB, free: 24.57 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003048/1.198, allocations: 0.9082 MB / 1.398 GB, free: 23.62 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/1.198, allocations: 0 / 1.398 GB, free: 23.62 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002048/1.198, allocations: 49.86 kB / 1.398 GB, free: 23.59 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003796/1.198, allocations: 92.41 kB / 1.398 GB, free: 23.57 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001142/1.199, allocations: 1.428 MB / 1.399 GB, free: 22.27 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003176/1.2, allocations: 54.22 kB / 1.4 GB, free: 22.24 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.776e-05/1.2, allocations: 15.22 kB / 1.4 GB, free: 22.24 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 7.804e-06/1.2, allocations: 3.812 kB / 1.4 GB, free: 22.24 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005602/1.2, allocations: 353.3 kB / 1.4 GB, free: 22.16 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/1.2, allocations: 3.953 kB / 1.4 GB, free: 22.16 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001075/1.2, allocations: 38.45 kB / 1.4 GB, free: 22.14 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003265/1.201, allocations: 96.42 kB / 1.4 GB, free: 22.11 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009351/1.202, allocations: 1.434 MB / 1.401 GB, free: 20.8 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002769/1.202, allocations: 38.94 kB / 1.401 GB, free: 20.79 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.41e-05/1.202, allocations: 15.55 kB / 1.401 GB, free: 20.79 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.0001328/1.202, allocations: 115.9 kB / 1.402 GB, free: 20.67 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.558e-05/1.202, allocations: 23.25 kB / 1.402 GB, free: 20.66 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006279/1.203, allocations: 385.1 kB / 1.402 GB, free: 20.53 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/1.203, allocations: 3.812 kB / 1.402 GB, free: 20.53 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.846e-06/1.203, allocations: 0 / 1.402 GB, free: 20.53 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.092e-06/1.203, allocations: 7.984 kB / 1.402 GB, free: 20.52 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005117/1.203, allocations: 0.5079 MB / 1.402 GB, free: 20.15 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/1.203, allocations: 0 / 1.402 GB, free: 20.15 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003555/1.204, allocations: 88.84 kB / 1.403 GB, free: 20.12 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001037/1.204, allocations: 35.42 kB / 1.403 GB, free: 20.11 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.417e-05/1.204, allocations: 7.219 kB / 1.403 GB, free: 20.11 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008835/1.205, allocations: 1.361 MB / 1.404 GB, free: 18.84 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/1.205, allocations: 0 / 1.404 GB, free: 18.84 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005529/1.205, allocations: 0.4999 MB / 1.404 GB, free: 18.54 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001172/1.205, allocations: 130.8 kB / 1.405 GB, free: 18.43 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.223e-05/1.206, allocations: 11.78 kB / 1.405 GB, free: 18.42 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002851/1.206, allocations: 35.08 kB / 1.405 GB, free: 18.41 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.237e-05/1.206, allocations: 31.02 kB / 1.405 GB, free: 18.39 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.153e-05/1.206, allocations: 11.09 kB / 1.405 GB, free: 18.39 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001194/1.206, allocations: 159.2 kB / 1.405 GB, free: 18.3 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.4e-07/1.206, allocations: 0 / 1.405 GB, free: 18.3 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0005648/1.207, allocations: 128.5 kB / 1.405 GB, free: 18.29 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.0002199/1.207, allocations: 117.2 kB / 1.405 GB, free: 18.2 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0009845/1.208, allocations: 0.8315 MB / 1.406 GB, free: 17.78 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/1.208, allocations: 0 / 1.406 GB, free: 17.78 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0003467/1.208, allocations: 286.3 kB / 1.406 GB, free: 17.64 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003292/1.209, allocations: 43.66 kB / 1.406 GB, free: 17.63 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008037/1.209, allocations: 447 kB / 1.407 GB, free: 17.41 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003253/1.21, allocations: 0.7954 MB / 1.407 GB, free: 16.66 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0003122/1.21, allocations: 102.3 kB / 1.407 GB, free: 16.61 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.637e-05/1.21, allocations: 26.47 kB / 1.407 GB, free: 16.61 MB / 0.8386 GB Notification: Performance of SimCode: time 3.91e-07/1.21, allocations: 0 / 1.407 GB, free: 16.61 MB / 0.8386 GB Notification: Performance of Templates: time 0.006719/1.217, allocations: 4.117 MB / 1.411 GB, free: 14.28 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