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: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007463/0.0007462, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.004576/0.004576, allocations: 170 kB / 16.27 MB, free: 6.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.272/1.272, allocations: 223.3 MB / 240.3 MB, free: 5.34 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.445/2.445, allocations: 437.8 MB / 0.7121 GB, free: 6.941 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003186/0.0003186, allocations: 12 kB / 0.873 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5922/0.5925, allocations: 153.8 MB / 1.023 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource): time 0.003309/0.5958, allocations: 2.727 MB / 1.026 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.00251/0.5984, allocations: 1.71 MB / 1.027 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001099/0.5985, allocations: 4 kB / 1.027 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001581/0.5987, allocations: 35.72 kB / 1.028 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0004171/0.5991, allocations: 191.2 kB / 1.028 GB, free: 11.13 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005246/0.5996, allocations: 227.5 kB / 1.028 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0004375/0.6001, allocations: 0.4908 MB / 1.028 GB, free: 10.42 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007114/0.6008, allocations: 414.5 kB / 1.029 GB, free: 9.988 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001922/0.601, allocations: 135.5 kB / 1.029 GB, free: 9.855 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002678/0.6013, allocations: 163.4 kB / 1.029 GB, free: 9.695 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.254e-05/0.6013, allocations: 12 kB / 1.029 GB, free: 9.684 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004163/0.6018, allocations: 319.3 kB / 1.029 GB, free: 9.371 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 8.944e-05/0.6019, allocations: 83.72 kB / 1.029 GB, free: 9.289 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.00013/0.602, allocations: 149 kB / 1.03 GB, free: 9.137 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004515/0.6025, allocations: 468.7 kB / 1.03 GB, free: 8.68 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.6025, allocations: 0 / 1.03 GB, free: 8.68 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.603e-06/0.6025, allocations: 0 / 1.03 GB, free: 8.68 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.16e-06/0.6025, allocations: 0 / 1.03 GB, free: 8.68 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.001044/0.6035, allocations: 0.6058 MB / 1.031 GB, free: 8.02 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.819e-05/0.6036, allocations: 8.031 kB / 1.031 GB, free: 8.012 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.766e-05/0.6037, allocations: 62.7 kB / 1.031 GB, free: 7.941 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006591/0.6043, allocations: 96.47 kB / 1.031 GB, free: 7.848 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000287/0.6046, allocations: 275.7 kB / 1.031 GB, free: 7.539 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.859e-05/0.6046, allocations: 20.8 kB / 1.031 GB, free: 7.52 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.563e-05/0.6047, allocations: 24.38 kB / 1.031 GB, free: 7.496 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007268/0.6054, allocations: 430.7 kB / 1.032 GB, free: 7.051 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.295e-05/0.6055, allocations: 0 / 1.032 GB, free: 7.051 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.249e-05/0.6055, allocations: 8 kB / 1.032 GB, free: 7.043 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.187e-05/0.6056, allocations: 24.36 kB / 1.032 GB, free: 7.016 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008569/0.6064, allocations: 416.7 kB / 1.032 GB, free: 6.609 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001613/0.608, allocations: 1.619 MB / 1.034 GB, free: 4.863 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00113/0.6092, allocations: 497.6 kB / 1.034 GB, free: 4.359 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004261/0.6096, allocations: 213.6 kB / 1.034 GB, free: 4.145 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001296/0.6098, allocations: 81.11 kB / 1.034 GB, free: 4.047 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005253/0.6103, allocations: 283.6 kB / 1.035 GB, free: 3.75 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=27): time 1.563e-06/0.6103, allocations: 0 / 1.035 GB, free: 3.75 MB / 0.7794 GB Notification: Performance of matching and sorting (n=28): time 0.001807/0.6121, allocations: 0.7804 MB / 1.035 GB, free: 2.941 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.542e-05/0.6122, allocations: 89.05 kB / 1.035 GB, free: 2.836 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001978/0.6124, allocations: 225 kB / 1.036 GB, free: 2.602 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.121e-05/0.6124, allocations: 29.7 kB / 1.036 GB, free: 2.566 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001022/0.6125, allocations: 168.3 kB / 1.036 GB, free: 2.398 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 7.753e-05/0.6126, allocations: 86.75 kB / 1.036 GB, free: 2.312 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.989e-05/0.6127, allocations: 33.7 kB / 1.036 GB, free: 2.273 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001048/0.6128, allocations: 338.8 kB / 1.036 GB, free: 1.934 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004047/0.6132, allocations: 180.2 kB / 1.036 GB, free: 1.758 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004275/0.6136, allocations: 265.3 kB / 1.037 GB, free: 1.469 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008473/0.6145, allocations: 478.9 kB / 1.037 GB, free: 0.9648 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.6145, allocations: 0 / 1.037 GB, free: 0.9648 MB / 0.7794 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001093/0.6156, allocations: 0.5641 MB / 1.038 GB, free: 396 kB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 9.994e-05/0.6157, allocations: 183 kB / 1.038 GB, free: 172 kB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.6157, allocations: 4 kB / 1.038 GB, free: 168 kB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002083/0.6159, allocations: 40.77 kB / 1.038 GB, free: 124 kB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003852/0.6163, allocations: 95.86 kB / 1.038 GB, free: 28 kB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001251/0.6176, allocations: 1.509 MB / 1.039 GB, free: 14.38 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003227/0.6179, allocations: 51.8 kB / 1.04 GB, free: 14.33 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.063e-05/0.618, allocations: 16 kB / 1.04 GB, free: 14.31 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 6.082e-06/0.618, allocations: 4 kB / 1.04 GB, free: 14.31 MB / 0.795 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001031/0.619, allocations: 0.4982 MB / 1.04 GB, free: 13.8 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.996e-06/0.619, allocations: 0 / 1.04 GB, free: 13.8 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001246/0.6192, allocations: 48.75 kB / 1.04 GB, free: 13.75 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003482/0.6195, allocations: 88.03 kB / 1.04 GB, free: 13.66 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001059/0.6206, allocations: 1.485 MB / 1.042 GB, free: 12.04 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003077/0.6209, allocations: 55.83 kB / 1.042 GB, free: 11.99 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.365e-05/0.621, allocations: 8 kB / 1.042 GB, free: 11.98 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 (load.count,$PRE.load.count,load.T_start,$PRE.load.T_start,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002049/0.6212, allocations: 249.6 kB / 1.042 GB, free: 11.73 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.236e-05/0.6212, allocations: 23.72 kB / 1.042 GB, free: 11.7 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001051/0.6223, allocations: 489.9 kB / 1.042 GB, free: 11.21 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.6223, allocations: 12.08 kB / 1.042 GB, free: 11.2 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/0.6223, allocations: 0 / 1.042 GB, free: 11.2 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.304e-06/0.6223, allocations: 7.984 kB / 1.042 GB, free: 11.2 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006039/0.6229, allocations: 0.5622 MB / 1.043 GB, free: 10.57 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.6229, allocations: 0 / 1.043 GB, free: 10.57 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003688/0.6233, allocations: 87.94 kB / 1.043 GB, free: 10.48 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001123/0.6234, allocations: 40.83 kB / 1.043 GB, free: 10.44 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.137e-05/0.6235, allocations: 4 kB / 1.043 GB, free: 10.44 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009804/0.6244, allocations: 1.409 MB / 1.044 GB, free: 8.895 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.6245, allocations: 0 / 1.044 GB, free: 8.895 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009763/0.6254, allocations: 0.5699 MB / 1.045 GB, free: 8.297 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001241/0.6256, allocations: 136.7 kB / 1.045 GB, free: 8.145 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.847e-05/0.6256, allocations: 8 kB / 1.045 GB, free: 8.137 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003063/0.6259, allocations: 43.95 kB / 1.045 GB, free: 8.094 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.001e-05/0.626, allocations: 31.95 kB / 1.045 GB, free: 8.062 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.375e-05/0.6261, allocations: 15.94 kB / 1.045 GB, free: 8.047 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0001452/0.6262, allocations: 172.4 kB / 1.045 GB, free: 7.879 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.6e-07/0.6262, allocations: 0 / 1.045 GB, free: 7.879 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0005506/0.6268, allocations: 132 kB / 1.046 GB, free: 7.75 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001248/0.628, allocations: 1.12 MB / 1.047 GB, free: 6.594 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001719/0.6298, allocations: 1.012 MB / 1.048 GB, free: 5.531 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.6298, allocations: 0 / 1.048 GB, free: 5.531 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0005783/0.6304, allocations: 338.9 kB / 1.048 GB, free: 5.188 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004462/0.6308, allocations: 55.14 kB / 1.048 GB, free: 5.137 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004639/0.6355, allocations: 3.498 MB / 1.051 GB, free: 1.469 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003109/0.6358, allocations: 0.7918 MB / 1.052 GB, free: 0.6523 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002831/0.6361, allocations: 94.19 kB / 1.052 GB, free: 0.5625 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001597/0.6362, allocations: 92.27 kB / 1.052 GB, free: 484 kB / 0.795 GB Notification: Performance of SimCode: time 4.21e-07/0.6363, allocations: 4 kB / 1.052 GB, free: 480 kB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01851/0.6548, allocations: 6.575 MB / 1.059 GB, free: 10.11 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002227/0.655, allocations: 245.1 kB / 1.059 GB, free: 9.859 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.82/2.475, allocations: 0 / 1.059 GB, free: 9.859 MB / 0.8106 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Electrical.AC.OnePhase.Sources.Examples.VariablePowerSource_res.mat --tempDir=temp_Buildings_10_Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Electrical_AC_OnePhase_Sources_Examples_VariablePowerSource.fmu > 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/jenkins1/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