Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_latest_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_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000981/0.0009807, allocations: 99.78 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009808/0.0009809, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.478/1.478, allocations: 223.2 MB / 239.9 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.662/2.662, allocations: 436.5 MB / 0.7104 GB, free: 7.777 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003743/0.0003743, allocations: 12 kB / 0.8708 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9242/0.9246, allocations: 153.6 MB / 1.021 GB, free: 1.074 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource): time 0.003687/0.9283, allocations: 2.572 MB / 1.023 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002846/0.9312, allocations: 1.587 MB / 1.025 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001962/0.9314, allocations: 0 / 1.025 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.000221/0.9317, allocations: 31.78 kB / 1.025 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0006098/0.9323, allocations: 135.6 kB / 1.025 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007008/0.933, allocations: 191.4 kB / 1.025 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003866/0.9334, allocations: 227.5 kB / 1.025 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000927/0.9344, allocations: 366.6 kB / 1.026 GB, free: 11.94 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002547/0.9346, allocations: 119.6 kB / 1.026 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002984/0.9349, allocations: 131.5 kB / 1.026 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.931e-05/0.935, allocations: 12 kB / 1.026 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003516/0.9353, allocations: 139.8 kB / 1.026 GB, free: 11.55 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001063/0.9355, allocations: 79.78 kB / 1.026 GB, free: 11.47 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 9.717e-05/0.9356, allocations: 73.58 kB / 1.026 GB, free: 11.39 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004358/0.936, allocations: 337.1 kB / 1.027 GB, free: 11.06 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.936, allocations: 0 / 1.027 GB, free: 11.06 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.756e-06/0.936, allocations: 3.938 kB / 1.027 GB, free: 11.06 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.38e-06/0.936, allocations: 3.938 kB / 1.027 GB, free: 11.05 MB / 0.7794 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.001283/0.9373, allocations: 0.6096 MB / 1.027 GB, free: 10.39 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.402e-05/0.9374, allocations: 11.98 kB / 1.027 GB, free: 10.38 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007693/0.9382, allocations: 107.5 kB / 1.027 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003855/0.9385, allocations: 266.5 kB / 1.028 GB, free: 9.973 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.902e-05/0.9386, allocations: 20.39 kB / 1.028 GB, free: 9.953 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.083e-05/0.9386, allocations: 24 kB / 1.028 GB, free: 9.93 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008021/0.9395, allocations: 422.5 kB / 1.028 GB, free: 9.488 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.721e-05/0.9395, allocations: 3.984 kB / 1.028 GB, free: 9.484 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.318e-05/0.9395, allocations: 12 kB / 1.028 GB, free: 9.473 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.649e-05/0.9396, allocations: 24.3 kB / 1.028 GB, free: 9.445 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008891/0.9405, allocations: 416.8 kB / 1.028 GB, free: 9.039 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002031/0.9425, allocations: 1.615 MB / 1.03 GB, free: 7.297 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001124/0.9437, allocations: 481.7 kB / 1.031 GB, free: 6.809 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001596/0.9438, allocations: 89.09 kB / 1.031 GB, free: 6.703 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005691/0.9444, allocations: 282.5 kB / 1.031 GB, free: 6.406 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=27): time 1.904e-06/0.9444, allocations: 4 kB / 1.031 GB, free: 6.402 MB / 0.7794 GB Notification: Performance of matching and sorting (n=28): time 0.001897/0.9463, allocations: 0.7785 MB / 1.032 GB, free: 5.598 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.787e-05/0.9464, allocations: 85.05 kB / 1.032 GB, free: 5.496 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002382/0.9466, allocations: 228.9 kB / 1.032 GB, free: 5.262 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.481e-05/0.9467, allocations: 33.7 kB / 1.032 GB, free: 5.223 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001185/0.9468, allocations: 160.4 kB / 1.032 GB, free: 5.062 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 7.17e-05/0.9469, allocations: 90.66 kB / 1.032 GB, free: 4.973 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.036e-05/0.9469, allocations: 8 kB / 1.032 GB, free: 4.965 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001496/0.9471, allocations: 338.8 kB / 1.033 GB, free: 4.625 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004063/0.9475, allocations: 180.2 kB / 1.033 GB, free: 4.449 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004425/0.9479, allocations: 253.3 kB / 1.033 GB, free: 4.172 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004488/0.9484, allocations: 233.8 kB / 1.033 GB, free: 3.938 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.9484, allocations: 0 / 1.033 GB, free: 3.938 MB / 0.7794 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001134/0.9495, allocations: 0.5598 MB / 1.034 GB, free: 3.363 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004253/0.95, allocations: 0.9147 MB / 1.035 GB, free: 2.375 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.198e-06/0.95, allocations: 0 / 1.035 GB, free: 2.375 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002572/0.9503, allocations: 40.81 kB / 1.035 GB, free: 2.332 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003977/0.9507, allocations: 91.88 kB / 1.035 GB, free: 2.242 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001467/0.9521, allocations: 1.516 MB / 1.036 GB, free: 0.5898 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003397/0.9525, allocations: 47.86 kB / 1.036 GB, free: 0.543 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.315e-05/0.9525, allocations: 12 kB / 1.036 GB, free: 0.5312 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 7.514e-06/0.9526, allocations: 4 kB / 1.036 GB, free: 0.5273 MB / 0.7794 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001069/0.9536, allocations: 0.5106 MB / 1.037 GB, free: 8 kB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.9536, allocations: 4 kB / 1.037 GB, free: 4 kB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000152/0.9538, allocations: 48.77 kB / 1.037 GB, free: 15.95 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003406/0.9542, allocations: 84.03 kB / 1.037 GB, free: 15.87 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00118/0.9553, allocations: 1.501 MB / 1.038 GB, free: 14.23 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003009/0.9557, allocations: 47.8 kB / 1.038 GB, free: 14.18 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.033e-05/0.9557, allocations: 19.98 kB / 1.038 GB, free: 14.16 MB / 0.795 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.0002689/0.956, allocations: 237 kB / 1.039 GB, free: 13.92 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.257e-05/0.956, allocations: 27.72 kB / 1.039 GB, free: 13.89 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001048/0.9571, allocations: 492.6 kB / 1.039 GB, free: 13.4 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.292e-06/0.9571, allocations: 4 kB / 1.039 GB, free: 13.4 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.9571, allocations: 4 kB / 1.039 GB, free: 13.39 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.183e-06/0.9571, allocations: 8 kB / 1.039 GB, free: 13.39 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007112/0.9578, allocations: 0.5738 MB / 1.04 GB, free: 12.75 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.9579, allocations: 0 / 1.04 GB, free: 12.75 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003654/0.9582, allocations: 75.92 kB / 1.04 GB, free: 12.68 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001306/0.9584, allocations: 40.86 kB / 1.04 GB, free: 12.63 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.413e-05/0.9584, allocations: 8 kB / 1.04 GB, free: 12.62 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001136/0.9595, allocations: 1.421 MB / 1.041 GB, free: 11.07 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/0.9596, allocations: 3.984 kB / 1.041 GB, free: 11.07 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001032/0.9606, allocations: 0.5977 MB / 1.042 GB, free: 10.43 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001625/0.9608, allocations: 140.6 kB / 1.042 GB, free: 10.27 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.275e-05/0.9608, allocations: 8 kB / 1.042 GB, free: 10.26 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002949/0.9611, allocations: 43.95 kB / 1.042 GB, free: 10.22 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001003/0.9612, allocations: 27.95 kB / 1.042 GB, free: 10.19 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.39e-05/0.9613, allocations: 4 kB / 1.042 GB, free: 10.19 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0002094/0.9615, allocations: 176.5 kB / 1.042 GB, free: 10.02 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.7e-07/0.9615, allocations: 3.938 kB / 1.042 GB, free: 10.01 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0006396/0.9621, allocations: 132 kB / 1.042 GB, free: 9.883 MB / 0.795 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.0001972/0.9623, allocations: 115.1 kB / 1.042 GB, free: 9.762 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.00184/0.9642, allocations: 1.005 MB / 1.043 GB, free: 8.707 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.9642, allocations: 0 / 1.043 GB, free: 8.707 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0005847/0.9648, allocations: 343.3 kB / 1.044 GB, free: 8.359 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003465/0.9651, allocations: 45.05 kB / 1.044 GB, free: 8.316 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001203/0.9664, allocations: 0.7359 MB / 1.045 GB, free: 7.547 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003602/0.9667, allocations: 0.7917 MB / 1.045 GB, free: 6.727 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002824/0.967, allocations: 94.2 kB / 1.045 GB, free: 6.633 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.701e-05/0.9671, allocations: 23.44 kB / 1.045 GB, free: 6.609 MB / 0.795 GB Notification: Performance of SimCode: time 9.92e-07/0.9671, allocations: 0 / 1.045 GB, free: 6.609 MB / 0.795 GB Notification: Performance of Templates: time 0.007796/0.9749, allocations: 4.019 MB / 1.049 GB, free: 2.605 MB / 0.795 GB make -j1 -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.makefile (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.sim & ./Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource.csv","../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches