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.71/2.71, allocations: 287.3 MB / 302.3 MB, free: 8.227 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.001587/0.001587, allocations: 190.3 kB / 370.8 MB, free: 10.84 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.163/2.163, allocations: 205.4 MB / 0.6295 GB, free: 10.57 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.00111/0.00111, allocations: 89.27 kB / 0.7428 GB, free: 6.598 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004837/0.0004841, allocations: 11.88 kB / 0.8657 GB, free: 140.6 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2504/0.2509, allocations: 115.3 MB / 0.9783 GB, free: 28.3 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.004075/0.2551, allocations: 2.595 MB / 0.9808 GB, free: 25.7 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.002507/0.2576, allocations: 1.221 MB / 0.982 GB, free: 24.46 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001954/0.2579, allocations: 7.938 kB / 0.982 GB, free: 24.46 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0001961/0.2581, allocations: 35.77 kB / 0.982 GB, free: 24.42 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0004993/0.2586, allocations: 107.7 kB / 0.9822 GB, free: 24.32 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004805/0.2591, allocations: 95.73 kB / 0.9822 GB, free: 24.22 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0003438/0.2595, allocations: 171.6 kB / 0.9824 GB, free: 24.05 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003408/0.2598, allocations: 204 kB / 0.9826 GB, free: 23.84 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001469/0.26, allocations: 87.7 kB / 0.9827 GB, free: 23.75 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002707/0.2603, allocations: 95.64 kB / 0.9828 GB, free: 23.66 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 3.421e-05/0.2603, allocations: 8 kB / 0.9828 GB, free: 23.65 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002832/0.2606, allocations: 83.83 kB / 0.9829 GB, free: 23.57 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 8.539e-05/0.2607, allocations: 67.8 kB / 0.9829 GB, free: 23.5 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 7.057e-05/0.2608, allocations: 57.64 kB / 0.983 GB, free: 23.44 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0003772/0.2612, allocations: 247.7 kB / 0.9832 GB, free: 23.2 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.2612, allocations: 0 / 0.9832 GB, free: 23.2 MB / 0.6198 GB Notification: Performance of FrontEnd: time 3.005e-06/0.2612, allocations: 0 / 0.9832 GB, free: 23.2 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 6.903e-06/0.2612, allocations: 3.938 kB / 0.9832 GB, free: 23.19 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.0008502/0.2621, allocations: 494.9 kB / 0.9837 GB, free: 22.66 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.436e-05/0.2622, allocations: 12.02 kB / 0.9837 GB, free: 22.64 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.671e-05/0.2622, allocations: 50.55 kB / 0.9838 GB, free: 22.59 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008561/0.2631, allocations: 87.69 kB / 0.9838 GB, free: 22.5 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003607/0.2635, allocations: 248.6 kB / 0.9841 GB, free: 22.22 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.211e-05/0.2635, allocations: 12.38 kB / 0.9841 GB, free: 22.21 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.285e-05/0.2636, allocations: 16 kB / 0.9841 GB, free: 22.19 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006076/0.2642, allocations: 299.2 kB / 0.9844 GB, free: 21.87 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.658e-05/0.2642, allocations: 0 / 0.9844 GB, free: 21.87 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.689e-05/0.2643, allocations: 11.95 kB / 0.9844 GB, free: 21.86 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.113e-05/0.2643, allocations: 20.36 kB / 0.9844 GB, free: 21.84 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004656/0.2648, allocations: 196.8 kB / 0.9846 GB, free: 21.65 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001841/0.2667, allocations: 1.456 MB / 0.986 GB, free: 20.03 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003414/0.2671, allocations: 183.7 kB / 0.9862 GB, free: 19.82 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.754e-05/0.2671, allocations: 4 kB / 0.9862 GB, free: 19.82 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.02e-05/0.2671, allocations: 30.56 kB / 0.9862 GB, free: 19.78 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=7): time 3.396e-06/0.2672, allocations: 0 / 0.9862 GB, free: 19.78 MB / 0.6198 GB Notification: Performance of matching and sorting (n=7): time 0.0006253/0.2678, allocations: 235.3 kB / 0.9865 GB, free: 19.52 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.857e-05/0.2678, allocations: 55.41 kB / 0.9865 GB, free: 19.46 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000235/0.2681, allocations: 198.2 kB / 0.9867 GB, free: 19.25 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.843e-05/0.2681, allocations: 29.7 kB / 0.9867 GB, free: 19.22 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 9.173e-05/0.2682, allocations: 159.6 kB / 0.9869 GB, free: 19.06 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.282e-05/0.2682, allocations: 23.7 kB / 0.9869 GB, free: 19.04 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.586e-06/0.2683, allocations: 0 / 0.9869 GB, free: 19.04 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.96e-05/0.2683, allocations: 326.8 kB / 0.9872 GB, free: 18.71 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.277e-05/0.2684, allocations: 35.98 kB / 0.9873 GB, free: 18.67 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001225/0.2686, allocations: 100.5 kB / 0.9873 GB, free: 18.54 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001267/0.2687, allocations: 51.98 kB / 0.9874 GB, free: 18.49 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.2687, allocations: 0 / 0.9874 GB, free: 18.49 MB / 0.6198 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004465/0.2692, allocations: 190 kB / 0.9876 GB, free: 18.3 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.225e-05/0.2692, allocations: 10.19 kB / 0.9876 GB, free: 18.29 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.745e-06/0.2692, allocations: 288 / 0.9876 GB, free: 18.29 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002179/0.2695, allocations: 32.84 kB / 0.9876 GB, free: 18.25 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001924/0.2697, allocations: 27.92 kB / 0.9876 GB, free: 18.23 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001154/0.2708, allocations: 1.327 MB / 0.9889 GB, free: 16.77 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002173/0.2711, allocations: 11.84 kB / 0.989 GB, free: 16.76 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.785e-05/0.2711, allocations: 12 kB / 0.989 GB, free: 16.75 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.0001721/0.2713, allocations: 145.7 kB / 0.9891 GB, free: 16.59 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.741e-05/0.2714, allocations: 15.83 kB / 0.9891 GB, free: 16.58 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.841e-05/0.2714, allocations: 25.58 kB / 0.9891 GB, free: 16.56 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.2714, allocations: 8.094 kB / 0.9892 GB, free: 16.55 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.2714, allocations: 3.938 kB / 0.9892 GB, free: 16.55 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.2715, allocations: 0 / 0.9892 GB, free: 16.55 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006785/0.2721, allocations: 447.2 kB / 0.9896 GB, free: 16.05 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.2722, allocations: 0 / 0.9896 GB, free: 16.05 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.176e-05/0.2723, allocations: 8 kB / 0.9896 GB, free: 16.04 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001358/0.2724, allocations: 24.84 kB / 0.9896 GB, free: 16.02 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.087e-05/0.2724, allocations: 4 kB / 0.9896 GB, free: 16.01 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009823/0.2734, allocations: 1.319 MB / 0.9909 GB, free: 14.55 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.2735, allocations: 0 / 0.9909 GB, free: 14.55 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002948/0.2738, allocations: 220.1 kB / 0.9911 GB, free: 14.32 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 8.577e-05/0.2739, allocations: 96.91 kB / 0.9912 GB, free: 14.21 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.145e-05/0.2739, allocations: 4 kB / 0.9912 GB, free: 14.2 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001806/0.2741, allocations: 4 kB / 0.9912 GB, free: 14.2 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.79e-05/0.2741, allocations: 4.062 kB / 0.9912 GB, free: 14.2 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.054e-05/0.2742, allocations: 7.953 kB / 0.9912 GB, free: 14.19 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0001545/0.2743, allocations: 152.1 kB / 0.9914 GB, free: 14.04 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.61e-07/0.2744, allocations: 0 / 0.9914 GB, free: 14.04 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0004676/0.2748, allocations: 51.84 kB / 0.9914 GB, free: 13.99 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.0005178/0.2754, allocations: 0.7377 MB / 0.9921 GB, free: 13.22 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0004693/0.2759, allocations: 206.5 kB / 0.9923 GB, free: 13.01 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.2759, allocations: 0 / 0.9923 GB, free: 13.01 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001877/0.2761, allocations: 147.2 kB / 0.9925 GB, free: 12.85 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004143/0.2765, allocations: 40.11 kB / 0.9925 GB, free: 12.81 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002204/0.2787, allocations: 2.382 MB / 0.9948 GB, free: 10.34 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002527/0.279, allocations: 0.7555 MB / 0.9956 GB, free: 9.555 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0001756/0.2792, allocations: 25.53 kB / 0.9956 GB, free: 9.527 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001025/0.2793, allocations: 55.36 kB / 0.9957 GB, free: 9.473 MB / 0.6198 GB Notification: Performance of SimCode: time 1.322e-06/0.2793, allocations: 0 / 0.9957 GB, free: 9.473 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02325/0.3026, allocations: 3.34 MB / 0.9989 GB, free: 6.301 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002259/0.3029, allocations: 201.3 kB / 0.9991 GB, free: 6.062 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.572/2.875, allocations: 0 / 0.9991 GB, free: 6.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)