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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.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.007734/0.007734, allocations: 100.9 kB / 15.73 MB, free: 6.062 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.00205/0.00205, allocations: 195.3 kB / 16.67 MB, free: 5.973 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.384/1.384, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.737/2.737, allocations: 482.4 MB / 0.7548 GB, free: 6.883 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001871/0.001871, allocations: 64.45 kB / 1.083 GB, free: 13.92 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2877/0.2896, allocations: 162.2 MB / 1.241 GB, free: 9.324 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.005119/0.2948, allocations: 3.768 MB / 1.245 GB, free: 5.535 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.00274/0.2975, allocations: 1.777 MB / 1.247 GB, free: 3.75 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001623/0.2977, allocations: 23.88 kB / 1.247 GB, free: 3.727 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0008538/0.2986, allocations: 262.6 kB / 1.247 GB, free: 3.469 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0005764/0.2992, allocations: 302.4 kB / 1.247 GB, free: 3.172 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005059/0.2997, allocations: 251.1 kB / 1.248 GB, free: 2.93 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.000629/0.3003, allocations: 0.601 MB / 1.248 GB, free: 2.328 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004042/0.3007, allocations: 258.6 kB / 1.248 GB, free: 2.066 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002857/0.301, allocations: 227.1 kB / 1.249 GB, free: 1.844 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000316/0.3013, allocations: 242.9 kB / 1.249 GB, free: 1.605 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 4.9e-05/0.3014, allocations: 24 kB / 1.249 GB, free: 1.582 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000423/0.3018, allocations: 283.4 kB / 1.249 GB, free: 1.305 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001355/0.302, allocations: 115.6 kB / 1.249 GB, free: 1.191 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0002049/0.3022, allocations: 206.9 kB / 1.25 GB, free: 0.9883 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0006642/0.3029, allocations: 0.5916 MB / 1.25 GB, free: 404 kB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.3029, allocations: 0 / 1.25 GB, free: 404 kB / 0.9669 GB Notification: Performance of FrontEnd: time 1.253e-06/0.3029, allocations: 0 / 1.25 GB, free: 404 kB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.663e-06/0.3029, allocations: 0 / 1.25 GB, free: 404 kB / 0.9669 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.001127/0.304, allocations: 0.7512 MB / 1.251 GB, free: 15.59 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.768e-05/0.3041, allocations: 15.97 kB / 1.251 GB, free: 15.58 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.076e-05/0.3042, allocations: 74.7 kB / 1.251 GB, free: 15.5 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008699/0.305, allocations: 136.5 kB / 1.251 GB, free: 15.36 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005463/0.3056, allocations: 411.9 kB / 1.251 GB, free: 14.93 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.427e-05/0.3056, allocations: 21.03 kB / 1.251 GB, free: 14.91 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.497e-05/0.3057, allocations: 28.36 kB / 1.252 GB, free: 14.88 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008187/0.3065, allocations: 0.5547 MB / 1.252 GB, free: 14.25 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.689e-05/0.3065, allocations: 0 / 1.252 GB, free: 14.25 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.009e-05/0.3066, allocations: 20 kB / 1.252 GB, free: 14.23 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.292e-05/0.3066, allocations: 40.53 kB / 1.252 GB, free: 14.2 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007202/0.3074, allocations: 405.7 kB / 1.252 GB, free: 13.8 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002908/0.3103, allocations: 3.342 MB / 1.256 GB, free: 10.2 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006676/0.311, allocations: 338.4 kB / 1.256 GB, free: 9.863 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003146/0.3113, allocations: 184.7 kB / 1.256 GB, free: 9.68 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.593e-05/0.3113, allocations: 4 kB / 1.256 GB, free: 9.676 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.218e-05/0.3114, allocations: 34.5 kB / 1.256 GB, free: 9.633 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=26): time 1.443e-06/0.3114, allocations: 0 / 1.256 GB, free: 9.633 MB / 0.9825 GB Notification: Performance of matching and sorting (n=27): time 0.002058/0.3134, allocations: 1.064 MB / 1.257 GB, free: 8.5 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.083e-05/0.3135, allocations: 59.62 kB / 1.257 GB, free: 8.43 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003379/0.3138, allocations: 337.6 kB / 1.258 GB, free: 8.086 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.535e-05/0.3139, allocations: 29.7 kB / 1.258 GB, free: 8.051 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001709/0.314, allocations: 256.1 kB / 1.258 GB, free: 7.797 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 8.275e-05/0.3141, allocations: 103.2 kB / 1.258 GB, free: 7.695 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001171/0.3142, allocations: 78.08 kB / 1.258 GB, free: 7.613 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.000152/0.3144, allocations: 346.8 kB / 1.258 GB, free: 7.266 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002838/0.3147, allocations: 144.8 kB / 1.259 GB, free: 7.125 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003905/0.3151, allocations: 294.5 kB / 1.259 GB, free: 6.77 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007139/0.3158, allocations: 482.5 kB / 1.259 GB, free: 6.234 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.3158, allocations: 0 / 1.259 GB, free: 6.234 MB / 0.9825 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0009981/0.3168, allocations: 0.5585 MB / 1.26 GB, free: 5.66 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.647e-05/0.3169, allocations: 11.98 kB / 1.26 GB, free: 5.648 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.3169, allocations: 8.031 kB / 1.26 GB, free: 5.641 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002987/0.3172, allocations: 90.45 kB / 1.26 GB, free: 5.543 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003408/0.3175, allocations: 87.88 kB / 1.26 GB, free: 5.457 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.831e-05/0.3176, allocations: 15.88 kB / 1.26 GB, free: 5.441 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002488/0.3178, allocations: 23.97 kB / 1.26 GB, free: 5.418 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.166e-05/0.3178, allocations: 20 kB / 1.26 GB, free: 5.398 MB / 0.9825 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.0001799/0.318, allocations: 174.2 kB / 1.26 GB, free: 5.219 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.629e-05/0.3181, allocations: 39.77 kB / 1.26 GB, free: 5.18 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009052/0.319, allocations: 472.2 kB / 1.261 GB, free: 4.703 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/0.319, allocations: 4 kB / 1.261 GB, free: 4.699 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.672e-06/0.3191, allocations: 4 kB / 1.261 GB, free: 4.695 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.3191, allocations: 3.938 kB / 1.261 GB, free: 4.691 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001445/0.3205, allocations: 0.963 MB / 1.262 GB, free: 3.656 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.285e-06/0.3205, allocations: 4.031 kB / 1.262 GB, free: 3.652 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002417/0.3208, allocations: 55.95 kB / 1.262 GB, free: 3.598 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00024/0.321, allocations: 82.45 kB / 1.262 GB, free: 3.508 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.202e-05/0.321, allocations: 7.984 kB / 1.262 GB, free: 3.5 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.258e-06/0.3211, allocations: 4 kB / 1.262 GB, free: 3.496 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.3211, allocations: 0 / 1.262 GB, free: 3.496 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000854/0.3219, allocations: 0.5431 MB / 1.262 GB, free: 2.918 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001501/0.3221, allocations: 140.8 kB / 1.263 GB, free: 2.762 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.883e-05/0.3221, allocations: 8 kB / 1.263 GB, free: 2.754 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000223/0.3224, allocations: 27.91 kB / 1.263 GB, free: 2.727 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.386e-05/0.3224, allocations: 23.97 kB / 1.263 GB, free: 2.703 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.712e-05/0.3225, allocations: 7.938 kB / 1.263 GB, free: 2.695 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0002246/0.3227, allocations: 235.2 kB / 1.263 GB, free: 2.469 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.11e-07/0.3227, allocations: 0 / 1.263 GB, free: 2.469 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003893/0.3231, allocations: 88 kB / 1.263 GB, free: 2.383 MB / 0.9825 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.00117/0.3243, allocations: 1.1 MB / 1.264 GB, free: 1.234 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0008895/0.3252, allocations: 0.632 MB / 1.265 GB, free: 0.5391 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.3252, allocations: 0 / 1.265 GB, free: 0.5391 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.000475/0.3257, allocations: 437.8 kB / 1.265 GB, free: 48 kB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006892/0.3264, allocations: 120.3 kB / 1.265 GB, free: 15.93 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004697/0.3311, allocations: 3.739 MB / 1.269 GB, free: 11.96 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004274/0.3315, allocations: 0.8347 MB / 1.27 GB, free: 11.09 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0002219/0.3317, allocations: 83.34 kB / 1.27 GB, free: 11.01 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001835/0.3319, allocations: 127.4 kB / 1.27 GB, free: 10.89 MB / 0.9981 GB Notification: Performance of SimCode: time 2.61e-07/0.3319, allocations: 0 / 1.27 GB, free: 10.89 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03096/0.3629, allocations: 8.319 MB / 1.278 GB, free: 2.816 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.491/9.854, allocations: 3.938 kB / 1.278 GB, free: 2.812 MB / 0.9981 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 400 --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