Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance",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.00418/0.00418, allocations: 96.62 kB / 15.73 MB, free: 6.016 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.001026/0.001026, allocations: 192 kB / 16.67 MB, free: 5.926 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.262/1.262, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.465/2.465, allocations: 469.4 MB / 0.7422 GB, free: 3.586 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001858/0.001858, allocations: 63.91 kB / 1.064 GB, free: 14.29 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.745/0.7469, allocations: 159.1 MB / 1.22 GB, free: 2.289 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.005046/0.752, allocations: 3.762 MB / 1.223 GB, free: 14.51 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.002804/0.7548, allocations: 1.796 MB / 1.225 GB, free: 12.7 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002935/0.7551, allocations: 11.94 kB / 1.225 GB, free: 12.69 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0008789/0.756, allocations: 266.5 kB / 1.225 GB, free: 12.43 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0007089/0.7568, allocations: 302.5 kB / 1.226 GB, free: 12.13 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005789/0.7574, allocations: 254.8 kB / 1.226 GB, free: 11.89 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0006668/0.758, allocations: 0.6127 MB / 1.227 GB, free: 11.27 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004229/0.7585, allocations: 254.6 kB / 1.227 GB, free: 11.02 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00036/0.7588, allocations: 243 kB / 1.227 GB, free: 10.78 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003241/0.7592, allocations: 235 kB / 1.227 GB, free: 10.55 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 5.768e-05/0.7592, allocations: 28 kB / 1.227 GB, free: 10.52 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004368/0.7597, allocations: 275.4 kB / 1.228 GB, free: 10.25 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0001327/0.7598, allocations: 119.6 kB / 1.228 GB, free: 10.13 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0002175/0.76, allocations: 210.9 kB / 1.228 GB, free: 9.926 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0006943/0.7607, allocations: 0.5949 MB / 1.228 GB, free: 9.332 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.7608, allocations: 0 / 1.228 GB, free: 9.332 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.263e-06/0.7608, allocations: 0 / 1.228 GB, free: 9.332 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.443e-05/0.7608, allocations: 0 / 1.228 GB, free: 9.332 MB / 0.9512 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001191/0.762, allocations: 0.7435 MB / 1.229 GB, free: 8.539 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.859e-05/0.762, allocations: 8.625 kB / 1.229 GB, free: 8.531 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.48e-05/0.7621, allocations: 78.7 kB / 1.229 GB, free: 8.445 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008925/0.763, allocations: 144.4 kB / 1.229 GB, free: 8.305 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005758/0.7636, allocations: 411.9 kB / 1.23 GB, free: 7.863 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.078e-05/0.7636, allocations: 21.03 kB / 1.23 GB, free: 7.844 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.466e-05/0.7637, allocations: 28.38 kB / 1.23 GB, free: 7.816 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007641/0.7645, allocations: 0.5548 MB / 1.23 GB, free: 7.191 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.773e-05/0.7645, allocations: 0 / 1.23 GB, free: 7.191 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.703e-05/0.7645, allocations: 12 kB / 1.23 GB, free: 7.18 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.637e-05/0.7646, allocations: 52.47 kB / 1.23 GB, free: 7.129 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000668/0.7653, allocations: 397.8 kB / 1.231 GB, free: 6.742 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00267/0.768, allocations: 3.342 MB / 1.234 GB, free: 3.148 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006325/0.7686, allocations: 342.4 kB / 1.234 GB, free: 2.805 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00028/0.7689, allocations: 180.8 kB / 1.235 GB, free: 2.625 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.958e-05/0.7689, allocations: 0 / 1.235 GB, free: 2.625 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.985e-05/0.769, allocations: 34.56 kB / 1.235 GB, free: 2.582 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=26): time 1.152e-06/0.769, allocations: 0 / 1.235 GB, free: 2.582 MB / 0.9512 GB Notification: Performance of matching and sorting (n=27): time 0.001914/0.7709, allocations: 1.067 MB / 1.236 GB, free: 1.441 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.146e-05/0.7709, allocations: 55.58 kB / 1.236 GB, free: 1.375 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003112/0.7712, allocations: 349.5 kB / 1.236 GB, free: 1.023 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.277e-05/0.7713, allocations: 29.7 kB / 1.236 GB, free: 0.9883 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001431/0.7714, allocations: 252.1 kB / 1.236 GB, free: 0.7383 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 6.955e-05/0.7715, allocations: 103.2 kB / 1.236 GB, free: 0.6367 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001044/0.7716, allocations: 78.08 kB / 1.236 GB, free: 0.5547 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001069/0.7717, allocations: 346.8 kB / 1.237 GB, free: 212 kB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002584/0.772, allocations: 144.8 kB / 1.237 GB, free: 68 kB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003379/0.7723, allocations: 294.5 kB / 1.237 GB, free: 15.71 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006248/0.773, allocations: 478.5 kB / 1.238 GB, free: 15.18 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.773, allocations: 0 / 1.238 GB, free: 15.18 MB / 0.9669 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0009542/0.7739, allocations: 0.5661 MB / 1.238 GB, free: 14.6 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/0.774, allocations: 8 kB / 1.238 GB, free: 14.59 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/0.774, allocations: 4 kB / 1.238 GB, free: 14.59 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002949/0.7743, allocations: 90.5 kB / 1.238 GB, free: 14.49 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003268/0.7746, allocations: 87.88 kB / 1.238 GB, free: 14.41 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.483e-05/0.7747, allocations: 15.88 kB / 1.238 GB, free: 14.39 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002561/0.7749, allocations: 32.06 kB / 1.238 GB, free: 14.36 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.009e-05/0.775, allocations: 20 kB / 1.238 GB, free: 14.34 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 3 systems {(2,100.0%), (2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000166/0.7751, allocations: 177.9 kB / 1.239 GB, free: 14.16 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.652e-05/0.7752, allocations: 39.77 kB / 1.239 GB, free: 14.12 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008259/0.776, allocations: 472.2 kB / 1.239 GB, free: 13.64 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.553e-06/0.776, allocations: 4 kB / 1.239 GB, free: 13.64 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.7761, allocations: 0 / 1.239 GB, free: 13.64 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.7761, allocations: 0 / 1.239 GB, free: 13.64 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001364/0.7774, allocations: 0.9598 MB / 1.24 GB, free: 12.6 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.7775, allocations: 0 / 1.24 GB, free: 12.6 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000236/0.7777, allocations: 55.89 kB / 1.24 GB, free: 12.55 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002507/0.778, allocations: 82.52 kB / 1.24 GB, free: 12.46 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.104e-05/0.778, allocations: 4 kB / 1.24 GB, free: 12.45 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.947e-06/0.778, allocations: 4 kB / 1.24 GB, free: 12.45 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.778, allocations: 4.094 kB / 1.24 GB, free: 12.45 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007694/0.7788, allocations: 0.5392 MB / 1.241 GB, free: 11.87 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000156/0.7789, allocations: 152.7 kB / 1.241 GB, free: 11.7 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.941e-05/0.779, allocations: 4 kB / 1.241 GB, free: 11.7 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002239/0.7792, allocations: 27.91 kB / 1.241 GB, free: 11.67 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.293e-05/0.7793, allocations: 23.91 kB / 1.241 GB, free: 11.65 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.432e-05/0.7793, allocations: 8 kB / 1.241 GB, free: 11.64 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0002039/0.7795, allocations: 235.2 kB / 1.241 GB, free: 11.41 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7795, allocations: 0 / 1.241 GB, free: 11.41 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003957/0.7799, allocations: 88 kB / 1.241 GB, free: 11.33 MB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 3 systems {(2,100.0%), (2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001013/0.781, allocations: 1.092 MB / 1.242 GB, free: 10.19 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0008463/0.7818, allocations: 0.636 MB / 1.243 GB, free: 9.488 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.7818, allocations: 0 / 1.243 GB, free: 9.488 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0004249/0.7823, allocations: 437.6 kB / 1.243 GB, free: 8.996 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006839/0.783, allocations: 122.8 kB / 1.243 GB, free: 8.879 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004462/0.7874, allocations: 3.747 MB / 1.247 GB, free: 4.902 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003952/0.7878, allocations: 0.8308 MB / 1.248 GB, free: 4.047 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.0002479/0.7881, allocations: 83.34 kB / 1.248 GB, free: 3.965 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001784/0.7883, allocations: 127.4 kB / 1.248 GB, free: 3.844 MB / 0.9669 GB Notification: Performance of SimCode: time 4.21e-07/0.7883, allocations: 0 / 1.248 GB, free: 3.844 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02584/0.8141, allocations: 8.312 MB / 1.256 GB, free: 11.77 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.279/10.09, allocations: 17.34 kB / 1.256 GB, free: 11.76 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance.fmu > Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches