Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.Loads.Examples.VariableImpedance,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance,fileNamePrefix="Buildings_10_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.006848/0.006848, allocations: 100.8 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.001746/0.001746, allocations: 193 kB / 16.67 MB, free: 5.934 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.414/1.414, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.597/2.597, allocations: 437 MB / 0.7105 GB, free: 4.387 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.00195/0.00195, allocations: 71.83 kB / 1.018 GB, free: 9.918 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7066/0.7086, allocations: 151.6 MB / 1.166 GB, free: 3.781 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.005466/0.7141, allocations: 3.745 MB / 1.17 GB, free: 16 kB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.003048/0.7171, allocations: 1.796 MB / 1.172 GB, free: 14.21 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001625/0.7173, allocations: 11.94 kB / 1.172 GB, free: 14.2 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.000913/0.7182, allocations: 272.3 kB / 1.172 GB, free: 13.93 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.0006121/0.7189, allocations: 294.5 kB / 1.172 GB, free: 13.64 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005606/0.7194, allocations: 251.5 kB / 1.172 GB, free: 13.4 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0007519/0.7202, allocations: 0.6088 MB / 1.173 GB, free: 12.79 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004389/0.7207, allocations: 254.5 kB / 1.173 GB, free: 12.54 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003365/0.721, allocations: 239.1 kB / 1.173 GB, free: 12.3 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003927/0.7214, allocations: 231 kB / 1.174 GB, free: 12.07 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 5.263e-05/0.7215, allocations: 28 kB / 1.174 GB, free: 12.05 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004926/0.722, allocations: 275.4 kB / 1.174 GB, free: 11.78 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0001417/0.7221, allocations: 119.6 kB / 1.174 GB, free: 11.66 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0002246/0.7223, allocations: 210.9 kB / 1.174 GB, free: 11.45 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0007534/0.7231, allocations: 0.5987 MB / 1.175 GB, free: 10.86 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 4.369e-06/0.7231, allocations: 0 / 1.175 GB, free: 10.86 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.192e-06/0.7231, allocations: 4 kB / 1.175 GB, free: 10.85 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 8.456e-06/0.7231, allocations: 0 / 1.175 GB, free: 10.85 MB / 0.9044 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.001314/0.7245, allocations: 0.7473 MB / 1.176 GB, free: 10.05 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.944e-05/0.7245, allocations: 8.625 kB / 1.176 GB, free: 10.05 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.484e-05/0.7246, allocations: 78.7 kB / 1.176 GB, free: 9.961 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008782/0.7255, allocations: 140.4 kB / 1.176 GB, free: 9.824 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005635/0.7261, allocations: 403.9 kB / 1.176 GB, free: 9.391 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.294e-05/0.7261, allocations: 28.95 kB / 1.176 GB, free: 9.359 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.821e-05/0.7262, allocations: 28.38 kB / 1.176 GB, free: 9.332 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009506/0.7271, allocations: 0.5509 MB / 1.177 GB, free: 8.711 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.934e-05/0.7272, allocations: 7.984 kB / 1.177 GB, free: 8.703 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.437e-05/0.7272, allocations: 12 kB / 1.177 GB, free: 8.691 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.494e-05/0.7273, allocations: 40.55 kB / 1.177 GB, free: 8.652 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000749/0.728, allocations: 409.7 kB / 1.177 GB, free: 8.254 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003378/0.7314, allocations: 3.334 MB / 1.18 GB, free: 4.668 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006968/0.7321, allocations: 338.5 kB / 1.181 GB, free: 4.328 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003138/0.7325, allocations: 172.8 kB / 1.181 GB, free: 4.156 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.341e-05/0.7325, allocations: 4 kB / 1.181 GB, free: 4.152 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.663e-05/0.7325, allocations: 38.56 kB / 1.181 GB, free: 4.105 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=26): time 1.532e-06/0.7325, allocations: 4 kB / 1.181 GB, free: 4.102 MB / 0.9044 GB Notification: Performance of matching and sorting (n=27): time 0.002139/0.7347, allocations: 1.065 MB / 1.182 GB, free: 2.965 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.101e-05/0.7347, allocations: 51.64 kB / 1.182 GB, free: 2.902 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003873/0.7351, allocations: 345.6 kB / 1.182 GB, free: 2.555 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 3.124e-05/0.7352, allocations: 29.7 kB / 1.182 GB, free: 2.52 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001854/0.7354, allocations: 260 kB / 1.183 GB, free: 2.262 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 8.15e-05/0.7354, allocations: 99.16 kB / 1.183 GB, free: 2.164 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001178/0.7356, allocations: 74.09 kB / 1.183 GB, free: 2.086 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.000175/0.7358, allocations: 350.8 kB / 1.183 GB, free: 1.734 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002906/0.736, allocations: 148.8 kB / 1.183 GB, free: 1.59 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003987/0.7365, allocations: 286.5 kB / 1.184 GB, free: 1.246 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007114/0.7372, allocations: 490.4 kB / 1.184 GB, free: 0.6992 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.7372, allocations: 0 / 1.184 GB, free: 0.6992 MB / 0.9044 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001152/0.7383, allocations: 0.5618 MB / 1.185 GB, free: 124 kB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.862e-05/0.7384, allocations: 8 kB / 1.185 GB, free: 116 kB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.7384, allocations: 7.938 kB / 1.185 GB, free: 108 kB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003189/0.7387, allocations: 91.02 kB / 1.185 GB, free: 8 kB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003604/0.7391, allocations: 87.88 kB / 1.185 GB, free: 15.92 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.384e-05/0.7391, allocations: 11.88 kB / 1.185 GB, free: 15.91 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002501/0.7394, allocations: 31.97 kB / 1.185 GB, free: 15.88 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.306e-05/0.7394, allocations: 16 kB / 1.185 GB, free: 15.86 MB / 0.92 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.0001979/0.7396, allocations: 185.5 kB / 1.185 GB, free: 15.67 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.96e-05/0.7397, allocations: 43.77 kB / 1.185 GB, free: 15.63 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000925/0.7406, allocations: 464 kB / 1.186 GB, free: 15.16 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-06/0.7406, allocations: 0 / 1.186 GB, free: 15.16 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.7406, allocations: 4 kB / 1.186 GB, free: 15.16 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.7407, allocations: 3.984 kB / 1.186 GB, free: 15.15 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001514/0.7422, allocations: 0.9626 MB / 1.186 GB, free: 14.12 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.619e-06/0.7422, allocations: 4 kB / 1.186 GB, free: 14.11 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002415/0.7424, allocations: 51.89 kB / 1.187 GB, free: 14.06 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002642/0.7427, allocations: 86.59 kB / 1.187 GB, free: 13.97 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.159e-05/0.7427, allocations: 8 kB / 1.187 GB, free: 13.96 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.434e-06/0.7428, allocations: 0 / 1.187 GB, free: 13.96 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.7428, allocations: 4 kB / 1.187 GB, free: 13.96 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009332/0.7437, allocations: 0.5396 MB / 1.187 GB, free: 13.38 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001627/0.7439, allocations: 148.8 kB / 1.187 GB, free: 13.22 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.768e-05/0.7439, allocations: 4 kB / 1.187 GB, free: 13.21 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000231/0.7442, allocations: 27.91 kB / 1.187 GB, free: 13.19 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.362e-05/0.7442, allocations: 19.91 kB / 1.187 GB, free: 13.17 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.105e-05/0.7443, allocations: 12 kB / 1.187 GB, free: 13.16 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0002376/0.7445, allocations: 235.2 kB / 1.188 GB, free: 12.93 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7445, allocations: 0 / 1.188 GB, free: 12.93 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.000403/0.7449, allocations: 88 kB / 1.188 GB, free: 12.84 MB / 0.92 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.001359/0.7463, allocations: 1.088 MB / 1.189 GB, free: 11.71 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.000957/0.7473, allocations: 0.6344 MB / 1.189 GB, free: 11.01 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.7473, allocations: 0 / 1.189 GB, free: 11.01 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0005088/0.7478, allocations: 438.8 kB / 1.19 GB, free: 10.52 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006976/0.7485, allocations: 126.4 kB / 1.19 GB, free: 10.4 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005125/0.7536, allocations: 3.731 MB / 1.194 GB, free: 6.43 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004599/0.7541, allocations: 0.8269 MB / 1.194 GB, free: 5.578 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.0002446/0.7544, allocations: 83.33 kB / 1.194 GB, free: 5.496 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002085/0.7546, allocations: 127.4 kB / 1.195 GB, free: 5.371 MB / 0.92 GB Notification: Performance of SimCode: time 5.21e-07/0.7546, allocations: 0 / 1.195 GB, free: 5.371 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03352/0.7881, allocations: 8.316 MB / 1.203 GB, free: 13.27 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.39/11.18, allocations: 5.328 kB / 1.203 GB, free: 13.27 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance.fmu > Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches