Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance,fileNamePrefix="Buildings_9_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.005134/0.005134, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.001172/0.001172, allocations: 195.9 kB / 16.67 MB, free: 5.52 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.334/1.334, allocations: 222.9 MB / 240.4 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.182/2.182, allocations: 390.2 MB / 0.6648 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001279/0.001279, allocations: 63.89 kB / 0.9504 GB, free: 8.152 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7809/0.7822, allocations: 140.4 MB / 1.087 GB, free: 5.273 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.004351/0.7866, allocations: 3.747 MB / 1.091 GB, free: 2.68 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002487/0.7891, allocations: 1.793 MB / 1.093 GB, free: 1.449 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002051/0.7893, allocations: 17.94 kB / 1.093 GB, free: 1.441 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0007972/0.7901, allocations: 264.8 kB / 1.093 GB, free: 1.281 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0005689/0.7907, allocations: 297 kB / 1.093 GB, free: 1.113 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005562/0.7913, allocations: 253 kB / 1.094 GB, free: 0.9922 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0005972/0.7919, allocations: 0.6021 MB / 1.094 GB, free: 0.7109 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004015/0.7923, allocations: 258.7 kB / 1.094 GB, free: 0.5938 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003207/0.7926, allocations: 244.3 kB / 1.095 GB, free: 496 kB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003047/0.7929, allocations: 228.1 kB / 1.095 GB, free: 396 kB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 5.225e-05/0.793, allocations: 26.47 kB / 1.095 GB, free: 396 kB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004861/0.7935, allocations: 270.2 kB / 1.095 GB, free: 304 kB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001466/0.7937, allocations: 126.8 kB / 1.095 GB, free: 244 kB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002088/0.7939, allocations: 210 kB / 1.096 GB, free: 116 kB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0007414/0.7946, allocations: 0.5945 MB / 1.096 GB, free: 15.89 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.7946, allocations: 0 / 1.096 GB, free: 15.89 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.613e-06/0.7946, allocations: 0.6094 kB / 1.096 GB, free: 15.89 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 1.143e-05/0.7947, allocations: 5.062 kB / 1.096 GB, free: 15.89 MB / 0.8731 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.001193/0.7959, allocations: 0.7288 MB / 1.097 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 3.942e-05/0.7959, allocations: 14.16 kB / 1.097 GB, free: 15.31 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.059e-05/0.796, allocations: 67.59 kB / 1.097 GB, free: 15.26 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009183/0.7969, allocations: 141.6 kB / 1.097 GB, free: 15.22 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005953/0.7975, allocations: 405.6 kB / 1.097 GB, free: 14.92 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.625e-05/0.7976, allocations: 20.62 kB / 1.097 GB, free: 14.91 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.302e-05/0.7976, allocations: 31.89 kB / 1.097 GB, free: 14.9 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008444/0.7985, allocations: 0.5583 MB / 1.098 GB, free: 14.54 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.965e-05/0.7985, allocations: 6.094 kB / 1.098 GB, free: 14.54 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.913e-05/0.7986, allocations: 16.08 kB / 1.098 GB, free: 14.53 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.806e-05/0.7986, allocations: 42.16 kB / 1.098 GB, free: 14.52 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007563/0.7994, allocations: 408.4 kB / 1.098 GB, free: 14.39 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002886/0.8023, allocations: 3.326 MB / 1.102 GB, free: 11.42 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006999/0.803, allocations: 338.5 kB / 1.102 GB, free: 11.29 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000332/0.8034, allocations: 180 kB / 1.102 GB, free: 11.23 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 2.276e-05/0.8034, allocations: 2.844 kB / 1.102 GB, free: 11.23 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.307e-05/0.8034, allocations: 36.3 kB / 1.102 GB, free: 11.18 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=26): time 1.613e-06/0.8034, allocations: 1.062 kB / 1.102 GB, free: 11.18 MB / 0.8731 GB Notification: Performance of matching and sorting (n=27): time 0.002175/0.8056, allocations: 1.073 MB / 1.103 GB, free: 10.55 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.235e-05/0.8057, allocations: 55.83 kB / 1.103 GB, free: 10.49 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003913/0.8061, allocations: 339 kB / 1.104 GB, free: 10.32 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 2.811e-05/0.8061, allocations: 30.7 kB / 1.104 GB, free: 10.28 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001691/0.8063, allocations: 237.3 kB / 1.104 GB, free: 10.08 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 8.953e-05/0.8064, allocations: 103.9 kB / 1.104 GB, free: 10 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001475/0.8065, allocations: 74.38 kB / 1.104 GB, free: 9.957 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001335/0.8067, allocations: 350.9 kB / 1.104 GB, free: 9.625 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003403/0.807, allocations: 150.2 kB / 1.105 GB, free: 9.578 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000399/0.8074, allocations: 294.7 kB / 1.105 GB, free: 9.344 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006685/0.8081, allocations: 478.7 kB / 1.105 GB, free: 9.023 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.8081, allocations: 2.344 kB / 1.105 GB, free: 9.023 MB / 0.8731 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001006/0.8091, allocations: 0.5643 MB / 1.106 GB, free: 8.773 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.837e-05/0.8091, allocations: 11.22 kB / 1.106 GB, free: 8.773 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.063e-05/0.8092, allocations: 7.922 kB / 1.106 GB, free: 8.77 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003345/0.8095, allocations: 84.3 kB / 1.106 GB, free: 8.734 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003622/0.8099, allocations: 95.69 kB / 1.106 GB, free: 8.719 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.58e-05/0.8099, allocations: 12.25 kB / 1.106 GB, free: 8.715 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002829/0.8102, allocations: 25.11 kB / 1.106 GB, free: 8.711 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.253e-05/0.8102, allocations: 18.81 kB / 1.106 GB, free: 8.707 MB / 0.8731 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.0001963/0.8104, allocations: 173.4 kB / 1.106 GB, free: 8.559 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.069e-05/0.8105, allocations: 44.52 kB / 1.106 GB, free: 8.535 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000944/0.8115, allocations: 467.8 kB / 1.107 GB, free: 8.328 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.813e-06/0.8115, allocations: 3.578 kB / 1.107 GB, free: 8.328 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/0.8115, allocations: 1.125 kB / 1.107 GB, free: 8.328 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.8115, allocations: 1.406 kB / 1.107 GB, free: 8.328 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001575/0.8131, allocations: 0.9699 MB / 1.108 GB, free: 7.75 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.8131, allocations: 1.562 kB / 1.108 GB, free: 7.75 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002649/0.8134, allocations: 51.11 kB / 1.108 GB, free: 7.746 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002521/0.8136, allocations: 86.27 kB / 1.108 GB, free: 7.703 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.993e-05/0.8137, allocations: 1.969 kB / 1.108 GB, free: 7.703 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.468e-06/0.8137, allocations: 2.859 kB / 1.108 GB, free: 7.703 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/0.8137, allocations: 1.156 kB / 1.108 GB, free: 7.703 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000867/0.8146, allocations: 0.5476 MB / 1.108 GB, free: 7.383 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001754/0.8147, allocations: 135.4 kB / 1.109 GB, free: 7.262 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.933e-05/0.8148, allocations: 7.641 kB / 1.109 GB, free: 7.258 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002407/0.8151, allocations: 24.23 kB / 1.109 GB, free: 7.25 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.361e-05/0.8151, allocations: 23.53 kB / 1.109 GB, free: 7.246 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.78e-05/0.8152, allocations: 5.656 kB / 1.109 GB, free: 7.246 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0002595/0.8154, allocations: 238.5 kB / 1.109 GB, free: 7.117 MB / 0.8731 GB Notification: Performance of sort global known variables: time 3.6e-07/0.8154, allocations: 1.594 kB / 1.109 GB, free: 7.117 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.000473/0.8159, allocations: 88.09 kB / 1.109 GB, free: 7.105 MB / 0.8731 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.001166/0.8171, allocations: 1.092 MB / 1.11 GB, free: 6.25 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0009379/0.818, allocations: 0.641 MB / 1.111 GB, free: 5.812 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.8181, allocations: 0 / 1.111 GB, free: 5.812 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0004618/0.8185, allocations: 433.9 kB / 1.111 GB, free: 5.453 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007435/0.8193, allocations: 135.9 kB / 1.111 GB, free: 5.402 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004946/0.8242, allocations: 3.716 MB / 1.115 GB, free: 2.977 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003833/0.8246, allocations: 0.8339 MB / 1.116 GB, free: 2.254 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0002565/0.8249, allocations: 76.97 kB / 1.116 GB, free: 2.242 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001806/0.8251, allocations: 127.3 kB / 1.116 GB, free: 2.152 MB / 0.8731 GB Notification: Performance of SimCode: time 3.7e-07/0.8251, allocations: 0 / 1.116 GB, free: 2.152 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02976/0.8549, allocations: 8.319 MB / 1.124 GB, free: 1.348 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.729/10.58, allocations: 5.125 kB / 1.124 GB, free: 1.344 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance.fmu > Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches