Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Electrical.DC.Lines.Examples.Resistance.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.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_8_0_0_Buildings_Electrical_DC_Lines_Examples_Resistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_8_0_0_Buildings_Electrical_DC_Lines_Examples_Resistance",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.707/2.707, allocations: 287.5 MB / 302.4 MB, free: 8.305 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.00138/0.00138, allocations: 172.8 kB / 371 MB, free: 10.87 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.24/2.24, allocations: 205.4 MB / 0.6297 GB, free: 10.63 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.0008995/0.0008995, allocations: 86.77 kB / 0.743 GB, free: 6.625 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.000769/0.0007694, allocations: 16.41 kB / 0.8659 GB, free: 140.6 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2264/0.2273, allocations: 115.3 MB / 0.9785 GB, free: 28.28 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.004107/0.2314, allocations: 2.657 MB / 0.981 GB, free: 25.61 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.002559/0.2341, allocations: 1.229 MB / 0.9822 GB, free: 24.37 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002106/0.2343, allocations: 7.938 kB / 0.9823 GB, free: 24.36 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0002089/0.2345, allocations: 39.7 kB / 0.9823 GB, free: 24.32 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.000463/0.235, allocations: 107.4 kB / 0.9824 GB, free: 24.21 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004791/0.2355, allocations: 100.4 kB / 0.9825 GB, free: 24.12 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0004416/0.236, allocations: 346.9 kB / 0.9828 GB, free: 23.78 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003804/0.2364, allocations: 211.9 kB / 0.983 GB, free: 23.55 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001621/0.2365, allocations: 99.61 kB / 0.9831 GB, free: 23.45 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003292/0.2369, allocations: 131.6 kB / 0.9832 GB, free: 23.32 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 4.367e-05/0.237, allocations: 8 kB / 0.9833 GB, free: 23.32 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003188/0.2373, allocations: 83.83 kB / 0.9833 GB, free: 23.23 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 9.512e-05/0.2374, allocations: 75.77 kB / 0.9834 GB, free: 23.16 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 6.103e-05/0.2375, allocations: 61.58 kB / 0.9835 GB, free: 23.09 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0003523/0.2378, allocations: 255.6 kB / 0.9837 GB, free: 22.84 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 6.683e-06/0.2378, allocations: 0 / 0.9837 GB, free: 22.84 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.104e-06/0.2379, allocations: 0 / 0.9837 GB, free: 22.84 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 1.188e-05/0.2379, allocations: 0 / 0.9837 GB, free: 22.84 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0008664/0.2388, allocations: 490.9 kB / 0.9842 GB, free: 22.31 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.822e-05/0.2388, allocations: 16.02 kB / 0.9842 GB, free: 22.3 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.84e-05/0.2389, allocations: 50.55 kB / 0.9842 GB, free: 22.24 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007943/0.2397, allocations: 87.67 kB / 0.9843 GB, free: 22.15 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003959/0.2401, allocations: 240.7 kB / 0.9846 GB, free: 21.88 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.446e-05/0.2402, allocations: 12.38 kB / 0.9846 GB, free: 21.87 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.932e-05/0.2402, allocations: 16 kB / 0.9846 GB, free: 21.85 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006223/0.2408, allocations: 299.2 kB / 0.9849 GB, free: 21.53 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.645e-05/0.2409, allocations: 0 / 0.9849 GB, free: 21.53 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.936e-05/0.2409, allocations: 11.95 kB / 0.9849 GB, free: 21.52 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.489e-05/0.241, allocations: 20.36 kB / 0.9849 GB, free: 21.5 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004587/0.2415, allocations: 193 kB / 0.9851 GB, free: 21.31 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00189/0.2434, allocations: 1.468 MB / 0.9865 GB, free: 19.68 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003393/0.2438, allocations: 171.7 kB / 0.9867 GB, free: 19.49 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.877e-05/0.2439, allocations: 36.78 kB / 0.9867 GB, free: 19.45 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.13e-05/0.2439, allocations: 4 kB / 0.9867 GB, free: 19.45 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.138e-05/0.2439, allocations: 34.56 kB / 0.9867 GB, free: 19.4 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=7): time 3.076e-06/0.2439, allocations: 0 / 0.9867 GB, free: 19.4 MB / 0.6198 GB Notification: Performance of matching and sorting (n=7): time 0.0006245/0.2446, allocations: 223.4 kB / 0.987 GB, free: 19.16 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.789e-05/0.2446, allocations: 55.34 kB / 0.987 GB, free: 19.09 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002211/0.2448, allocations: 206.2 kB / 0.9872 GB, free: 18.88 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.583e-05/0.2449, allocations: 25.7 kB / 0.9872 GB, free: 18.85 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 8.452e-05/0.245, allocations: 167.6 kB / 0.9874 GB, free: 18.68 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.075e-05/0.245, allocations: 15.88 kB / 0.9874 GB, free: 18.66 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.207e-06/0.245, allocations: 8 kB / 0.9874 GB, free: 18.66 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.876e-05/0.2451, allocations: 322.8 kB / 0.9877 GB, free: 18.33 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.08e-05/0.2452, allocations: 35.97 kB / 0.9878 GB, free: 18.3 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001254/0.2453, allocations: 104.6 kB / 0.9879 GB, free: 18.16 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001238/0.2455, allocations: 55.88 kB / 0.9879 GB, free: 18.11 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.826e-06/0.2455, allocations: 0 / 0.9879 GB, free: 18.11 MB / 0.6198 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004091/0.2459, allocations: 190 kB / 0.9881 GB, free: 17.91 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.039e-05/0.2459, allocations: 10.8 kB / 0.9881 GB, free: 17.91 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.278e-06/0.2459, allocations: 4 kB / 0.9881 GB, free: 17.9 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002064/0.2462, allocations: 29.12 kB / 0.9881 GB, free: 17.87 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001873/0.2464, allocations: 28 kB / 0.9882 GB, free: 17.84 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001044/0.2474, allocations: 1.331 MB / 0.9895 GB, free: 16.38 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001988/0.2476, allocations: 15.84 kB / 0.9895 GB, free: 16.37 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.461e-05/0.2477, allocations: 4 kB / 0.9895 GB, free: 16.36 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (17): * Single equations (assignments): 16 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001598/0.2478, allocations: 143.1 kB / 0.9896 GB, free: 16.21 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.846e-05/0.2479, allocations: 19.77 kB / 0.9896 GB, free: 16.2 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.562e-05/0.2479, allocations: 21.39 kB / 0.9897 GB, free: 16.18 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.248, allocations: 0 / 0.9897 GB, free: 16.18 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.248, allocations: 4.094 kB / 0.9897 GB, free: 16.18 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.248, allocations: 3.938 kB / 0.9897 GB, free: 16.17 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006489/0.2486, allocations: 443.2 kB / 0.9901 GB, free: 15.68 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-06/0.2487, allocations: 0 / 0.9901 GB, free: 15.68 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.697e-05/0.2487, allocations: 8 kB / 0.9901 GB, free: 15.67 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001239/0.2489, allocations: 28.72 kB / 0.9901 GB, free: 15.64 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.648e-06/0.2489, allocations: 0 / 0.9901 GB, free: 15.64 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009097/0.2498, allocations: 1.308 MB / 0.9914 GB, free: 14.2 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.2498, allocations: 0 / 0.9914 GB, free: 14.2 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002641/0.2501, allocations: 224.6 kB / 0.9916 GB, free: 13.96 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 6.99e-05/0.2502, allocations: 88.92 kB / 0.9917 GB, free: 13.85 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.149e-05/0.2502, allocations: 15.98 kB / 0.9917 GB, free: 13.84 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001664/0.2504, allocations: 4 kB / 0.9917 GB, free: 13.83 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.051e-05/0.2505, allocations: 3.953 kB / 0.9917 GB, free: 13.83 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.01e-05/0.2505, allocations: 4 kB / 0.9917 GB, free: 13.82 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001421/0.2506, allocations: 152.1 kB / 0.9919 GB, free: 13.68 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.6e-07/0.2506, allocations: 0 / 0.9919 GB, free: 13.68 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0004178/0.2511, allocations: 51.84 kB / 0.9919 GB, free: 13.62 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (6): * Single equations (assignments): 5 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004479/0.2515, allocations: 0.7406 MB / 0.9926 GB, free: 12.86 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0004112/0.2519, allocations: 210.6 kB / 0.9928 GB, free: 12.64 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.252, allocations: 0 / 0.9928 GB, free: 12.64 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001924/0.2522, allocations: 158.5 kB / 0.993 GB, free: 12.47 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004622/0.2526, allocations: 36.69 kB / 0.993 GB, free: 12.43 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001693/0.2543, allocations: 1.016 MB / 0.994 GB, free: 11.34 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002185/0.2546, allocations: 0.7553 MB / 0.9948 GB, free: 10.55 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0001452/0.2547, allocations: 29.52 kB / 0.9948 GB, free: 10.52 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.112e-05/0.2549, allocations: 51.42 kB / 0.9948 GB, free: 10.47 MB / 0.6198 GB Notification: Performance of SimCode: time 7.21e-07/0.2549, allocations: 0 / 0.9948 GB, free: 10.47 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02327/0.2781, allocations: 3.338 MB / 0.9981 GB, free: 7.305 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000263/0.2785, allocations: 205.1 kB / 0.9983 GB, free: 7.066 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.543/2.821, allocations: 5.484 kB / 0.9983 GB, free: 7.062 MB / 0.6198 GB (rm -f Buildings_8.0.0_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_8.0.0_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_8.0.0_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Electrical_DC_Lines_Examples_Resistance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Electrical_DC_Lines_Examples_Resistance.fmu > Buildings_8.0.0_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1)