Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.DynamicLoads,fileNamePrefix="Buildings_8_Buildings_Electrical_AC_OnePhase_Loads_Examples_DynamicLoads",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads,fileNamePrefix="Buildings_8_Buildings_Electrical_AC_OnePhase_Loads_Examples_DynamicLoads",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.001077/0.001077, allocations: 101.4 kB / 15.7 MB, free: 28 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001046/0.001046, allocations: 197 kB / 16.64 MB, free: 6.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.349/1.349, allocations: 205.1 MB / 222.5 MB, free: 4.547 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.612/1.612, allocations: 292.3 MB / 0.549 GB, free: 12.75 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001369/0.001369, allocations: 73.25 kB / 0.6718 GB, free: 26.25 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2117/0.2131, allocations: 114.5 MB / 0.7836 GB, free: 13.21 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads): time 0.004305/0.2174, allocations: 3.261 MB / 0.7868 GB, free: 9.93 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002612/0.22, allocations: 1.867 MB / 0.7886 GB, free: 8.051 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001102/0.2202, allocations: 7.938 kB / 0.7887 GB, free: 8.043 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0008191/0.221, allocations: 285.8 kB / 0.7889 GB, free: 7.766 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0003951/0.2214, allocations: 215 kB / 0.7891 GB, free: 7.555 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005743/0.222, allocations: 291.3 kB / 0.7894 GB, free: 7.27 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003811/0.2224, allocations: 398.8 kB / 0.7898 GB, free: 6.879 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003234/0.2227, allocations: 223.2 kB / 0.79 GB, free: 6.664 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001767/0.2229, allocations: 155.5 kB / 0.7902 GB, free: 6.512 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003136/0.2232, allocations: 203.3 kB / 0.7903 GB, free: 6.312 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.48e-05/0.2233, allocations: 24 kB / 0.7904 GB, free: 6.289 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003262/0.2236, allocations: 231.5 kB / 0.7906 GB, free: 6.062 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001092/0.2237, allocations: 119.7 kB / 0.7907 GB, free: 5.945 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001279/0.2239, allocations: 147.2 kB / 0.7908 GB, free: 5.801 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0004704/0.2243, allocations: 478.5 kB / 0.7913 GB, free: 5.332 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.297e-06/0.2244, allocations: 0 / 0.7913 GB, free: 5.332 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.082e-06/0.2244, allocations: 0 / 0.7913 GB, free: 5.332 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.921e-06/0.2244, allocations: 3.938 kB / 0.7913 GB, free: 5.328 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 68 * Number of variables: 68 Notification: Performance of Generate backend data structure: time 0.000938/0.2253, allocations: 0.5888 MB / 0.7919 GB, free: 4.691 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.444e-05/0.2254, allocations: 12.03 kB / 0.7919 GB, free: 4.68 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.937e-05/0.2254, allocations: 62.72 kB / 0.792 GB, free: 4.609 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006961/0.2261, allocations: 96.45 kB / 0.792 GB, free: 4.516 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003033/0.2264, allocations: 284.4 kB / 0.7923 GB, free: 4.195 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.606e-05/0.2265, allocations: 20.94 kB / 0.7923 GB, free: 4.176 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001045/0.2266, allocations: 36.48 kB / 0.7924 GB, free: 4.141 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005519/0.2271, allocations: 441.1 kB / 0.7928 GB, free: 3.672 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.544e-05/0.2272, allocations: 3.938 kB / 0.7928 GB, free: 3.668 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.23e-05/0.2272, allocations: 12 kB / 0.7928 GB, free: 3.656 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001312/0.2273, allocations: 44.45 kB / 0.7928 GB, free: 3.613 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004813/0.2278, allocations: 349.9 kB / 0.7932 GB, free: 3.27 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002169/0.23, allocations: 2.195 MB / 0.7953 GB, free: 0.875 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004284/0.2304, allocations: 272.8 kB / 0.7956 GB, free: 0.6016 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001988/0.2306, allocations: 160.8 kB / 0.7957 GB, free: 452 kB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.279e-05/0.2307, allocations: 7.938 kB / 0.7957 GB, free: 444 kB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.448e-05/0.2307, allocations: 30.56 kB / 0.7958 GB, free: 404 kB / 0.6075 GB Notification: Performance of pre-optimization done (n=22): time 2.785e-06/0.2307, allocations: 0 / 0.7958 GB, free: 404 kB / 0.6075 GB Notification: Performance of matching and sorting (n=23): time 0.001647/0.2324, allocations: 1.064 MB / 0.7968 GB, free: 15.27 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.932e-05/0.2324, allocations: 55.41 kB / 0.7969 GB, free: 15.2 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002203/0.2326, allocations: 248.9 kB / 0.7971 GB, free: 14.94 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 2.219e-05/0.2327, allocations: 25.7 kB / 0.7971 GB, free: 14.91 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 9.655e-05/0.2328, allocations: 192 kB / 0.7973 GB, free: 14.72 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 5.716e-05/0.2328, allocations: 90.73 kB / 0.7974 GB, free: 14.63 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001093/0.2329, allocations: 77.58 kB / 0.7975 GB, free: 14.55 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 9.915e-05/0.2331, allocations: 330.8 kB / 0.7978 GB, free: 14.21 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002064/0.2333, allocations: 151.9 kB / 0.7979 GB, free: 14.07 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002524/0.2335, allocations: 241.5 kB / 0.7982 GB, free: 13.8 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004571/0.234, allocations: 402.8 kB / 0.7985 GB, free: 13.37 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.234, allocations: 3.938 kB / 0.7986 GB, free: 13.37 MB / 0.6231 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001019/0.235, allocations: 0.5857 MB / 0.7991 GB, free: 12.77 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 1.738e-05/0.2351, allocations: 4 kB / 0.7991 GB, free: 12.77 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.2351, allocations: 4 kB / 0.7991 GB, free: 12.77 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006418/0.2357, allocations: 188.9 kB / 0.7993 GB, free: 12.58 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000271/0.236, allocations: 63.89 kB / 0.7994 GB, free: 12.52 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002691/0.2387, allocations: 2.496 MB / 0.8018 GB, free: 9.879 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002725/0.239, allocations: 15.98 kB / 0.8018 GB, free: 9.863 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.206e-05/0.239, allocations: 16 kB / 0.8018 GB, free: 9.848 MB / 0.6231 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (32): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001651/0.2392, allocations: 173.7 kB / 0.802 GB, free: 9.668 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.395e-05/0.2393, allocations: 23.75 kB / 0.802 GB, free: 9.645 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005024/0.2398, allocations: 355.4 kB / 0.8024 GB, free: 9.297 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.2398, allocations: 4 kB / 0.8024 GB, free: 9.293 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.172e-06/0.2398, allocations: 0 / 0.8024 GB, free: 9.293 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.586e-06/0.2398, allocations: 0 / 0.8024 GB, free: 9.293 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009623/0.2408, allocations: 0.8083 MB / 0.8032 GB, free: 8.422 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.2408, allocations: 4.062 kB / 0.8032 GB, free: 8.418 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003741/0.2412, allocations: 75.88 kB / 0.8032 GB, free: 8.344 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.454e-06/0.2412, allocations: 0 / 0.8032 GB, free: 8.344 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.453e-05/0.2412, allocations: 8 kB / 0.8032 GB, free: 8.336 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.2412, allocations: 4 kB / 0.8032 GB, free: 8.332 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.2412, allocations: 0 / 0.8032 GB, free: 8.332 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006861/0.2419, allocations: 0.6166 MB / 0.8039 GB, free: 7.695 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001157/0.242, allocations: 128.8 kB / 0.804 GB, free: 7.551 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.093e-05/0.2421, allocations: 11.94 kB / 0.804 GB, free: 7.539 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001992/0.2423, allocations: 11.98 kB / 0.804 GB, free: 7.527 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.643e-05/0.2423, allocations: 23.98 kB / 0.804 GB, free: 7.504 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.383e-05/0.2423, allocations: 4 kB / 0.804 GB, free: 7.5 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0001465/0.2425, allocations: 180.5 kB / 0.8042 GB, free: 7.328 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2425, allocations: 0 / 0.8042 GB, free: 7.328 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0003826/0.2429, allocations: 92 kB / 0.8043 GB, free: 7.238 MB / 0.6231 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (dynRC.q[1],dynRC.q[2],dynRL.psi[1],dynRL.psi[2]) * 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 (24): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009471/0.2438, allocations: 1.163 MB / 0.8054 GB, free: 6.039 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.000848/0.2447, allocations: 0.5411 MB / 0.8059 GB, free: 5.484 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.2447, allocations: 0 / 0.8059 GB, free: 5.484 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0001882/0.2449, allocations: 147.8 kB / 0.8061 GB, free: 5.34 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004528/0.2454, allocations: 64.05 kB / 0.8061 GB, free: 5.281 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004524/0.2499, allocations: 3.652 MB / 0.8097 GB, free: 1.469 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003107/0.2502, allocations: 0.799 MB / 0.8105 GB, free: 0.6445 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001967/0.2504, allocations: 74.92 kB / 0.8106 GB, free: 0.5742 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001291/0.2506, allocations: 83.41 kB / 0.8106 GB, free: 0.4922 MB / 0.6231 GB Notification: Performance of SimCode: time 2.3e-07/0.2506, allocations: 0 / 0.8106 GB, free: 0.4922 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03326/0.2838, allocations: 6.703 MB / 0.8172 GB, free: 9.934 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.575/9.859, allocations: 5.438 kB / 0.8172 GB, free: 9.93 MB / 0.6387 GB (rm -f Buildings_8_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe ; mkfifo Buildings_8_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe >> ../files/Buildings_8_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Electrical_AC_OnePhase_Loads_Examples_DynamicLoads.fmu > Buildings_8_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe 2>&1)