Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid,fileNamePrefix="Buildings_8_0_0_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACSimpleGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid,fileNamePrefix="Buildings_8_0_0_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACSimpleGrid",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.721/2.721, allocations: 287.3 MB / 302.3 MB, free: 8.383 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001496/0.001496, allocations: 184.9 kB / 370.8 MB, free: 10.86 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.297/2.297, allocations: 205.4 MB / 0.6295 GB, free: 10.6 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00159/0.00159, allocations: 87.31 kB / 0.7428 GB, free: 6.613 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.000667/0.0006673, allocations: 10.94 kB / 0.8657 GB, free: 140.9 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2186/0.2193, allocations: 115.3 MB / 0.9783 GB, free: 28.28 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid): time 0.005349/0.2247, allocations: 3.695 MB / 0.9819 GB, free: 24.56 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.005549/0.2303, allocations: 2.933 MB / 0.9848 GB, free: 21.62 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000401/0.2307, allocations: 11.94 kB / 0.9848 GB, free: 21.61 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0007287/0.2315, allocations: 159.2 kB / 0.9849 GB, free: 21.45 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.001151/0.2327, allocations: 298.5 kB / 0.9852 GB, free: 21.16 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007283/0.2334, allocations: 171.6 kB / 0.9854 GB, free: 20.99 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.000699/0.2341, allocations: 347.2 kB / 0.9857 GB, free: 20.65 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001476/0.2356, allocations: 0.7234 MB / 0.9864 GB, free: 19.9 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003026/0.2359, allocations: 159.4 kB / 0.9866 GB, free: 19.74 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003504/0.2363, allocations: 179.3 kB / 0.9867 GB, free: 19.57 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 5.783e-05/0.2364, allocations: 16 kB / 0.9868 GB, free: 19.55 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008087/0.2372, allocations: 231.7 kB / 0.987 GB, free: 19.32 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 0.0001518/0.2374, allocations: 131.6 kB / 0.9871 GB, free: 19.2 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 0.0001012/0.2375, allocations: 105.5 kB / 0.9872 GB, free: 19.09 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0009248/0.2384, allocations: 0.6626 MB / 0.9878 GB, free: 18.42 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.2384, allocations: 0 / 0.9878 GB, free: 18.42 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.633e-06/0.2384, allocations: 0 / 0.9878 GB, free: 18.42 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 8.326e-06/0.2385, allocations: 4 kB / 0.9879 GB, free: 18.42 MB / 0.6198 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.00153/0.24, allocations: 0.713 MB / 0.9885 GB, free: 17.66 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.574e-05/0.2401, allocations: 12.02 kB / 0.9886 GB, free: 17.64 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000112/0.2402, allocations: 70.53 kB / 0.9886 GB, free: 17.57 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004858/0.2451, allocations: 0.7092 MB / 0.9893 GB, free: 16.86 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001188/0.2463, allocations: 474.6 kB / 0.9898 GB, free: 16.36 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.723e-05/0.2463, allocations: 28.64 kB / 0.9898 GB, free: 16.33 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001114/0.2465, allocations: 31.98 kB / 0.9898 GB, free: 16.3 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002469/0.2489, allocations: 0.7903 MB / 0.9906 GB, free: 15.47 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.031e-05/0.249, allocations: 0 / 0.9906 GB, free: 15.47 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.852e-05/0.2491, allocations: 12 kB / 0.9906 GB, free: 15.46 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002082/0.2493, allocations: 52.59 kB / 0.9907 GB, free: 15.41 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003305/0.2527, allocations: 0.8726 MB / 0.9915 GB, free: 14.54 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005501/0.2582, allocations: 2.855 MB / 0.9943 GB, free: 11.46 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002711/0.261, allocations: 0.5176 MB / 0.9948 GB, free: 10.93 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001398/0.2611, allocations: 89.34 kB / 0.9949 GB, free: 10.83 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.089e-05/0.2612, allocations: 42.48 kB / 0.9949 GB, free: 10.78 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=16): time 3.216e-06/0.2612, allocations: 4 kB / 0.9949 GB, free: 10.77 MB / 0.6198 GB Notification: Performance of matching and sorting (n=24): time 0.02016/0.2814, allocations: 3.209 MB / 0.9981 GB, free: 7.531 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.134e-05/0.2815, allocations: 77.11 kB / 0.9981 GB, free: 7.438 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000667/0.2821, allocations: 417.6 kB / 0.9985 GB, free: 7.023 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 8.888e-05/0.2822, allocations: 33.7 kB / 0.9986 GB, free: 6.984 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001721/0.2824, allocations: 243.7 kB / 0.9988 GB, free: 6.742 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 9.717e-05/0.2825, allocations: 82.83 kB / 0.9989 GB, free: 6.66 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.923e-05/0.2826, allocations: 8 kB / 0.9989 GB, free: 6.652 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 9.017e-05/0.2827, allocations: 350.7 kB / 0.9992 GB, free: 6.301 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00149/0.2842, allocations: 367.5 kB / 0.9996 GB, free: 5.941 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001537/0.2858, allocations: 449.1 kB / 1 GB, free: 5.469 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001562/0.2873, allocations: 385.8 kB / 1 GB, free: 5.094 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.2874, allocations: 0 / 1 GB, free: 5.094 MB / 0.6198 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.008732/0.2961, allocations: 1.546 MB / 1.002 GB, free: 3.535 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.000193/0.2963, allocations: 0.7862 MB / 1.003 GB, free: 2.688 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.135e-05/0.2964, allocations: 4 kB / 1.003 GB, free: 2.684 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006819/0.3032, allocations: 0.8481 MB / 1.003 GB, free: 1.828 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001075/0.3043, allocations: 131.8 kB / 1.004 GB, free: 1.699 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01136/0.3157, allocations: 4.794 MB / 1.008 GB, free: 12.64 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001403/0.3171, allocations: 119.9 kB / 1.008 GB, free: 12.52 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.798e-05/0.3172, allocations: 12 kB / 1.008 GB, free: 12.51 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.052e-05/0.3173, allocations: 4 kB / 1.008 GB, free: 12.5 MB / 0.6355 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007771/0.325, allocations: 1.261 MB / 1.01 GB, free: 11.24 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.3251, allocations: 0 / 1.01 GB, free: 11.24 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004759/0.3299, allocations: 0.5551 MB / 1.01 GB, free: 10.68 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001215/0.3311, allocations: 139.8 kB / 1.01 GB, free: 10.54 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00626/0.3374, allocations: 2.568 MB / 1.013 GB, free: 7.84 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001279/0.3387, allocations: 107.8 kB / 1.013 GB, free: 7.734 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.96e-05/0.3388, allocations: 19.98 kB / 1.013 GB, free: 7.715 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (29): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 2} * Non-linear torn systems: 1 {2 2} Notification: Performance of prepare postOptimizeDAE: time 0.0005472/0.3393, allocations: 321 kB / 1.013 GB, free: 7.391 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001167/0.3395, allocations: 31.62 kB / 1.013 GB, free: 7.359 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008379/0.3478, allocations: 1.428 MB / 1.015 GB, free: 5.91 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.687e-06/0.3479, allocations: 0 / 1.015 GB, free: 5.91 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.3479, allocations: 0 / 1.015 GB, free: 5.91 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.022e-05/0.3479, allocations: 7.984 kB / 1.015 GB, free: 5.902 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009901/0.3578, allocations: 2.098 MB / 1.017 GB, free: 3.734 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.728e-06/0.3579, allocations: 0 / 1.017 GB, free: 3.734 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007723/0.3587, allocations: 91.98 kB / 1.017 GB, free: 3.645 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006653/0.3654, allocations: 0.7934 MB / 1.018 GB, free: 2.844 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.172e-05/0.3655, allocations: 7.953 kB / 1.018 GB, free: 2.836 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01036/0.3759, allocations: 4.611 MB / 1.022 GB, free: 13.96 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.3759, allocations: 0 / 1.022 GB, free: 13.96 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008264/0.3842, allocations: 1.476 MB / 1.024 GB, free: 12.43 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004713/0.3847, allocations: 184.5 kB / 1.024 GB, free: 12.23 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001145/0.3848, allocations: 8 kB / 1.024 GB, free: 12.23 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001063/0.3859, allocations: 95.84 kB / 1.024 GB, free: 12.13 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002019/0.3861, allocations: 23.92 kB / 1.024 GB, free: 12.11 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.06e-05/0.3862, allocations: 12 kB / 1.024 GB, free: 12.1 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0006173/0.3868, allocations: 307.1 kB / 1.024 GB, free: 11.8 MB / 0.6511 GB Notification: Performance of sort global known variables: time 3.9e-07/0.3868, allocations: 0 / 1.024 GB, free: 11.8 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.001246/0.3881, allocations: 204 kB / 1.024 GB, free: 11.6 MB / 0.6511 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 (19): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 2} * Non-linear torn systems: 1 {2 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.009119/0.3972, allocations: 2.245 MB / 1.027 GB, free: 9.297 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.00654/0.4038, allocations: 1.618 MB / 1.028 GB, free: 7.641 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 6.833e-06/0.4039, allocations: 0 / 1.028 GB, free: 7.641 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.002308/0.4062, allocations: 0.6769 MB / 1.029 GB, free: 6.938 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009815/0.4072, allocations: 110.8 kB / 1.029 GB, free: 6.832 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01738/0.4246, allocations: 5.391 MB / 1.034 GB, free: 1.344 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007647/0.4254, allocations: 0.9249 MB / 1.035 GB, free: 404 kB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0009662/0.4264, allocations: 155.2 kB / 1.035 GB, free: 248 kB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003933/0.4268, allocations: 143.4 kB / 1.035 GB, free: 104 kB / 0.6511 GB Notification: Performance of SimCode: time 1.072e-06/0.4268, allocations: 0 / 1.035 GB, free: 104 kB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06078/0.4876, allocations: 15.86 MB / 1.051 GB, free: 492 kB / 0.6667 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003328/0.488, allocations: 231.6 kB / 1.051 GB, free: 240 kB / 0.6667 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.812/3.3, allocations: 0 / 1.051 GB, free: 240 kB / 0.6667 GB (rm -f Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe ; mkfifo Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe >> ../files/Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACSimpleGrid_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACSimpleGrid.fmu > Buildings_8.0.0_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACSimpleGrid.pipe 2>&1)