Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Electrical.DC.Lines.Examples.RCModel.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.RCModel,fileNamePrefix="Buildings_8_0_0_Buildings_Electrical_DC_Lines_Examples_RCModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.RCModel,fileNamePrefix="Buildings_8_0_0_Buildings_Electrical_DC_Lines_Examples_RCModel",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.681/2.681, allocations: 287.3 MB / 302.3 MB, free: 8.203 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.001515/0.001515, allocations: 178.7 kB / 370.8 MB, free: 10.89 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.133/2.133, allocations: 205.4 MB / 0.6295 GB, free: 10.65 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.001215/0.001215, allocations: 93.81 kB / 0.7428 GB, free: 6.656 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004887/0.0004889, allocations: 15.95 kB / 0.8657 GB, free: 140.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2199/0.2205, allocations: 115.3 MB / 0.9783 GB, free: 28.32 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.006148/0.2267, allocations: 3.69 MB / 0.9819 GB, free: 24.62 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.00372/0.2305, allocations: 1.724 MB / 0.9836 GB, free: 22.88 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003191/0.2308, allocations: 7.938 kB / 0.9836 GB, free: 22.88 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0002738/0.2311, allocations: 71.58 kB / 0.9836 GB, free: 22.8 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0006934/0.2318, allocations: 187.4 kB / 0.9838 GB, free: 22.62 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007888/0.2326, allocations: 192.5 kB / 0.984 GB, free: 22.43 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0006256/0.2333, allocations: 355.2 kB / 0.9843 GB, free: 22.09 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005217/0.2338, allocations: 392.9 kB / 0.9847 GB, free: 21.67 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002715/0.2341, allocations: 171.4 kB / 0.9849 GB, free: 21.5 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004103/0.2345, allocations: 187.3 kB / 0.9851 GB, free: 21.32 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 6.226e-05/0.2346, allocations: 16 kB / 0.9851 GB, free: 21.3 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004053/0.235, allocations: 123.7 kB / 0.9852 GB, free: 21.18 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 0.0001328/0.2352, allocations: 111.7 kB / 0.9853 GB, free: 21.07 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 9.254e-05/0.2353, allocations: 97.52 kB / 0.9854 GB, free: 20.97 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0005927/0.2359, allocations: 463 kB / 0.9858 GB, free: 20.52 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 2.925e-06/0.2359, allocations: 0 / 0.9858 GB, free: 20.52 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.663e-06/0.2359, allocations: 0 / 0.9858 GB, free: 20.52 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 6.632e-06/0.2359, allocations: 4 kB / 0.9858 GB, free: 20.52 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: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.001378/0.2373, allocations: 0.6665 MB / 0.9865 GB, free: 19.8 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.75e-05/0.2374, allocations: 16.02 kB / 0.9865 GB, free: 19.79 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001001/0.2375, allocations: 74.53 kB / 0.9866 GB, free: 19.7 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001499/0.239, allocations: 163.3 kB / 0.9867 GB, free: 19.54 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006082/0.2396, allocations: 313.4 kB / 0.987 GB, free: 19.19 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.25e-05/0.2397, allocations: 33 kB / 0.9871 GB, free: 19.16 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.438e-05/0.2397, allocations: 35.92 kB / 0.9871 GB, free: 19.12 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001053/0.2408, allocations: 0.5158 MB / 0.9876 GB, free: 18.57 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.94e-05/0.2408, allocations: 4 kB / 0.9876 GB, free: 18.57 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.036e-05/0.2409, allocations: 19.98 kB / 0.9876 GB, free: 18.55 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.311e-05/0.241, allocations: 36.58 kB / 0.9877 GB, free: 18.51 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000861/0.2419, allocations: 382.3 kB / 0.988 GB, free: 18.14 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003173/0.2451, allocations: 2.411 MB / 0.9904 GB, free: 15.5 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007661/0.2459, allocations: 276.2 kB / 0.9906 GB, free: 15.23 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.41e-05/0.2459, allocations: 4 kB / 0.9906 GB, free: 15.22 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.511e-05/0.246, allocations: 30.56 kB / 0.9907 GB, free: 15.18 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=20): time 3.166e-06/0.246, allocations: 0 / 0.9907 GB, free: 15.18 MB / 0.6198 GB Notification: Performance of matching and sorting (n=23): time 0.003076/0.2491, allocations: 1.127 MB / 0.9918 GB, free: 13.96 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.04e-05/0.2491, allocations: 51.41 kB / 0.9918 GB, free: 13.9 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004012/0.2496, allocations: 300.4 kB / 0.9921 GB, free: 13.59 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.793e-05/0.2496, allocations: 33.7 kB / 0.9921 GB, free: 13.55 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001298/0.2497, allocations: 227.6 kB / 0.9924 GB, free: 13.33 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 7.022e-05/0.2498, allocations: 82.84 kB / 0.9924 GB, free: 13.25 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.069e-05/0.2499, allocations: 8 kB / 0.9924 GB, free: 13.24 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001204/0.25, allocations: 342.8 kB / 0.9928 GB, free: 12.89 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002476/0.2502, allocations: 96.61 kB / 0.9929 GB, free: 12.8 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002945/0.2505, allocations: 187.7 kB / 0.993 GB, free: 12.57 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003079/0.2509, allocations: 133.1 kB / 0.9932 GB, free: 12.45 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.2509, allocations: 0 / 0.9932 GB, free: 12.45 MB / 0.6198 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001107/0.252, allocations: 438.9 kB / 0.9936 GB, free: 12 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.029e-05/0.252, allocations: 8.344 kB / 0.9936 GB, free: 12 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.094e-05/0.2521, allocations: 11.98 kB / 0.9936 GB, free: 11.98 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005344/0.2526, allocations: 106.3 kB / 0.9937 GB, free: 11.87 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000489/0.2531, allocations: 59.91 kB / 0.9938 GB, free: 11.81 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003593/0.2567, allocations: 4.099 MB / 0.9978 GB, free: 7.309 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000447/0.2572, allocations: 8 kB / 0.9978 GB, free: 7.301 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.346e-05/0.2573, allocations: 19.98 kB / 0.9978 GB, free: 7.281 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (34): * Single equations (assignments): 31 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002841/0.2576, allocations: 178 kB / 0.998 GB, free: 7.098 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001108/0.2577, allocations: 35.58 kB / 0.998 GB, free: 7.062 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001161/0.2578, allocations: 38.31 kB / 0.998 GB, free: 7.027 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.574e-06/0.2579, allocations: 4 kB / 0.998 GB, free: 7.023 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.512e-05/0.2579, allocations: 0 / 0.998 GB, free: 7.023 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.263e-06/0.2579, allocations: 0 / 0.998 GB, free: 7.023 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007432/0.2587, allocations: 397.4 kB / 0.9984 GB, free: 6.586 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.658e-06/0.2587, allocations: 3.938 kB / 0.9984 GB, free: 6.582 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004149/0.2591, allocations: 35.97 kB / 0.9985 GB, free: 6.547 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005823/0.2597, allocations: 102.6 kB / 0.9986 GB, free: 6.438 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.01e-05/0.2598, allocations: 3.984 kB / 0.9986 GB, free: 6.434 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003946/0.2637, allocations: 4.092 MB / 1.003 GB, free: 1.941 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.2638, allocations: 4.031 kB / 1.003 GB, free: 1.938 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001425/0.2652, allocations: 0.5561 MB / 1.003 GB, free: 1.355 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002144/0.2655, allocations: 124.8 kB / 1.003 GB, free: 1.215 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.105e-05/0.2656, allocations: 3.953 kB / 1.003 GB, free: 1.211 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000442/0.266, allocations: 15.98 kB / 1.003 GB, free: 1.195 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.877e-05/0.2661, allocations: 15.98 kB / 1.003 GB, free: 1.18 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.365e-05/0.2661, allocations: 4 kB / 1.003 GB, free: 1.176 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0002727/0.2664, allocations: 219.1 kB / 1.003 GB, free: 0.9648 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.81e-07/0.2664, allocations: 0 / 1.003 GB, free: 0.9648 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0006614/0.2671, allocations: 92 kB / 1.004 GB, free: 0.875 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (RC_dyn.Vc) * 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 (18): * Single equations (assignments): 15 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00153/0.2687, allocations: 1.103 MB / 1.005 GB, free: 15.74 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.001383/0.2701, allocations: 0.5939 MB / 1.005 GB, free: 15.11 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 5.23e-06/0.2701, allocations: 0 / 1.005 GB, free: 15.11 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0008123/0.2709, allocations: 479.8 kB / 1.006 GB, free: 14.6 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006715/0.2716, allocations: 76.81 kB / 1.006 GB, free: 14.52 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005552/0.2772, allocations: 3.718 MB / 1.009 GB, free: 10.71 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007134/0.2779, allocations: 0.8347 MB / 1.01 GB, free: 9.848 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.0004119/0.2784, allocations: 62.92 kB / 1.01 GB, free: 9.781 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002432/0.2786, allocations: 111.4 kB / 1.01 GB, free: 9.672 MB / 0.6355 GB Notification: Performance of SimCode: time 1.303e-06/0.2787, allocations: 0 / 1.01 GB, free: 9.672 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04259/0.3213, allocations: 7.105 MB / 1.017 GB, free: 2.758 MB / 0.6355 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003278/0.3216, allocations: 203.1 kB / 1.017 GB, free: 2.516 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.773/3.095, allocations: 4.062 kB / 1.017 GB, free: 2.512 MB / 0.6355 GB (rm -f Buildings_8.0.0_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo Buildings_8.0.0_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/Buildings_8.0.0_Buildings.Electrical.DC.Lines.Examples.RCModel.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Electrical_DC_Lines_Examples_RCModel_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Electrical_DC_Lines_Examples_RCModel.fmu > Buildings_8.0.0_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1)