Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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_maint.7.0.x_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_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.428/1.428, allocations: 249.3 MB / 261.8 MB, free: 5.824 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001095/0.001095, allocations: 180.8 kB / 321.3 MB, free: 14.63 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.606/1.606, allocations: 205.1 MB / 0.572 GB, free: 10.68 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008583/0.0008582, allocations: 79.12 kB / 0.6764 GB, free: 15.66 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.379e-05/3.382e-05, allocations: 4 kB / 0.7879 GB, free: 97.09 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2231/0.2231, allocations: 106.3 MB / 0.8918 GB, free: 6.656 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6516/0.8747, allocations: 153.6 MB / 1.042 GB, free: 14.63 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002524/0.875, allocations: 90.06 kB / 1.042 GB, free: 14.58 MB / 0.6667 GB Notification: Performance of FrontEnd - DAE generated: time 0.04028/0.9153, allocations: 17 MB / 1.059 GB, free: 312 kB / 0.6667 GB Notification: Performance of FrontEnd: time 1.533e-06/0.9153, allocations: 0 / 1.059 GB, free: 312 kB / 0.6667 GB Notification: Performance of Transformations before backend: time 2.334e-05/0.9154, allocations: 7.984 kB / 1.059 GB, free: 304 kB / 0.6667 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.00116/0.9165, allocations: 0.6096 MB / 1.059 GB, free: 15.66 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.293e-05/0.9166, allocations: 8.031 kB / 1.059 GB, free: 15.65 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008358/0.9174, allocations: 91.62 kB / 1.059 GB, free: 15.56 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004371/0.9179, allocations: 292.6 kB / 1.06 GB, free: 15.26 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.3e-05/0.9179, allocations: 12.06 kB / 1.06 GB, free: 15.25 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.963e-05/0.918, allocations: 19.06 kB / 1.06 GB, free: 15.24 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006098/0.9186, allocations: 371.2 kB / 1.06 GB, free: 14.94 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.801e-05/0.9186, allocations: 0 / 1.06 GB, free: 14.94 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.667e-05/0.9187, allocations: 19.73 kB / 1.06 GB, free: 14.93 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.68e-05/0.9187, allocations: 28.28 kB / 1.06 GB, free: 14.9 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005148/0.9193, allocations: 315.9 kB / 1.06 GB, free: 14.69 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002035/0.9213, allocations: 1.656 MB / 1.062 GB, free: 13.11 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007996/0.9221, allocations: 397.9 kB / 1.062 GB, free: 12.81 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002242/0.9224, allocations: 158.7 kB / 1.062 GB, free: 12.7 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001508/0.9225, allocations: 85.11 kB / 1.062 GB, free: 12.6 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003379/0.9229, allocations: 233.8 kB / 1.063 GB, free: 12.4 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=27): time 2.966e-06/0.9229, allocations: 0 / 1.063 GB, free: 12.4 MB / 0.6823 GB Notification: Performance of matching and sorting (n=28): time 0.0008895/0.9238, allocations: 433.4 kB / 1.063 GB, free: 12.05 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.335e-05/0.9238, allocations: 89.08 kB / 1.063 GB, free: 11.95 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001881/0.924, allocations: 195 kB / 1.063 GB, free: 11.79 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 3.542e-05/0.9241, allocations: 37.34 kB / 1.063 GB, free: 11.75 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 9.018e-05/0.9242, allocations: 172 kB / 1.064 GB, free: 11.6 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 8.714e-05/0.9243, allocations: 85.94 kB / 1.064 GB, free: 11.53 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.962e-05/0.9243, allocations: 2.875 kB / 1.064 GB, free: 11.53 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001065/0.9244, allocations: 341.9 kB / 1.064 GB, free: 11.2 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002081/0.9246, allocations: 132.7 kB / 1.064 GB, free: 11.11 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002475/0.9249, allocations: 214.4 kB / 1.064 GB, free: 10.93 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002591/0.9252, allocations: 176.2 kB / 1.064 GB, free: 10.8 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/0.9252, allocations: 7.953 kB / 1.064 GB, free: 10.79 MB / 0.6823 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007342/0.9259, allocations: 470.1 kB / 1.065 GB, free: 10.43 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003499/0.9263, allocations: 0.9019 MB / 1.066 GB, free: 9.465 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.765e-06/0.9263, allocations: 0 / 1.066 GB, free: 9.465 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002268/0.9265, allocations: 51.06 kB / 1.066 GB, free: 9.418 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003984/0.9269, allocations: 87.48 kB / 1.066 GB, free: 9.336 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001303/0.9283, allocations: 1.501 MB / 1.067 GB, free: 7.793 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003427/0.9286, allocations: 51.08 kB / 1.067 GB, free: 7.746 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.487e-05/0.9287, allocations: 19.06 kB / 1.067 GB, free: 7.73 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 9.949e-06/0.9287, allocations: 4 kB / 1.067 GB, free: 7.727 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006723/0.9294, allocations: 416.9 kB / 1.068 GB, free: 7.418 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.9294, allocations: 0 / 1.068 GB, free: 7.418 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001203/0.9295, allocations: 36.73 kB / 1.068 GB, free: 7.383 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003613/0.9299, allocations: 90.12 kB / 1.068 GB, free: 7.297 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001106/0.931, allocations: 1.486 MB / 1.069 GB, free: 5.77 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000303/0.9313, allocations: 43.5 kB / 1.069 GB, free: 5.73 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.113e-05/0.9314, allocations: 19.86 kB / 1.07 GB, free: 5.715 MB / 0.6823 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.0001272/0.9315, allocations: 127 kB / 1.07 GB, free: 5.594 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.873e-05/0.9316, allocations: 27.67 kB / 1.07 GB, free: 5.566 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006808/0.9322, allocations: 399.7 kB / 1.07 GB, free: 5.27 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.45e-06/0.9323, allocations: 4.125 kB / 1.07 GB, free: 5.266 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.039e-05/0.9323, allocations: 7.984 kB / 1.07 GB, free: 5.258 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.9323, allocations: 4 kB / 1.07 GB, free: 5.254 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006575/0.933, allocations: 0.5608 MB / 1.071 GB, free: 4.719 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.933, allocations: 0 / 1.071 GB, free: 4.719 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003824/0.9334, allocations: 83.36 kB / 1.071 GB, free: 4.641 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001138/0.9335, allocations: 40.17 kB / 1.071 GB, free: 4.602 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.534e-05/0.9335, allocations: 7.547 kB / 1.071 GB, free: 4.598 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009996/0.9345, allocations: 1.413 MB / 1.072 GB, free: 3.137 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.9345, allocations: 3.953 kB / 1.072 GB, free: 3.133 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006218/0.9352, allocations: 0.5032 MB / 1.073 GB, free: 2.676 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001431/0.9353, allocations: 135 kB / 1.073 GB, free: 2.535 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.044e-05/0.9354, allocations: 7.75 kB / 1.073 GB, free: 2.531 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003109/0.9357, allocations: 42.89 kB / 1.073 GB, free: 2.492 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001006/0.9358, allocations: 35.58 kB / 1.073 GB, free: 2.465 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.357e-05/0.9358, allocations: 8 kB / 1.073 GB, free: 2.457 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.0001483/0.936, allocations: 169.1 kB / 1.073 GB, free: 2.32 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.41e-07/0.936, allocations: 0 / 1.073 GB, free: 2.32 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0005823/0.9366, allocations: 147.9 kB / 1.073 GB, free: 2.191 MB / 0.6823 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.0001836/0.9368, allocations: 122.7 kB / 1.073 GB, free: 2.062 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.001204/0.938, allocations: 0.8712 MB / 1.074 GB, free: 1.305 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.938, allocations: 4 kB / 1.074 GB, free: 1.301 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0004014/0.9384, allocations: 284.7 kB / 1.074 GB, free: 1.062 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003214/0.9387, allocations: 46.22 kB / 1.074 GB, free: 1.031 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009262/0.9397, allocations: 477.9 kB / 1.075 GB, free: 0.6016 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003535/0.94, allocations: 0.7918 MB / 1.076 GB, free: 15.79 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0003428/0.9404, allocations: 102 kB / 1.076 GB, free: 15.7 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.239e-05/0.9405, allocations: 19.44 kB / 1.076 GB, free: 15.68 MB / 0.698 GB Notification: Performance of SimCode: time 2.4e-07/0.9405, allocations: 0 / 1.076 GB, free: 15.68 MB / 0.698 GB Notification: Performance of Templates: time 0.007982/0.9485, allocations: 4.324 MB / 1.08 GB, free: 11.39 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches