Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.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.DC.Lines.Examples.Resistance,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_DC_Lines_Examples_Resistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_DC_Lines_Examples_Resistance",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.005514/0.005514, allocations: 100.7 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.001342/0.001342, allocations: 188.9 kB / 16.67 MB, free: 5.973 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.373/1.373, allocations: 222.9 MB / 240.4 MB, free: 4.188 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.0022/0.002199, allocations: 283 kB / 290.8 MB, free: 1.789 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9549/0.9549, allocations: 169.3 MB / 0.4983 GB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001743/0.001743, allocations: 91.14 kB / 0.6809 GB, free: 28 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1635/0.1653, allocations: 86.98 MB / 0.7659 GB, free: 8.969 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.Resistance): time 0.004136/0.1695, allocations: 3.076 MB / 0.7689 GB, free: 5.879 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.00188/0.1714, allocations: 1.321 MB / 0.7702 GB, free: 4.551 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001033/0.1715, allocations: 11.88 kB / 0.7702 GB, free: 4.539 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0009355/0.1724, allocations: 326.7 kB / 0.7705 GB, free: 4.219 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0003051/0.1728, allocations: 151.3 kB / 0.7706 GB, free: 4.07 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003162/0.1731, allocations: 133.4 kB / 0.7708 GB, free: 3.941 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0003074/0.1734, allocations: 310.6 kB / 0.7711 GB, free: 3.637 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000391/0.1738, allocations: 236.3 kB / 0.7713 GB, free: 3.406 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001433/0.174, allocations: 131.5 kB / 0.7714 GB, free: 3.277 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002357/0.1742, allocations: 135.5 kB / 0.7715 GB, free: 3.145 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 3.022e-05/0.1742, allocations: 23.94 kB / 0.7716 GB, free: 3.121 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002519/0.1745, allocations: 159.7 kB / 0.7717 GB, free: 2.965 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 8.12e-05/0.1746, allocations: 83.78 kB / 0.7718 GB, free: 2.883 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001146/0.1747, allocations: 111.5 kB / 0.7719 GB, free: 2.773 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0003571/0.1751, allocations: 334.9 kB / 0.7722 GB, free: 2.445 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.1751, allocations: 0 / 0.7722 GB, free: 2.445 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.162e-06/0.1751, allocations: 0 / 0.7722 GB, free: 2.445 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.839e-06/0.1751, allocations: 4 kB / 0.7722 GB, free: 2.441 MB / 0.5606 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.0007251/0.1758, allocations: 0.5146 MB / 0.7727 GB, free: 1.875 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.875e-05/0.1759, allocations: 12.03 kB / 0.7727 GB, free: 1.863 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.564e-05/0.1759, allocations: 58.72 kB / 0.7728 GB, free: 1.797 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005377/0.1765, allocations: 76.58 kB / 0.7729 GB, free: 1.723 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002796/0.1768, allocations: 241.8 kB / 0.7731 GB, free: 1.449 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.629e-05/0.1768, allocations: 16.75 kB / 0.7731 GB, free: 1.434 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.577e-05/0.1768, allocations: 16.38 kB / 0.7731 GB, free: 1.418 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004007/0.1772, allocations: 303.3 kB / 0.7734 GB, free: 1.102 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.1773, allocations: 4 kB / 0.7734 GB, free: 1.098 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.338e-05/0.1773, allocations: 8 kB / 0.7734 GB, free: 1.09 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.978e-05/0.1773, allocations: 16.36 kB / 0.7735 GB, free: 1.074 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003008/0.1776, allocations: 196.9 kB / 0.7736 GB, free: 0.8828 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3262/0.5038, allocations: 1.452 MB / 0.7751 GB, free: 14.41 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003099/0.5042, allocations: 174.3 kB / 0.7752 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.312e-05/0.5043, allocations: 37.92 kB / 0.7753 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.044e-05/0.5043, allocations: 0.6875 kB / 0.7753 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.941e-05/0.5043, allocations: 32.56 kB / 0.7753 GB, free: 14.25 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=7): time 2.454e-06/0.5043, allocations: 0.6562 kB / 0.7753 GB, free: 14.25 MB / 0.5606 GB Notification: Performance of matching and sorting (n=7): time 0.0005386/0.5049, allocations: 225.5 kB / 0.7755 GB, free: 14.11 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.911e-05/0.5049, allocations: 53.98 kB / 0.7756 GB, free: 14.05 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002252/0.5051, allocations: 204.6 kB / 0.7758 GB, free: 13.94 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.294e-05/0.5052, allocations: 26.45 kB / 0.7758 GB, free: 13.91 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 9.121e-05/0.5053, allocations: 170.3 kB / 0.7759 GB, free: 13.8 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.364e-05/0.5053, allocations: 24.8 kB / 0.776 GB, free: 13.79 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.326e-05/0.5054, allocations: 34.27 kB / 0.776 GB, free: 13.77 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 6.364e-05/0.5054, allocations: 331.5 kB / 0.7763 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7e-05/0.5055, allocations: 35.58 kB / 0.7764 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001166/0.5056, allocations: 102.4 kB / 0.7764 GB, free: 13.37 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001737/0.5058, allocations: 156.4 kB / 0.7766 GB, free: 13.29 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.5058, allocations: 0 / 0.7766 GB, free: 13.29 MB / 0.5606 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.000315/0.5061, allocations: 187.2 kB / 0.7768 GB, free: 13.24 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.101e-05/0.5062, allocations: 6.219 kB / 0.7768 GB, free: 13.24 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/0.5062, allocations: 2.75 kB / 0.7768 GB, free: 13.24 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000183/0.5064, allocations: 31.61 kB / 0.7768 GB, free: 13.23 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001167/0.5065, allocations: 26.81 kB / 0.7768 GB, free: 13.23 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008319/0.5073, allocations: 1.418 MB / 0.7782 GB, free: 11.88 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001226/0.5075, allocations: 24.03 kB / 0.7782 GB, free: 11.86 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.224e-05/0.5075, allocations: 6.188 kB / 0.7783 GB, free: 11.86 MB / 0.5606 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 (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 {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000108/0.5076, allocations: 150.4 kB / 0.7784 GB, free: 11.74 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.827e-05/0.5077, allocations: 16.73 kB / 0.7784 GB, free: 11.73 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.822e-05/0.5077, allocations: 18.69 kB / 0.7784 GB, free: 11.73 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.5077, allocations: 3.188 kB / 0.7784 GB, free: 11.73 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.5077, allocations: 0.9375 kB / 0.7784 GB, free: 11.73 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-06/0.5077, allocations: 0.6094 kB / 0.7784 GB, free: 11.73 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004562/0.5082, allocations: 448.8 kB / 0.7789 GB, free: 11.42 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.5082, allocations: 4.125 kB / 0.7789 GB, free: 11.42 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.915e-05/0.5082, allocations: 8.75 kB / 0.7789 GB, free: 11.42 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.669e-05/0.5083, allocations: 25.77 kB / 0.7789 GB, free: 11.41 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.317e-06/0.5083, allocations: 1.5 kB / 0.7789 GB, free: 11.41 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006772/0.509, allocations: 1.418 MB / 0.7803 GB, free: 10.05 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.509, allocations: 0.8438 kB / 0.7803 GB, free: 10.05 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001866/0.5092, allocations: 213 kB / 0.7805 GB, free: 9.902 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.118e-05/0.5093, allocations: 101.1 kB / 0.7806 GB, free: 9.797 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.776e-05/0.5093, allocations: 5.688 kB / 0.7806 GB, free: 9.797 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001068/0.5094, allocations: 7.984 kB / 0.7806 GB, free: 9.797 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.282e-05/0.5094, allocations: 7.297 kB / 0.7806 GB, free: 9.797 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.905e-06/0.5095, allocations: 2.547 kB / 0.7806 GB, free: 9.797 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001499/0.5096, allocations: 142.9 kB / 0.7807 GB, free: 9.723 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.91e-07/0.5096, allocations: 0.625 kB / 0.7807 GB, free: 9.723 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003671/0.51, allocations: 51.06 kB / 0.7808 GB, free: 9.715 MB / 0.5606 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 (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 {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003781/0.5104, allocations: 0.7493 MB / 0.7815 GB, free: 9.012 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0003804/0.5108, allocations: 209.4 kB / 0.7817 GB, free: 8.871 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.816e-06/0.5108, allocations: 4.062 kB / 0.7817 GB, free: 8.867 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001309/0.5109, allocations: 144.8 kB / 0.7819 GB, free: 8.75 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003719/0.5113, allocations: 35.61 kB / 0.7819 GB, free: 8.738 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001892/0.5132, allocations: 2.042 MB / 0.7839 GB, free: 7.117 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000195/0.5134, allocations: 0.7463 MB / 0.7846 GB, free: 6.414 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 9.5e-05/0.5135, allocations: 27.2 kB / 0.7847 GB, free: 6.406 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.912e-05/0.5136, allocations: 52.44 kB / 0.7847 GB, free: 6.371 MB / 0.5606 GB Notification: Performance of SimCode: time 6.61e-07/0.5136, allocations: 0 / 0.7847 GB, free: 6.371 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02354/0.5372, allocations: 3.746 MB / 0.7884 GB, free: 5.867 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.166/9.703, allocations: 20.17 kB / 0.7884 GB, free: 5.855 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_DC_Lines_Examples_Resistance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_DC_Lines_Examples_Resistance.fmu > BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1)