Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.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.Examples.GridDCLoad,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Examples_GridDCLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Examples_GridDCLoad",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.0009686/0.0009686, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.0009409/0.0009409, allocations: 192.6 kB / 16.25 MB, free: 6.625 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.293/1.293, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002026/0.002026, allocations: 283 kB / 290.3 MB, free: 2.125 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9479/0.9479, allocations: 169.2 MB / 0.4978 GB, free: 14.07 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003026/0.003026, allocations: 99.33 kB / 0.5948 GB, free: 28.09 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.202/0.205, allocations: 86.98 MB / 0.6797 GB, free: 0.9453 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad): time 0.004957/0.21, allocations: 3.108 MB / 0.6828 GB, free: 13.83 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002877/0.2129, allocations: 1.907 MB / 0.6846 GB, free: 11.92 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001903/0.2132, allocations: 4 kB / 0.6846 GB, free: 11.91 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009463/0.2141, allocations: 256.6 kB / 0.6849 GB, free: 11.66 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005325/0.2147, allocations: 180.5 kB / 0.6851 GB, free: 11.49 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007004/0.2154, allocations: 223.6 kB / 0.6853 GB, free: 11.27 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004122/0.2158, allocations: 322.9 kB / 0.6856 GB, free: 10.95 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004292/0.2162, allocations: 210.6 kB / 0.6858 GB, free: 10.75 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002331/0.2165, allocations: 123.6 kB / 0.6859 GB, free: 10.62 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003572/0.2168, allocations: 159.4 kB / 0.686 GB, free: 10.47 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.85e-05/0.2169, allocations: 20 kB / 0.6861 GB, free: 10.45 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006592/0.2176, allocations: 411.2 kB / 0.6865 GB, free: 10.05 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001126/0.2177, allocations: 83.8 kB / 0.6865 GB, free: 9.965 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001358/0.2178, allocations: 115.4 kB / 0.6866 GB, free: 9.852 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007687/0.2186, allocations: 0.4986 MB / 0.6871 GB, free: 9.352 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.2186, allocations: 4 kB / 0.6871 GB, free: 9.348 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.2186, allocations: 0 / 0.6871 GB, free: 9.348 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.187e-05/0.2187, allocations: 0 / 0.6871 GB, free: 9.348 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0009945/0.2197, allocations: 0.5574 MB / 0.6877 GB, free: 8.742 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.262e-05/0.2197, allocations: 12.03 kB / 0.6877 GB, free: 8.73 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.049e-05/0.2198, allocations: 58.72 kB / 0.6877 GB, free: 8.664 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007951/0.2206, allocations: 112.5 kB / 0.6879 GB, free: 8.555 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003257/0.2209, allocations: 267.8 kB / 0.6881 GB, free: 8.254 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.736e-05/0.221, allocations: 16.8 kB / 0.6881 GB, free: 8.238 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.773e-05/0.221, allocations: 20.38 kB / 0.6881 GB, free: 8.219 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005311/0.2215, allocations: 357.2 kB / 0.6885 GB, free: 7.844 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.192e-05/0.2216, allocations: 0 / 0.6885 GB, free: 7.844 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.179e-05/0.2216, allocations: 8 kB / 0.6885 GB, free: 7.836 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.276e-05/0.2216, allocations: 28.42 kB / 0.6885 GB, free: 7.809 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004419/0.2221, allocations: 289.5 kB / 0.6888 GB, free: 7.527 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002084/0.2242, allocations: 1.741 MB / 0.6905 GB, free: 5.617 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004623/0.2247, allocations: 320.8 kB / 0.6908 GB, free: 5.27 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000149/0.2248, allocations: 111.8 kB / 0.6909 GB, free: 5.156 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001126/0.2249, allocations: 101 kB / 0.691 GB, free: 5.039 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.447e-05/0.225, allocations: 30.56 kB / 0.691 GB, free: 5 MB / 494.1 MB Notification: Performance of pre-optimization done (n=16): time 1.683e-06/0.225, allocations: 4 kB / 0.691 GB, free: 4.996 MB / 494.1 MB Notification: Performance of matching and sorting (n=23): time 0.002355/0.2273, allocations: 0.9643 MB / 0.692 GB, free: 3.996 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.23e-05/0.2274, allocations: 85.05 kB / 0.6921 GB, free: 3.895 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001952/0.2276, allocations: 212.4 kB / 0.6923 GB, free: 3.68 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.698e-05/0.2276, allocations: 29.7 kB / 0.6923 GB, free: 3.645 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.331e-05/0.2277, allocations: 172.1 kB / 0.6925 GB, free: 3.473 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.717e-05/0.2278, allocations: 78.91 kB / 0.6925 GB, free: 3.395 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.404e-05/0.2279, allocations: 61.69 kB / 0.6926 GB, free: 3.328 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001091/0.228, allocations: 330.8 kB / 0.6929 GB, free: 2.996 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000179/0.2282, allocations: 127.9 kB / 0.693 GB, free: 2.871 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002235/0.2284, allocations: 211.1 kB / 0.6932 GB, free: 2.633 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004215/0.2289, allocations: 377.7 kB / 0.6936 GB, free: 2.234 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.2289, allocations: 0 / 0.6936 GB, free: 2.234 MB / 494.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0007828/0.2297, allocations: 0.5122 MB / 0.6941 GB, free: 1.703 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.2297, allocations: 8 kB / 0.6941 GB, free: 1.695 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.623e-06/0.2297, allocations: 0 / 0.6941 GB, free: 1.695 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005185/0.2302, allocations: 155.4 kB / 0.6942 GB, free: 1.531 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002413/0.2305, allocations: 55.91 kB / 0.6943 GB, free: 1.477 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002921/0.2334, allocations: 4.187 MB / 0.6984 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001885/0.2336, allocations: 19.89 kB / 0.6984 GB, free: 12.94 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.47e-05/0.2336, allocations: 12 kB / 0.6984 GB, free: 12.93 MB / 0.4981 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): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001768/0.2338, allocations: 173.7 kB / 0.6986 GB, free: 12.75 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.527e-05/0.2339, allocations: 23.81 kB / 0.6986 GB, free: 12.73 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007961/0.2347, allocations: 474.4 kB / 0.6991 GB, free: 12.25 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.558e-06/0.2347, allocations: 4 kB / 0.6991 GB, free: 12.24 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.846e-06/0.2347, allocations: 96 / 0.6991 GB, free: 12.24 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.374e-06/0.2347, allocations: 7.938 kB / 0.6991 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00156/0.2363, allocations: 1.012 MB / 0.7001 GB, free: 11.13 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.2363, allocations: 0 / 0.7001 GB, free: 11.13 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001215/0.2364, allocations: 35.92 kB / 0.7001 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003682/0.2368, allocations: 139.6 kB / 0.7002 GB, free: 10.95 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.286e-05/0.2368, allocations: 16 kB / 0.7002 GB, free: 10.93 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002995/0.2399, allocations: 4.174 MB / 0.7043 GB, free: 6.422 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.03e-06/0.2399, allocations: 4 kB / 0.7043 GB, free: 6.418 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007561/0.2406, allocations: 0.625 MB / 0.7049 GB, free: 5.742 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001097/0.2407, allocations: 132.8 kB / 0.7051 GB, free: 5.594 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.762e-05/0.2408, allocations: 15.89 kB / 0.7051 GB, free: 5.578 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002117/0.241, allocations: 15.98 kB / 0.7051 GB, free: 5.562 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.18e-05/0.2411, allocations: 31.91 kB / 0.7051 GB, free: 5.531 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.684e-05/0.2411, allocations: 8 kB / 0.7051 GB, free: 5.523 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001306/0.2412, allocations: 157.5 kB / 0.7053 GB, free: 5.371 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1e-07/0.2412, allocations: 0 / 0.7053 GB, free: 5.371 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004733/0.2417, allocations: 91.98 kB / 0.7054 GB, free: 5.281 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (21): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001078/0.2428, allocations: 1.191 MB / 0.7065 GB, free: 4.023 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0009367/0.2438, allocations: 0.6046 MB / 0.7071 GB, free: 3.395 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/0.2438, allocations: 0 / 0.7071 GB, free: 3.395 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.000486/0.2443, allocations: 404.4 kB / 0.7075 GB, free: 2.977 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004966/0.2448, allocations: 35.98 kB / 0.7075 GB, free: 2.941 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003926/0.2487, allocations: 3.425 MB / 0.7109 GB, free: 15.3 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003434/0.2491, allocations: 0.787 MB / 0.7117 GB, free: 14.49 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0001727/0.2492, allocations: 58.23 kB / 0.7117 GB, free: 14.43 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001064/0.2494, allocations: 71.41 kB / 0.7118 GB, free: 14.36 MB / 0.5137 GB Notification: Performance of SimCode: time 6.31e-07/0.2494, allocations: 3.938 kB / 0.7118 GB, free: 14.36 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.021/0.2704, allocations: 6.566 MB / 0.7182 GB, free: 8.012 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001788/0.2706, allocations: 244.5 kB / 0.7184 GB, free: 7.762 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.87/2.141, allocations: 6.609 kB / 0.7184 GB, free: 7.758 MB / 0.5137 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Examples_GridDCLoad_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Examples_GridDCLoad.fmu > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe 2>&1)