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.007501/0.007501, allocations: 101.9 kB / 15.73 MB, free: 6.496 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.001742/0.001742, allocations: 198.9 kB / 16.68 MB, free: 6.375 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.307/1.307, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.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.481/2.481, allocations: 437 MB / 0.7105 GB, free: 5.004 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001243, allocations: 59.91 kB / 1.018 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2684/0.2696, allocations: 151.6 MB / 1.166 GB, free: 7.336 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.004966/0.2746, allocations: 3.749 MB / 1.17 GB, free: 3.559 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.002899/0.2775, allocations: 1.797 MB / 1.172 GB, free: 1.754 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002332/0.2778, allocations: 15.88 kB / 1.172 GB, free: 1.738 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0008504/0.2787, allocations: 270.6 kB / 1.172 GB, free: 1.473 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.000682/0.2794, allocations: 306.5 kB / 1.172 GB, free: 1.172 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005386/0.2799, allocations: 247.4 kB / 1.172 GB, free: 0.9297 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0005944/0.2805, allocations: 0.6088 MB / 1.173 GB, free: 324 kB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003944/0.2809, allocations: 262.5 kB / 1.173 GB, free: 60 kB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003381/0.2813, allocations: 243.1 kB / 1.173 GB, free: 15.82 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002924/0.2816, allocations: 238.9 kB / 1.174 GB, free: 15.59 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 4.57e-05/0.2816, allocations: 24 kB / 1.174 GB, free: 15.56 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004194/0.2821, allocations: 271.4 kB / 1.174 GB, free: 15.3 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001261/0.2822, allocations: 123.6 kB / 1.174 GB, free: 15.18 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001908/0.2824, allocations: 206.9 kB / 1.174 GB, free: 14.97 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0006325/0.283, allocations: 0.5955 MB / 1.175 GB, free: 14.38 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.2831, allocations: 0 / 1.175 GB, free: 14.38 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.583e-06/0.2831, allocations: 0 / 1.175 GB, free: 14.38 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 8.887e-06/0.2831, allocations: 0 / 1.175 GB, free: 14.38 MB / 0.9356 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.001118/0.2842, allocations: 0.7551 MB / 1.176 GB, free: 13.57 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.786e-05/0.2842, allocations: 12.03 kB / 1.176 GB, free: 13.56 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.213e-05/0.2843, allocations: 70.72 kB / 1.176 GB, free: 13.48 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008743/0.2852, allocations: 136.5 kB / 1.176 GB, free: 13.35 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005843/0.2858, allocations: 407.9 kB / 1.176 GB, free: 12.91 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.285e-05/0.2858, allocations: 21.03 kB / 1.176 GB, free: 12.89 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.11e-05/0.2859, allocations: 32.36 kB / 1.176 GB, free: 12.86 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007526/0.2867, allocations: 0.5547 MB / 1.177 GB, free: 12.23 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.638e-05/0.2867, allocations: 0 / 1.177 GB, free: 12.23 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.538e-05/0.2867, allocations: 19.98 kB / 1.177 GB, free: 12.21 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.985e-05/0.2868, allocations: 44.53 kB / 1.177 GB, free: 12.17 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007074/0.2875, allocations: 409.7 kB / 1.177 GB, free: 11.77 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00282/0.2904, allocations: 3.342 MB / 1.18 GB, free: 8.18 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006039/0.291, allocations: 330.5 kB / 1.181 GB, free: 7.848 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002784/0.2913, allocations: 180.7 kB / 1.181 GB, free: 7.668 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.25e-05/0.2913, allocations: 3.938 kB / 1.181 GB, free: 7.664 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.842e-05/0.2913, allocations: 38.56 kB / 1.181 GB, free: 7.617 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=26): time 1.403e-06/0.2913, allocations: 0 / 1.181 GB, free: 7.617 MB / 0.9356 GB Notification: Performance of matching and sorting (n=27): time 0.001892/0.2932, allocations: 1.064 MB / 1.182 GB, free: 6.484 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.14e-05/0.2933, allocations: 55.64 kB / 1.182 GB, free: 6.418 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002902/0.2936, allocations: 333.6 kB / 1.182 GB, free: 6.082 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.272e-05/0.2936, allocations: 29.7 kB / 1.182 GB, free: 6.047 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001391/0.2937, allocations: 256 kB / 1.183 GB, free: 5.789 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 6.603e-05/0.2938, allocations: 103.1 kB / 1.183 GB, free: 5.688 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001064/0.2939, allocations: 86.08 kB / 1.183 GB, free: 5.598 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001186/0.2941, allocations: 346.8 kB / 1.183 GB, free: 5.25 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002618/0.2943, allocations: 148.7 kB / 1.183 GB, free: 5.105 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003247/0.2947, allocations: 290.5 kB / 1.184 GB, free: 4.754 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006154/0.2953, allocations: 487.6 kB / 1.184 GB, free: 4.215 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.2953, allocations: 0 / 1.184 GB, free: 4.215 MB / 0.9356 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0009057/0.2962, allocations: 0.5579 MB / 1.185 GB, free: 3.641 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.738e-05/0.2962, allocations: 8 kB / 1.185 GB, free: 3.633 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.2962, allocations: 4 kB / 1.185 GB, free: 3.629 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002885/0.2965, allocations: 99.03 kB / 1.185 GB, free: 3.523 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003224/0.2969, allocations: 83.88 kB / 1.185 GB, free: 3.441 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.363e-05/0.2969, allocations: 15.88 kB / 1.185 GB, free: 3.426 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002542/0.2972, allocations: 27.97 kB / 1.185 GB, free: 3.398 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.193e-05/0.2972, allocations: 20 kB / 1.185 GB, free: 3.379 MB / 0.9356 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.0001562/0.2974, allocations: 169.7 kB / 1.185 GB, free: 3.203 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.531e-05/0.2974, allocations: 43.75 kB / 1.185 GB, free: 3.16 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008187/0.2982, allocations: 467.9 kB / 1.186 GB, free: 2.688 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.76e-06/0.2983, allocations: 4 kB / 1.186 GB, free: 2.684 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.2983, allocations: 0 / 1.186 GB, free: 2.684 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.2983, allocations: 3.984 kB / 1.186 GB, free: 2.68 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001319/0.2996, allocations: 0.9637 MB / 1.186 GB, free: 1.641 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.564e-06/0.2996, allocations: 0 / 1.186 GB, free: 1.641 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002346/0.2999, allocations: 59.89 kB / 1.187 GB, free: 1.582 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002235/0.3001, allocations: 82.61 kB / 1.187 GB, free: 1.492 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.887e-05/0.3001, allocations: 4 kB / 1.187 GB, free: 1.488 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.3001, allocations: 4 kB / 1.187 GB, free: 1.484 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.3001, allocations: 0 / 1.187 GB, free: 1.484 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007538/0.3009, allocations: 0.5495 MB / 1.187 GB, free: 0.9023 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001597/0.3011, allocations: 144.8 kB / 1.187 GB, free: 0.7422 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.525e-05/0.3011, allocations: 7.984 kB / 1.187 GB, free: 0.7344 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002175/0.3014, allocations: 23.92 kB / 1.187 GB, free: 0.7109 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.406e-05/0.3014, allocations: 31.89 kB / 1.187 GB, free: 0.6797 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.738e-05/0.3015, allocations: 8 kB / 1.187 GB, free: 0.6719 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001979/0.3017, allocations: 235.2 kB / 1.188 GB, free: 456 kB / 0.9356 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3017, allocations: 0 / 1.188 GB, free: 456 kB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003912/0.3021, allocations: 84 kB / 1.188 GB, free: 372 kB / 0.9356 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.001036/0.3031, allocations: 1.092 MB / 1.189 GB, free: 15.22 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0008039/0.3039, allocations: 0.6303 MB / 1.189 GB, free: 14.53 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.3039, allocations: 5.25 kB / 1.189 GB, free: 14.52 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0004245/0.3044, allocations: 441.8 kB / 1.19 GB, free: 14.03 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006609/0.305, allocations: 128.5 kB / 1.19 GB, free: 13.91 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004387/0.3094, allocations: 3.731 MB / 1.194 GB, free: 9.945 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003677/0.3098, allocations: 0.823 MB / 1.194 GB, free: 9.098 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0002135/0.31, allocations: 79.34 kB / 1.194 GB, free: 9.02 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001714/0.3102, allocations: 127.4 kB / 1.195 GB, free: 8.895 MB / 0.9512 GB Notification: Performance of SimCode: time 4.81e-07/0.3102, allocations: 0 / 1.195 GB, free: 8.895 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0262/0.3364, allocations: 8.305 MB / 1.203 GB, free: 0.8008 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.817/10.15, allocations: 12 kB / 1.203 GB, free: 0.7891 MB / 0.9512 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