Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.Loads.Examples.VariableImpedance,fileNamePrefix="Buildings_11_Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance,fileNamePrefix="Buildings_11_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.007474/0.007474, allocations: 97.05 kB / 15.73 MB, free: 5.547 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.002137/0.002137, allocations: 192 kB / 16.67 MB, free: 5.48 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.385/1.385, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.722/2.722, allocations: 469.8 MB / 0.7425 GB, free: 3.344 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001947/0.001947, allocations: 63.89 kB / 1.065 GB, free: 14.06 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6659/0.6679, allocations: 159.1 MB / 1.22 GB, free: 2 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.005264/0.6732, allocations: 3.76 MB / 1.224 GB, free: 14.22 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.002881/0.6761, allocations: 1.792 MB / 1.226 GB, free: 12.42 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001707/0.6763, allocations: 19.88 kB / 1.226 GB, free: 12.4 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0008395/0.6771, allocations: 262.7 kB / 1.226 GB, free: 12.14 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0005885/0.6777, allocations: 294.5 kB / 1.226 GB, free: 11.86 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005223/0.6783, allocations: 247.3 kB / 1.226 GB, free: 11.61 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0006602/0.6789, allocations: 0.6088 MB / 1.227 GB, free: 11 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004164/0.6794, allocations: 250.6 kB / 1.227 GB, free: 10.75 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003106/0.6797, allocations: 239 kB / 1.227 GB, free: 10.52 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003258/0.68, allocations: 231 kB / 1.228 GB, free: 10.29 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 5.295e-05/0.6801, allocations: 28 kB / 1.228 GB, free: 10.26 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004369/0.6805, allocations: 275.4 kB / 1.228 GB, free: 9.992 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0001351/0.6807, allocations: 115.6 kB / 1.228 GB, free: 9.879 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0002257/0.6809, allocations: 218.8 kB / 1.228 GB, free: 9.664 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0007049/0.6816, allocations: 0.591 MB / 1.229 GB, free: 9.074 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.6816, allocations: 0 / 1.229 GB, free: 9.074 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.403e-06/0.6816, allocations: 0 / 1.229 GB, free: 9.074 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 7.114e-06/0.6817, allocations: 0 / 1.229 GB, free: 9.074 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.001157/0.6828, allocations: 0.7474 MB / 1.23 GB, free: 8.277 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.491e-05/0.6829, allocations: 8.031 kB / 1.23 GB, free: 8.27 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.045e-05/0.6829, allocations: 70.72 kB / 1.23 GB, free: 8.191 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009051/0.6839, allocations: 144.4 kB / 1.23 GB, free: 8.051 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005831/0.6844, allocations: 415.8 kB / 1.23 GB, free: 7.605 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.537e-05/0.6845, allocations: 21.03 kB / 1.23 GB, free: 7.586 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.973e-05/0.6845, allocations: 32.36 kB / 1.23 GB, free: 7.555 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008496/0.6854, allocations: 0.5587 MB / 1.231 GB, free: 6.922 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.837e-05/0.6854, allocations: 3.938 kB / 1.231 GB, free: 6.918 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.495e-05/0.6855, allocations: 12 kB / 1.231 GB, free: 6.906 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.855e-05/0.6855, allocations: 44.53 kB / 1.231 GB, free: 6.863 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007361/0.6863, allocations: 397.8 kB / 1.231 GB, free: 6.477 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003103/0.6894, allocations: 3.342 MB / 1.234 GB, free: 2.883 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006993/0.6901, allocations: 338.4 kB / 1.235 GB, free: 2.543 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003273/0.6905, allocations: 180.8 kB / 1.235 GB, free: 2.363 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 2.252e-05/0.6905, allocations: 0 / 1.235 GB, free: 2.363 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.905e-05/0.6905, allocations: 38.55 kB / 1.235 GB, free: 2.316 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=26): time 1.673e-06/0.6905, allocations: 0 / 1.235 GB, free: 2.316 MB / 0.9512 GB Notification: Performance of matching and sorting (n=27): time 0.002165/0.6927, allocations: 1.074 MB / 1.236 GB, free: 1.172 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.904e-05/0.6928, allocations: 51.64 kB / 1.236 GB, free: 1.109 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003645/0.6931, allocations: 345.6 kB / 1.236 GB, free: 0.7617 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.652e-05/0.6932, allocations: 29.7 kB / 1.236 GB, free: 0.7266 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001822/0.6933, allocations: 252.1 kB / 1.237 GB, free: 488 kB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 8.546e-05/0.6934, allocations: 103.2 kB / 1.237 GB, free: 384 kB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001222/0.6936, allocations: 74.09 kB / 1.237 GB, free: 304 kB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001791/0.6938, allocations: 346.8 kB / 1.237 GB, free: 15.95 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002996/0.6941, allocations: 144.8 kB / 1.237 GB, free: 15.81 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004093/0.6945, allocations: 292.4 kB / 1.238 GB, free: 15.46 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007395/0.6952, allocations: 482.5 kB / 1.238 GB, free: 14.93 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.967e-06/0.6952, allocations: 4 kB / 1.238 GB, free: 14.92 MB / 0.9669 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001065/0.6963, allocations: 0.5739 MB / 1.239 GB, free: 14.33 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.698e-05/0.6963, allocations: 8 kB / 1.239 GB, free: 14.32 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.6964, allocations: 4 kB / 1.239 GB, free: 14.32 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003193/0.6967, allocations: 82.52 kB / 1.239 GB, free: 14.23 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003642/0.6971, allocations: 91.81 kB / 1.239 GB, free: 14.14 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.453e-05/0.6971, allocations: 15.88 kB / 1.239 GB, free: 14.12 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002608/0.6973, allocations: 28.06 kB / 1.239 GB, free: 14.1 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.225e-05/0.6974, allocations: 20 kB / 1.239 GB, free: 14.08 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.0002018/0.6976, allocations: 177.6 kB / 1.239 GB, free: 13.89 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.123e-05/0.6977, allocations: 39.77 kB / 1.239 GB, free: 13.86 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009432/0.6986, allocations: 464.2 kB / 1.24 GB, free: 13.38 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.79e-06/0.6986, allocations: 4 kB / 1.24 GB, free: 13.38 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.6986, allocations: 3.938 kB / 1.24 GB, free: 13.38 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.666e-06/0.6987, allocations: 3.984 kB / 1.24 GB, free: 13.37 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001512/0.7002, allocations: 0.9611 MB / 1.24 GB, free: 12.34 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.7002, allocations: 0 / 1.24 GB, free: 12.34 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002508/0.7005, allocations: 51.89 kB / 1.241 GB, free: 12.29 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002533/0.7007, allocations: 78.5 kB / 1.241 GB, free: 12.2 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.05e-05/0.7007, allocations: 8 kB / 1.241 GB, free: 12.19 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.162e-06/0.7008, allocations: 4 kB / 1.241 GB, free: 12.19 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.7008, allocations: 96 / 1.241 GB, free: 12.19 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008917/0.7017, allocations: 0.551 MB / 1.241 GB, free: 11.6 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001554/0.7018, allocations: 148.8 kB / 1.241 GB, free: 11.44 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.94e-05/0.7019, allocations: 4 kB / 1.241 GB, free: 11.43 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000231/0.7021, allocations: 27.91 kB / 1.241 GB, free: 11.41 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.481e-05/0.7022, allocations: 23.91 kB / 1.241 GB, free: 11.38 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.822e-05/0.7022, allocations: 8 kB / 1.241 GB, free: 11.38 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0002413/0.7025, allocations: 235.2 kB / 1.242 GB, free: 11.15 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.31e-07/0.7025, allocations: 0 / 1.242 GB, free: 11.15 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0004202/0.7029, allocations: 88 kB / 1.242 GB, free: 11.06 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.001231/0.7042, allocations: 1.094 MB / 1.243 GB, free: 9.922 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0009443/0.7051, allocations: 0.6353 MB / 1.243 GB, free: 9.223 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.7051, allocations: 0 / 1.243 GB, free: 9.223 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0004927/0.7056, allocations: 433.7 kB / 1.244 GB, free: 8.734 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007187/0.7063, allocations: 132.8 kB / 1.244 GB, free: 8.605 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005041/0.7114, allocations: 3.737 MB / 1.248 GB, free: 4.629 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004843/0.7119, allocations: 0.8307 MB / 1.248 GB, free: 3.77 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.0002554/0.7122, allocations: 79.36 kB / 1.248 GB, free: 3.691 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002019/0.7124, allocations: 127.4 kB / 1.249 GB, free: 3.57 MB / 0.9669 GB Notification: Performance of SimCode: time 2.385e-06/0.7124, allocations: 0 / 1.249 GB, free: 3.57 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03215/0.7445, allocations: 8.313 MB / 1.257 GB, free: 11.48 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.867/10.61, allocations: 11.66 kB / 1.257 GB, free: 11.46 MB / 0.9825 GB (rm -f Buildings_11_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; mkfifo Buildings_11_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; head -c 1048576 < Buildings_11_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe >> ../files/Buildings_11_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_11_Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance.fmu > Buildings_11_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches