Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/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_10_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_10_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.001141/0.001147, allocations: 92.31 kB / 15.06 MB, free: 1.098 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.001421/0.001421, allocations: 172.7 kB / 15.95 MB, free: 208 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.457/1.457, allocations: 223.3 MB / 240 MB, free: 5.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.809/2.809, allocations: 437.7 MB / 0.7117 GB, free: 7.078 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000356/0.0003561, allocations: 12 kB / 0.8722 GB, free: 3.73 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8777/0.878, allocations: 153.8 MB / 1.022 GB, free: 128 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource): time 0.00361/0.8817, allocations: 2.626 MB / 1.025 GB, free: 13.49 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002712/0.8845, allocations: 1.614 MB / 1.027 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001455/0.8846, allocations: 0 / 1.027 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001892/0.8848, allocations: 35.7 kB / 1.027 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0004636/0.8853, allocations: 151.3 kB / 1.027 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.000561/0.8859, allocations: 187.5 kB / 1.027 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0005349/0.8864, allocations: 418.6 kB / 1.027 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007878/0.8872, allocations: 374.7 kB / 1.028 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002431/0.8875, allocations: 131.5 kB / 1.028 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003649/0.8878, allocations: 167.4 kB / 1.028 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.964e-05/0.8879, allocations: 16 kB / 1.028 GB, free: 10.39 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003109/0.8882, allocations: 143.8 kB / 1.028 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001091/0.8883, allocations: 83.77 kB / 1.028 GB, free: 10.17 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 8.458e-05/0.8884, allocations: 65.58 kB / 1.028 GB, free: 10.1 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004267/0.8889, allocations: 349 kB / 1.029 GB, free: 9.758 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.132e-06/0.8889, allocations: 0 / 1.029 GB, free: 9.758 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.854e-06/0.8889, allocations: 0 / 1.029 GB, free: 9.758 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.093e-06/0.8889, allocations: 0 / 1.029 GB, free: 9.758 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.001212/0.8901, allocations: 0.6057 MB / 1.029 GB, free: 9.098 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.064e-05/0.8902, allocations: 12.52 kB / 1.029 GB, free: 9.086 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007326/0.8909, allocations: 99.52 kB / 1.029 GB, free: 8.988 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003938/0.8913, allocations: 266.5 kB / 1.03 GB, free: 8.688 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.999e-05/0.8914, allocations: 24.33 kB / 1.03 GB, free: 8.664 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.365e-05/0.8914, allocations: 24 kB / 1.03 GB, free: 8.641 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007799/0.8922, allocations: 422.5 kB / 1.03 GB, free: 8.207 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.77e-05/0.8922, allocations: 4 kB / 1.03 GB, free: 8.203 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.49e-05/0.8923, allocations: 7.938 kB / 1.03 GB, free: 8.195 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.907e-05/0.8923, allocations: 32.3 kB / 1.03 GB, free: 8.16 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008557/0.8932, allocations: 408.8 kB / 1.03 GB, free: 7.762 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001882/0.8951, allocations: 1.619 MB / 1.032 GB, free: 6.016 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001106/0.8962, allocations: 489.1 kB / 1.032 GB, free: 5.52 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004007/0.8966, allocations: 209.6 kB / 1.033 GB, free: 5.309 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000147/0.8968, allocations: 89.09 kB / 1.033 GB, free: 5.203 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005441/0.8973, allocations: 283.6 kB / 1.033 GB, free: 4.906 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=27): time 3.576e-06/0.8973, allocations: 0 / 1.033 GB, free: 4.906 MB / 0.7794 GB Notification: Performance of matching and sorting (n=28): time 0.001981/0.8993, allocations: 0.7844 MB / 1.034 GB, free: 4.094 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.218e-05/0.8994, allocations: 85.11 kB / 1.034 GB, free: 3.992 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002211/0.8996, allocations: 224.9 kB / 1.034 GB, free: 3.762 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.954e-05/0.8997, allocations: 29.7 kB / 1.034 GB, free: 3.727 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001081/0.8998, allocations: 168.4 kB / 1.034 GB, free: 3.559 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 9.113e-05/0.8999, allocations: 90.66 kB / 1.034 GB, free: 3.469 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.053e-05/0.8999, allocations: 4 kB / 1.034 GB, free: 3.465 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001364/0.9001, allocations: 342.8 kB / 1.035 GB, free: 3.121 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003807/0.9004, allocations: 176.2 kB / 1.035 GB, free: 2.949 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004413/0.9009, allocations: 249.3 kB / 1.035 GB, free: 2.676 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004425/0.9013, allocations: 237.8 kB / 1.035 GB, free: 2.438 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/0.9014, allocations: 4 kB / 1.035 GB, free: 2.434 MB / 0.7794 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001101/0.9025, allocations: 0.5598 MB / 1.036 GB, free: 1.859 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001223/0.9026, allocations: 179.5 kB / 1.036 GB, free: 1.645 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.558e-06/0.9026, allocations: 4 kB / 1.036 GB, free: 1.641 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002371/0.9029, allocations: 40.83 kB / 1.036 GB, free: 1.598 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003876/0.9033, allocations: 91.86 kB / 1.036 GB, free: 1.508 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001393/0.9047, allocations: 1.501 MB / 1.038 GB, free: 15.86 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003058/0.905, allocations: 51.86 kB / 1.038 GB, free: 15.81 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.989e-05/0.905, allocations: 11.95 kB / 1.038 GB, free: 15.8 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 7.554e-06/0.905, allocations: 4 kB / 1.038 GB, free: 15.8 MB / 0.795 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001016/0.9061, allocations: 0.5116 MB / 1.038 GB, free: 15.28 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.827e-06/0.9061, allocations: 0 / 1.038 GB, free: 15.28 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000125/0.9062, allocations: 44.81 kB / 1.038 GB, free: 15.23 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003522/0.9066, allocations: 88.03 kB / 1.038 GB, free: 15.14 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001138/0.9077, allocations: 1.485 MB / 1.04 GB, free: 13.52 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002782/0.908, allocations: 51.8 kB / 1.04 GB, free: 13.47 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.767e-05/0.908, allocations: 12 kB / 1.04 GB, free: 13.46 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.0002196/0.9083, allocations: 240.9 kB / 1.04 GB, free: 13.21 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.718e-05/0.9083, allocations: 27.77 kB / 1.04 GB, free: 13.19 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001022/0.9094, allocations: 0.4897 MB / 1.041 GB, free: 12.69 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.476e-06/0.9094, allocations: 4 kB / 1.041 GB, free: 12.68 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.9094, allocations: 4 kB / 1.041 GB, free: 12.68 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.971e-06/0.9094, allocations: 7.953 kB / 1.041 GB, free: 12.67 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006179/0.91, allocations: 0.5622 MB / 1.041 GB, free: 12.05 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.054e-05/0.91, allocations: 4 kB / 1.041 GB, free: 12.04 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003635/0.9104, allocations: 79.84 kB / 1.041 GB, free: 11.96 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001176/0.9105, allocations: 48.86 kB / 1.041 GB, free: 11.91 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.507e-05/0.9106, allocations: 7.953 kB / 1.041 GB, free: 11.91 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001051/0.9116, allocations: 1.397 MB / 1.043 GB, free: 10.38 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.9116, allocations: 7.938 kB / 1.043 GB, free: 10.37 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009206/0.9126, allocations: 0.5621 MB / 1.043 GB, free: 9.777 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001338/0.9127, allocations: 132.7 kB / 1.043 GB, free: 9.629 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.092e-05/0.9128, allocations: 11.94 kB / 1.043 GB, free: 9.617 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002742/0.913, allocations: 39.95 kB / 1.043 GB, free: 9.578 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.487e-05/0.9131, allocations: 31.95 kB / 1.043 GB, free: 9.547 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.373e-05/0.9132, allocations: 12 kB / 1.043 GB, free: 9.535 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0001529/0.9133, allocations: 176.5 kB / 1.044 GB, free: 9.363 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9133, allocations: 0 / 1.044 GB, free: 9.363 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0005838/0.9139, allocations: 128 kB / 1.044 GB, free: 9.238 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.000183/0.9141, allocations: 115.1 kB / 1.044 GB, free: 9.117 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001766/0.9159, allocations: 1.009 MB / 1.045 GB, free: 8.059 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.9159, allocations: 0 / 1.045 GB, free: 8.059 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.000577/0.9165, allocations: 346.7 kB / 1.045 GB, free: 7.707 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004279/0.9169, allocations: 50.27 kB / 1.045 GB, free: 7.66 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001198/0.9181, allocations: 0.741 MB / 1.046 GB, free: 6.887 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003616/0.9185, allocations: 0.7839 MB / 1.047 GB, free: 6.078 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002956/0.9188, allocations: 102.2 kB / 1.047 GB, free: 5.98 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.836e-05/0.9189, allocations: 23.44 kB / 1.047 GB, free: 5.957 MB / 0.795 GB Notification: Performance of SimCode: time 2.31e-07/0.9189, allocations: 0 / 1.047 GB, free: 5.957 MB / 0.795 GB Notification: Performance of Templates: time 0.008003/0.9269, allocations: 4.025 MB / 1.051 GB, free: 1.949 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.makefile (rm -f Buildings_10_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.sim & ./Buildings_10_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches