Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance,fileNamePrefix="BuildingSystems_BuildingSystems_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.004881/0.004881, allocations: 97.33 kB / 15.73 MB, free: 6.039 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.001278/0.001278, allocations: 201.8 kB / 16.68 MB, free: 5.961 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.518/1.518, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002531/0.002531, allocations: 282.5 kB / 290.8 MB, free: 1.941 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.05/1.05, allocations: 169.3 MB / 0.4983 GB, free: 13.83 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00272/0.00272, allocations: 100.4 kB / 0.681 GB, free: 15.99 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1805/0.1833, allocations: 86.97 MB / 0.7659 GB, free: 8.949 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.005571/0.1889, allocations: 3.738 MB / 0.7696 GB, free: 5.191 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.003231/0.1922, allocations: 1.797 MB / 0.7713 GB, free: 3.387 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002549/0.1925, allocations: 15.88 kB / 0.7713 GB, free: 3.371 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0009482/0.1934, allocations: 274.7 kB / 0.7716 GB, free: 3.102 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0007526/0.1942, allocations: 302.3 kB / 0.7719 GB, free: 2.805 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006456/0.1948, allocations: 246.2 kB / 0.7721 GB, free: 2.566 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0008105/0.1956, allocations: 0.5971 MB / 0.7727 GB, free: 1.965 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004738/0.1961, allocations: 270.8 kB / 0.7729 GB, free: 1.699 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003909/0.1965, allocations: 231.1 kB / 0.7732 GB, free: 1.473 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003557/0.1969, allocations: 235 kB / 0.7734 GB, free: 1.242 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 6.231e-05/0.197, allocations: 28 kB / 0.7734 GB, free: 1.215 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005477/0.1975, allocations: 271.4 kB / 0.7737 GB, free: 0.9492 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001552/0.1977, allocations: 115.6 kB / 0.7738 GB, free: 0.8359 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.000234/0.1979, allocations: 218.8 kB / 0.774 GB, free: 0.6211 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0008309/0.1988, allocations: 0.5914 MB / 0.7746 GB, free: 28 kB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.1988, allocations: 3.938 kB / 0.7746 GB, free: 24 kB / 0.5606 GB Notification: Performance of FrontEnd: time 1.713e-06/0.1988, allocations: 0 / 0.7746 GB, free: 24 kB / 0.5606 GB Notification: Performance of Transformations before backend: time 9.308e-06/0.1988, allocations: 0 / 0.7746 GB, free: 24 kB / 0.5606 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.3014/0.5002, allocations: 0.7414 MB / 0.7753 GB, free: 15.05 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.155e-05/0.5003, allocations: 10.25 kB / 0.7753 GB, free: 15.05 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.859e-05/0.5004, allocations: 71.12 kB / 0.7754 GB, free: 15.02 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009504/0.5013, allocations: 135.7 kB / 0.7755 GB, free: 14.99 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005633/0.5019, allocations: 414.4 kB / 0.7759 GB, free: 14.74 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.914e-05/0.5019, allocations: 21.84 kB / 0.7759 GB, free: 14.74 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.859e-05/0.502, allocations: 38.06 kB / 0.776 GB, free: 14.73 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007986/0.5028, allocations: 0.5493 MB / 0.7765 GB, free: 14.52 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.075e-05/0.5028, allocations: 4.031 kB / 0.7765 GB, free: 14.52 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.524e-05/0.5029, allocations: 17.97 kB / 0.7765 GB, free: 14.52 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.535e-05/0.5029, allocations: 43.19 kB / 0.7766 GB, free: 14.52 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007003/0.5036, allocations: 408.8 kB / 0.777 GB, free: 14.5 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002377/0.506, allocations: 3.33 MB / 0.7802 GB, free: 11.64 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006797/0.5067, allocations: 334.2 kB / 0.7805 GB, free: 11.52 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003031/0.5071, allocations: 178.9 kB / 0.7807 GB, free: 11.46 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.791e-05/0.5071, allocations: 7.062 kB / 0.7807 GB, free: 11.45 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.406e-05/0.5071, allocations: 32.28 kB / 0.7807 GB, free: 11.41 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=26): time 1.843e-06/0.5071, allocations: 2.219 kB / 0.7807 GB, free: 11.41 MB / 0.5606 GB Notification: Performance of matching and sorting (n=27): time 0.002048/0.5092, allocations: 1.071 MB / 0.7818 GB, free: 10.79 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.547e-05/0.5092, allocations: 54.12 kB / 0.7818 GB, free: 10.73 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003208/0.5095, allocations: 341.4 kB / 0.7822 GB, free: 10.55 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.005e-05/0.5096, allocations: 31.08 kB / 0.7822 GB, free: 10.52 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001014/0.5097, allocations: 253.4 kB / 0.7824 GB, free: 10.3 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 5.211e-05/0.5097, allocations: 97.22 kB / 0.7825 GB, free: 10.23 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001043/0.5098, allocations: 79.72 kB / 0.7826 GB, free: 10.18 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 6.18e-05/0.5099, allocations: 350.2 kB / 0.7829 GB, free: 9.852 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002589/0.5102, allocations: 145.3 kB / 0.7831 GB, free: 9.809 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002975/0.5105, allocations: 300.4 kB / 0.7834 GB, free: 9.578 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005828/0.5111, allocations: 484.1 kB / 0.7838 GB, free: 9.258 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.5111, allocations: 0.8125 kB / 0.7838 GB, free: 9.258 MB / 0.5606 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0009922/0.5121, allocations: 0.5597 MB / 0.7844 GB, free: 9.016 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.199e-05/0.5121, allocations: 7.719 kB / 0.7844 GB, free: 9.016 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.548e-06/0.5121, allocations: 3.531 kB / 0.7844 GB, free: 9.016 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003061/0.5125, allocations: 98.66 kB / 0.7845 GB, free: 8.969 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003527/0.5128, allocations: 82.64 kB / 0.7845 GB, free: 8.965 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.426e-05/0.5128, allocations: 11.75 kB / 0.7846 GB, free: 8.961 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002872/0.5131, allocations: 34.08 kB / 0.7846 GB, free: 8.949 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.896e-05/0.5132, allocations: 18.5 kB / 0.7846 GB, free: 8.945 MB / 0.5606 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.0001515/0.5133, allocations: 172.2 kB / 0.7848 GB, free: 8.801 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.09e-05/0.5134, allocations: 47.28 kB / 0.7848 GB, free: 8.773 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008226/0.5142, allocations: 462.7 kB / 0.7853 GB, free: 8.57 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.232e-06/0.5143, allocations: 3.781 kB / 0.7853 GB, free: 8.57 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.5143, allocations: 5.688 kB / 0.7853 GB, free: 8.566 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.5143, allocations: 5 kB / 0.7853 GB, free: 8.566 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001317/0.5156, allocations: 0.9515 MB / 0.7862 GB, free: 8.012 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.949e-06/0.5156, allocations: 9.125 kB / 0.7862 GB, free: 8.008 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002368/0.5159, allocations: 49.58 kB / 0.7863 GB, free: 8.004 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002287/0.5161, allocations: 87.7 kB / 0.7863 GB, free: 7.961 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.03e-05/0.5161, allocations: 6.344 kB / 0.7863 GB, free: 7.957 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.407e-06/0.5161, allocations: 1.031 kB / 0.7863 GB, free: 7.957 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.5161, allocations: 1.812 kB / 0.7863 GB, free: 7.957 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006999/0.5168, allocations: 0.5513 MB / 0.7869 GB, free: 7.633 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001176/0.517, allocations: 139.5 kB / 0.787 GB, free: 7.512 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.053e-05/0.517, allocations: 6.594 kB / 0.787 GB, free: 7.508 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002189/0.5173, allocations: 24.3 kB / 0.7871 GB, free: 7.504 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.861e-05/0.5173, allocations: 32.28 kB / 0.7871 GB, free: 7.492 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.654e-05/0.5174, allocations: 5.344 kB / 0.7871 GB, free: 7.492 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001824/0.5175, allocations: 238.8 kB / 0.7873 GB, free: 7.363 MB / 0.5606 GB Notification: Performance of sort global known variables: time 9.62e-07/0.5175, allocations: 0 / 0.7873 GB, free: 7.363 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0004195/0.518, allocations: 86.8 kB / 0.7874 GB, free: 7.355 MB / 0.5606 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.000835/0.5188, allocations: 1.095 MB / 0.7885 GB, free: 6.5 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0007788/0.5196, allocations: 0.6358 MB / 0.7891 GB, free: 6.07 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.5196, allocations: 0 / 0.7891 GB, free: 6.07 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0003486/0.52, allocations: 429.2 kB / 0.7895 GB, free: 5.715 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006898/0.5207, allocations: 130.6 kB / 0.7896 GB, free: 5.684 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00402/0.5247, allocations: 3.735 MB / 0.7933 GB, free: 3.242 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002621/0.525, allocations: 0.8253 MB / 0.7941 GB, free: 2.531 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0002692/0.5253, allocations: 77.73 kB / 0.7941 GB, free: 2.523 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001659/0.5254, allocations: 129.1 kB / 0.7943 GB, free: 2.43 MB / 0.5606 GB Notification: Performance of SimCode: time 4.51e-07/0.5254, allocations: 0 / 0.7943 GB, free: 2.43 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03596/0.5614, allocations: 8.337 MB / 0.8024 GB, free: 1.703 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.26/10.82, allocations: 11.09 kB / 0.8024 GB, free: 1.695 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance.fmu > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe 2>&1)