Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Electrical_DC_Lines_Examples_Resistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_maint_8_0_x_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.1-maint.8.0.x/package.mo): time 1.773/1.773, allocations: 288.2 MB / 303.2 MB, free: 8.168 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.001314/0.001314, allocations: 182.4 kB / 371.8 MB, free: 10.26 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.578/1.578, allocations: 205.4 MB / 0.6305 GB, free: 10.02 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.000958/0.0009581, allocations: 86.92 kB / 0.7439 GB, free: 5.93 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004412/0.0004413, allocations: 11.41 kB / 0.8668 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.25/0.2504, allocations: 115.3 MB / 0.9795 GB, free: 27.58 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.003076/0.2536, allocations: 2.587 MB / 0.982 GB, free: 24.98 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.002165/0.2558, allocations: 1.221 MB / 0.9832 GB, free: 23.75 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001852/0.256, allocations: 4 kB / 0.9832 GB, free: 23.75 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0002199/0.2562, allocations: 43.69 kB / 0.9832 GB, free: 23.7 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0003989/0.2567, allocations: 99.69 kB / 0.9833 GB, free: 23.61 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003936/0.2571, allocations: 105.7 kB / 0.9834 GB, free: 23.5 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0002854/0.2574, allocations: 171.6 kB / 0.9836 GB, free: 23.34 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003702/0.2577, allocations: 208 kB / 0.9838 GB, free: 23.11 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000118/0.2579, allocations: 83.7 kB / 0.9839 GB, free: 23.03 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003119/0.2582, allocations: 95.66 kB / 0.984 GB, free: 22.94 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.508e-05/0.2582, allocations: 8 kB / 0.984 GB, free: 22.93 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002137/0.2584, allocations: 83.83 kB / 0.9841 GB, free: 22.85 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 6.755e-05/0.2585, allocations: 59.81 kB / 0.9841 GB, free: 22.79 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 5.888e-05/0.2586, allocations: 61.64 kB / 0.9842 GB, free: 22.72 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0003097/0.2589, allocations: 247.6 kB / 0.9844 GB, free: 22.48 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.2589, allocations: 0 / 0.9844 GB, free: 22.48 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.345e-06/0.2589, allocations: 0 / 0.9844 GB, free: 22.48 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.71e-06/0.2589, allocations: 0 / 0.9844 GB, free: 22.48 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.0007095/0.2597, allocations: 0.491 MB / 0.9849 GB, free: 21.94 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.632e-05/0.2597, allocations: 12.02 kB / 0.9849 GB, free: 21.93 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.342e-05/0.2598, allocations: 54.55 kB / 0.985 GB, free: 21.86 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005648/0.2603, allocations: 87.69 kB / 0.985 GB, free: 21.78 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002815/0.2606, allocations: 239.3 kB / 0.9853 GB, free: 21.5 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.242e-05/0.2607, allocations: 20.38 kB / 0.9853 GB, free: 21.48 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.864e-05/0.2607, allocations: 16 kB / 0.9853 GB, free: 21.47 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003745/0.2611, allocations: 294.9 kB / 0.9856 GB, free: 21.15 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.236e-05/0.2611, allocations: 0 / 0.9856 GB, free: 21.15 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.76e-05/0.2611, allocations: 15.98 kB / 0.9856 GB, free: 21.14 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.85e-05/0.2612, allocations: 20.31 kB / 0.9856 GB, free: 21.12 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002601/0.2614, allocations: 193 kB / 0.9858 GB, free: 20.93 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001138/0.2626, allocations: 1.46 MB / 0.9872 GB, free: 19.31 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002307/0.2628, allocations: 171.7 kB / 0.9874 GB, free: 19.11 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.126e-05/0.2629, allocations: 4 kB / 0.9874 GB, free: 19.11 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.88e-05/0.2629, allocations: 34.56 kB / 0.9874 GB, free: 19.07 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=7): time 1.173e-06/0.2629, allocations: 0 / 0.9874 GB, free: 19.07 MB / 0.6198 GB Notification: Performance of matching and sorting (n=7): time 0.0004174/0.2633, allocations: 231.5 kB / 0.9876 GB, free: 18.81 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.221e-05/0.2633, allocations: 55.41 kB / 0.9877 GB, free: 18.75 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000139/0.2635, allocations: 198.4 kB / 0.9879 GB, free: 18.54 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.142e-05/0.2635, allocations: 25.7 kB / 0.9879 GB, free: 18.51 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 6.166e-05/0.2636, allocations: 159.6 kB / 0.9881 GB, free: 18.35 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.617e-05/0.2636, allocations: 23.7 kB / 0.9881 GB, free: 18.33 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.512e-06/0.2636, allocations: 4 kB / 0.9881 GB, free: 18.32 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.323e-05/0.2637, allocations: 322.8 kB / 0.9884 GB, free: 18 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.286e-05/0.2637, allocations: 39.98 kB / 0.9884 GB, free: 17.96 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.088e-05/0.2638, allocations: 96.56 kB / 0.9885 GB, free: 17.84 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.206e-05/0.2639, allocations: 55.86 kB / 0.9886 GB, free: 17.78 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.2639, allocations: 0 / 0.9886 GB, free: 17.78 MB / 0.6198 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002387/0.2641, allocations: 186.3 kB / 0.9888 GB, free: 17.59 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.741e-05/0.2642, allocations: 16.02 kB / 0.9888 GB, free: 17.57 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.541e-06/0.2642, allocations: 3.938 kB / 0.9888 GB, free: 17.57 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001532/0.2643, allocations: 32.88 kB / 0.9888 GB, free: 17.54 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001003/0.2644, allocations: 27.92 kB / 0.9888 GB, free: 17.51 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007033/0.2652, allocations: 1.323 MB / 0.9901 GB, free: 16.05 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001056/0.2653, allocations: 19.84 kB / 0.9902 GB, free: 16.04 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.127e-06/0.2653, allocations: 4 kB / 0.9902 GB, free: 16.03 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 9.466e-05/0.2654, allocations: 150 kB / 0.9903 GB, free: 15.88 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.174e-05/0.2654, allocations: 19.77 kB / 0.9903 GB, free: 15.86 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.553e-05/0.2655, allocations: 21.39 kB / 0.9903 GB, free: 15.84 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.465e-06/0.2655, allocations: 4 kB / 0.9903 GB, free: 15.84 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.585e-06/0.2655, allocations: 4.062 kB / 0.9903 GB, free: 15.83 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.985e-06/0.2655, allocations: 0 / 0.9903 GB, free: 15.83 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004102/0.2659, allocations: 447.2 kB / 0.9908 GB, free: 15.34 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.654e-06/0.2659, allocations: 0 / 0.9908 GB, free: 15.34 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.486e-05/0.2659, allocations: 8 kB / 0.9908 GB, free: 15.33 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.894e-05/0.266, allocations: 24.84 kB / 0.9908 GB, free: 15.3 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.846e-06/0.266, allocations: 4 kB / 0.9908 GB, free: 15.3 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006347/0.2667, allocations: 1.315 MB / 0.9921 GB, free: 13.84 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.2667, allocations: 0 / 0.9921 GB, free: 13.84 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001966/0.2669, allocations: 220.1 kB / 0.9923 GB, free: 13.61 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 5.613e-05/0.267, allocations: 100.9 kB / 0.9924 GB, free: 13.49 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.789e-05/0.267, allocations: 0 / 0.9924 GB, free: 13.49 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001012/0.2671, allocations: 8.188 kB / 0.9924 GB, free: 13.48 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.211e-05/0.2671, allocations: 8 kB / 0.9924 GB, free: 13.48 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.052e-06/0.2671, allocations: 3.984 kB / 0.9924 GB, free: 13.47 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 9.669e-05/0.2672, allocations: 148.2 kB / 0.9926 GB, free: 13.33 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2672, allocations: 0 / 0.9926 GB, free: 13.33 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003146/0.2676, allocations: 55.8 kB / 0.9926 GB, free: 13.27 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.0004285/0.268, allocations: 0.741 MB / 0.9933 GB, free: 12.5 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0003537/0.2684, allocations: 206.5 kB / 0.9935 GB, free: 12.29 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.2684, allocations: 0.5625 kB / 0.9935 GB, free: 12.29 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.000126/0.2685, allocations: 154.7 kB / 0.9937 GB, free: 12.12 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003089/0.2688, allocations: 37.97 kB / 0.9937 GB, free: 12.09 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001498/0.2703, allocations: 2.381 MB / 0.996 GB, free: 9.613 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001989/0.2706, allocations: 0.7475 MB / 0.9968 GB, free: 8.84 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0001007/0.2707, allocations: 25.53 kB / 0.9968 GB, free: 8.812 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.483e-05/0.2708, allocations: 51.42 kB / 0.9968 GB, free: 8.762 MB / 0.6198 GB Notification: Performance of SimCode: time 2.3e-07/0.2708, allocations: 0 / 0.9968 GB, free: 8.762 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0163/0.2871, allocations: 3.35 MB / 1 GB, free: 5.59 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000158/0.2873, allocations: 209.4 kB / 1 GB, free: 5.352 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.674/1.962, allocations: 0 / 1 GB, free: 5.352 MB / 0.6198 GB (rm -f Buildings_maint.8.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Electrical_DC_Lines_Examples_Resistance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Electrical_DC_Lines_Examples_Resistance.fmu > Buildings_maint.8.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1)