Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.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 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.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_8_Buildings_Electrical_DC_Lines_Examples_Resistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_8_Buildings_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.0009499/0.0009499, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.00105/0.00105, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.656/1.656, allocations: 205.4 MB / 222.1 MB, free: 5.664 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.757/1.757, allocations: 292.7 MB / 0.5499 GB, free: 14.57 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.0005503/0.0005504, allocations: 19.81 kB / 0.6738 GB, free: 26.23 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.275/0.2756, allocations: 116.3 MB / 0.7874 GB, free: 11.87 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.00367/0.2793, allocations: 2.649 MB / 0.79 GB, free: 9.203 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002052/0.2814, allocations: 1.244 MB / 0.7912 GB, free: 7.949 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001293/0.2815, allocations: 4 kB / 0.7912 GB, free: 7.945 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001866/0.2817, allocations: 35.7 kB / 0.7912 GB, free: 7.91 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0003747/0.2821, allocations: 111.5 kB / 0.7913 GB, free: 7.801 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003188/0.2824, allocations: 103.7 kB / 0.7914 GB, free: 7.699 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003755/0.2828, allocations: 354.8 kB / 0.7918 GB, free: 7.352 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003192/0.2831, allocations: 211.9 kB / 0.792 GB, free: 7.129 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001227/0.2833, allocations: 99.56 kB / 0.7921 GB, free: 7.031 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002762/0.2836, allocations: 127.5 kB / 0.7922 GB, free: 6.906 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.859e-05/0.2836, allocations: 12 kB / 0.7922 GB, free: 6.895 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001954/0.2838, allocations: 87.88 kB / 0.7923 GB, free: 6.809 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 8.35e-05/0.2839, allocations: 71.8 kB / 0.7924 GB, free: 6.738 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 5.285e-05/0.284, allocations: 61.58 kB / 0.7924 GB, free: 6.672 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002751/0.2842, allocations: 239.7 kB / 0.7927 GB, free: 6.438 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.2843, allocations: 0 / 0.7927 GB, free: 6.438 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.072e-06/0.2843, allocations: 0 / 0.7927 GB, free: 6.438 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.919e-06/0.2843, allocations: 0 / 0.7927 GB, free: 6.438 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0007317/0.285, allocations: 498.9 kB / 0.7931 GB, free: 5.898 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.112e-05/0.2851, allocations: 8.031 kB / 0.7931 GB, free: 5.891 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.669e-05/0.2851, allocations: 54.55 kB / 0.7932 GB, free: 5.828 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005488/0.2857, allocations: 87.62 kB / 0.7933 GB, free: 5.742 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002774/0.286, allocations: 242.6 kB / 0.7935 GB, free: 5.465 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.47e-05/0.286, allocations: 8.375 kB / 0.7935 GB, free: 5.457 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.693e-05/0.286, allocations: 16 kB / 0.7935 GB, free: 5.441 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004448/0.2865, allocations: 306.7 kB / 0.7938 GB, free: 5.117 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/0.2865, allocations: 0 / 0.7938 GB, free: 5.117 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.356e-05/0.2865, allocations: 8 kB / 0.7938 GB, free: 5.109 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.884e-05/0.2866, allocations: 20.31 kB / 0.7938 GB, free: 5.09 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003067/0.2869, allocations: 196.9 kB / 0.794 GB, free: 4.898 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001528/0.2884, allocations: 1.46 MB / 0.7955 GB, free: 3.277 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002656/0.2887, allocations: 175.7 kB / 0.7956 GB, free: 3.078 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.352e-05/0.2888, allocations: 32.84 kB / 0.7957 GB, free: 3.043 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 8.596e-06/0.2888, allocations: 0 / 0.7957 GB, free: 3.043 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.768e-05/0.2889, allocations: 42.55 kB / 0.7957 GB, free: 2.992 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 1.052e-06/0.2889, allocations: 3.938 kB / 0.7957 GB, free: 2.988 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.0005108/0.2894, allocations: 231.5 kB / 0.7959 GB, free: 2.734 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.103e-05/0.2894, allocations: 55.41 kB / 0.796 GB, free: 2.668 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000221/0.2897, allocations: 200.2 kB / 0.7962 GB, free: 2.465 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.875e-05/0.2897, allocations: 25.7 kB / 0.7962 GB, free: 2.434 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001171/0.2898, allocations: 159.6 kB / 0.7963 GB, free: 2.273 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.283e-05/0.2898, allocations: 23.7 kB / 0.7964 GB, free: 2.25 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.985e-06/0.2898, allocations: 4 kB / 0.7964 GB, free: 2.246 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001407/0.29, allocations: 322.8 kB / 0.7967 GB, free: 1.922 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.376e-05/0.2901, allocations: 39.98 kB / 0.7967 GB, free: 1.883 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001102/0.2902, allocations: 100.5 kB / 0.7968 GB, free: 1.754 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.956e-05/0.2903, allocations: 47.98 kB / 0.7969 GB, free: 1.707 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/0.2903, allocations: 0 / 0.7969 GB, free: 1.707 MB / 0.6075 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003282/0.2906, allocations: 190.3 kB / 0.797 GB, free: 1.512 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.398e-05/0.2907, allocations: 12 kB / 0.7971 GB, free: 1.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.201e-06/0.2907, allocations: 3.938 kB / 0.7971 GB, free: 1.496 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001917/0.2909, allocations: 28.84 kB / 0.7971 GB, free: 1.465 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001085/0.291, allocations: 23.98 kB / 0.7971 GB, free: 1.441 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001118/0.2921, allocations: 1.32 MB / 0.7984 GB, free: 15.98 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001148/0.2922, allocations: 23.77 kB / 0.7984 GB, free: 15.96 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.82e-05/0.2923, allocations: 8 kB / 0.7984 GB, free: 15.95 MB / 0.6231 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.0001337/0.2924, allocations: 149.9 kB / 0.7986 GB, free: 15.79 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.659e-05/0.2925, allocations: 15.77 kB / 0.7986 GB, free: 15.78 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.79e-05/0.2925, allocations: 21.39 kB / 0.7986 GB, free: 15.76 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/0.2925, allocations: 4 kB / 0.7986 GB, free: 15.76 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.151e-06/0.2925, allocations: 4.062 kB / 0.7986 GB, free: 15.75 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-06/0.2925, allocations: 0 / 0.7986 GB, free: 15.75 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005015/0.293, allocations: 451.2 kB / 0.799 GB, free: 15.25 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.293, allocations: 0 / 0.799 GB, free: 15.25 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.547e-05/0.2931, allocations: 8.094 kB / 0.799 GB, free: 15.25 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.212e-05/0.2932, allocations: 32.78 kB / 0.7991 GB, free: 15.21 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.334e-06/0.2932, allocations: 0 / 0.7991 GB, free: 15.21 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008558/0.294, allocations: 1.304 MB / 0.8004 GB, free: 13.78 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.294, allocations: 0 / 0.8004 GB, free: 13.78 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002259/0.2943, allocations: 216.1 kB / 0.8006 GB, free: 13.55 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 6.868e-05/0.2944, allocations: 96.91 kB / 0.8007 GB, free: 13.43 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.793e-05/0.2944, allocations: 0 / 0.8007 GB, free: 13.43 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001069/0.2945, allocations: 16.09 kB / 0.8007 GB, free: 13.42 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.445e-05/0.2945, allocations: 7.984 kB / 0.8007 GB, free: 13.41 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.34e-06/0.2945, allocations: 0 / 0.8007 GB, free: 13.41 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0001529/0.2947, allocations: 156.1 kB / 0.8008 GB, free: 13.26 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2947, allocations: 0 / 0.8008 GB, free: 13.26 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0005226/0.2952, allocations: 51.84 kB / 0.8009 GB, free: 13.21 MB / 0.6231 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.000574/0.2958, allocations: 0.7405 MB / 0.8016 GB, free: 12.43 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0004421/0.2963, allocations: 198.5 kB / 0.8018 GB, free: 12.23 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/0.2963, allocations: 0.5625 kB / 0.8018 GB, free: 12.23 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0001937/0.2965, allocations: 158.6 kB / 0.8019 GB, free: 12.06 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004189/0.2969, allocations: 28.12 kB / 0.802 GB, free: 12.03 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001524/0.2985, allocations: 1.04 MB / 0.803 GB, free: 10.91 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003486/0.2988, allocations: 0.7475 MB / 0.8037 GB, free: 10.14 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.000102/0.2989, allocations: 21.55 kB / 0.8037 GB, free: 10.12 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.565e-05/0.299, allocations: 55.41 kB / 0.8038 GB, free: 10.07 MB / 0.6231 GB Notification: Performance of SimCode: time 3.2e-07/0.299, allocations: 0 / 0.8038 GB, free: 10.07 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01725/0.3163, allocations: 3.354 MB / 0.8071 GB, free: 6.887 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002779/0.3166, allocations: 196.3 kB / 0.8072 GB, free: 6.652 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.837/2.153, allocations: 3.125 kB / 0.8072 GB, free: 6.652 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_8_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_8_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Electrical_DC_Lines_Examples_Resistance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Electrical_DC_Lines_Examples_Resistance.fmu > Buildings_8_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) Environment - environmentSimulation: