Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.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.AC.OnePhase.Lines.Examples.ACLine_RL,fileNamePrefix="Buildings_8_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL,fileNamePrefix="Buildings_8_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL",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.001271/0.001271, allocations: 105.4 kB / 15.7 MB, free: 24 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001151/0.001151, allocations: 186.3 kB / 16.64 MB, free: 6.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.486/1.486, allocations: 205.1 MB / 222.5 MB, free: 4.547 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.7/1.7, allocations: 292.3 MB / 0.549 GB, free: 12.75 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.001566/0.001566, allocations: 73.27 kB / 0.6718 GB, free: 26.29 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2434/0.245, allocations: 114.6 MB / 0.7837 GB, free: 13.26 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.007581/0.2526, allocations: 5.446 MB / 0.789 GB, free: 7.785 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.004402/0.257, allocations: 2.631 MB / 0.7915 GB, free: 5.141 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004048/0.2575, allocations: 23.81 kB / 0.7916 GB, free: 5.117 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.001757/0.2593, allocations: 0.6768 MB / 0.7922 GB, free: 4.438 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0009485/0.2602, allocations: 405.8 kB / 0.7926 GB, free: 4.039 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009822/0.2612, allocations: 390.2 kB / 0.793 GB, free: 3.66 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.001024/0.2623, allocations: 0.9591 MB / 0.7939 GB, free: 2.699 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006589/0.2629, allocations: 466.7 kB / 0.7944 GB, free: 2.238 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004674/0.2634, allocations: 370.6 kB / 0.7947 GB, free: 1.875 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005141/0.2639, allocations: 402.4 kB / 0.7951 GB, free: 1.48 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 7.166e-05/0.264, allocations: 48 kB / 0.7951 GB, free: 1.434 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006445/0.2647, allocations: 371.2 kB / 0.7955 GB, free: 1.07 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0002362/0.2649, allocations: 243.3 kB / 0.7957 GB, free: 0.832 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0003085/0.2652, allocations: 346.3 kB / 0.7961 GB, free: 0.4922 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.001031/0.2663, allocations: 0.9811 MB / 0.797 GB, free: 15.51 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.2663, allocations: 0 / 0.797 GB, free: 15.51 MB / 0.6231 GB Notification: Performance of FrontEnd: time 2.053e-06/0.2663, allocations: 0 / 0.797 GB, free: 15.51 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 1.31e-05/0.2663, allocations: 0 / 0.797 GB, free: 15.51 MB / 0.6231 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.001647/0.268, allocations: 0.9699 MB / 0.798 GB, free: 14.49 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 4.214e-05/0.268, allocations: 8.031 kB / 0.798 GB, free: 14.48 MB / 0.6231 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001067/0.2681, allocations: 94.7 kB / 0.7981 GB, free: 14.38 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001353/0.2695, allocations: 203.7 kB / 0.7983 GB, free: 14.18 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007866/0.2703, allocations: 0.514 MB / 0.7988 GB, free: 13.62 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.99e-05/0.2704, allocations: 41.36 kB / 0.7988 GB, free: 13.59 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001525/0.2705, allocations: 56.55 kB / 0.7989 GB, free: 13.53 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0011/0.2716, allocations: 0.8277 MB / 0.7997 GB, free: 12.62 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.123e-05/0.2717, allocations: 3.938 kB / 0.7997 GB, free: 12.62 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.55e-05/0.2717, allocations: 27.97 kB / 0.7997 GB, free: 12.59 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000179/0.2719, allocations: 68.95 kB / 0.7998 GB, free: 12.52 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008248/0.2727, allocations: 0.5735 MB / 0.8003 GB, free: 11.95 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004152/0.2769, allocations: 4.565 MB / 0.8048 GB, free: 7.035 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004436/0.2774, allocations: 299.2 kB / 0.8051 GB, free: 6.734 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002802/0.2777, allocations: 221.3 kB / 0.8053 GB, free: 6.516 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 3.077e-05/0.2777, allocations: 8.281 kB / 0.8053 GB, free: 6.508 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.059e-05/0.2777, allocations: 42.78 kB / 0.8053 GB, free: 6.457 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=33): time 2.254e-06/0.2777, allocations: 0 / 0.8053 GB, free: 6.457 MB / 0.6231 GB Notification: Performance of matching and sorting (n=40): time 0.005318/0.2831, allocations: 2.623 MB / 0.8079 GB, free: 3.707 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.732e-05/0.2831, allocations: 55.41 kB / 0.8079 GB, free: 3.641 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004759/0.2836, allocations: 461.9 kB / 0.8084 GB, free: 3.176 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 3.99e-05/0.2837, allocations: 37.7 kB / 0.8084 GB, free: 3.133 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002047/0.2839, allocations: 339.6 kB / 0.8087 GB, free: 2.793 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001047/0.284, allocations: 141.9 kB / 0.8089 GB, free: 2.652 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001545/0.2841, allocations: 102.2 kB / 0.809 GB, free: 2.547 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001242/0.2843, allocations: 362.8 kB / 0.8093 GB, free: 2.184 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000322/0.2846, allocations: 241 kB / 0.8095 GB, free: 1.949 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004277/0.285, allocations: 405.2 kB / 0.8099 GB, free: 1.477 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007977/0.2858, allocations: 0.6817 MB / 0.8106 GB, free: 0.7227 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/0.2859, allocations: 4 kB / 0.8106 GB, free: 0.7188 MB / 0.6231 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001586/0.2874, allocations: 0.9129 MB / 0.8115 GB, free: 15.79 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 1.978e-05/0.2875, allocations: 8 kB / 0.8115 GB, free: 15.78 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.477e-06/0.2875, allocations: 4.656 kB / 0.8115 GB, free: 15.78 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007398/0.2882, allocations: 226.4 kB / 0.8117 GB, free: 15.55 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004928/0.2887, allocations: 123.7 kB / 0.8118 GB, free: 15.43 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004864/0.2936, allocations: 5.34 MB / 0.8171 GB, free: 9.668 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005101/0.2942, allocations: 35.95 kB / 0.8171 GB, free: 9.633 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.407e-05/0.2942, allocations: 20 kB / 0.8171 GB, free: 9.613 MB / 0.6387 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (58): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,4,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003058/0.2945, allocations: 221.9 kB / 0.8173 GB, free: 9.387 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001108/0.2946, allocations: 59.28 kB / 0.8174 GB, free: 9.328 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00141/0.2961, allocations: 0.7742 MB / 0.8181 GB, free: 8.539 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.22e-06/0.2961, allocations: 4 kB / 0.8181 GB, free: 8.535 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.97e-06/0.2961, allocations: 4 kB / 0.8181 GB, free: 8.531 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.194e-06/0.2961, allocations: 3.984 kB / 0.8181 GB, free: 8.527 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002219/0.2983, allocations: 1.498 MB / 0.8196 GB, free: 6.941 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.968e-06/0.2983, allocations: 192 / 0.8196 GB, free: 6.941 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003798/0.2987, allocations: 75.89 kB / 0.8197 GB, free: 6.867 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006369/0.2994, allocations: 206.6 kB / 0.8199 GB, free: 6.656 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.257e-05/0.2994, allocations: 8 kB / 0.8199 GB, free: 6.648 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004563/0.304, allocations: 5.274 MB / 0.825 GB, free: 0.9453 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.304, allocations: 0 / 0.825 GB, free: 0.9453 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001714/0.3058, allocations: 1.139 MB / 0.8261 GB, free: 15.75 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002713/0.306, allocations: 172.3 kB / 0.8263 GB, free: 15.57 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.921e-05/0.3061, allocations: 15.94 kB / 0.8263 GB, free: 15.55 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003254/0.3065, allocations: 27.91 kB / 0.8264 GB, free: 15.52 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.024e-05/0.3066, allocations: 36.02 kB / 0.8264 GB, free: 15.49 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.404e-05/0.3066, allocations: 16 kB / 0.8264 GB, free: 15.47 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0003397/0.3069, allocations: 314.9 kB / 0.8267 GB, free: 15.17 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.1e-07/0.307, allocations: 0 / 0.8267 GB, free: 15.17 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0006783/0.3076, allocations: 164 kB / 0.8269 GB, free: 15.01 MB / 0.6544 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (RL_3.i_p[1],RL_3.i_p[2]) * 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 (30): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001951/0.3096, allocations: 1.688 MB / 0.8285 GB, free: 13.26 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.001648/0.3113, allocations: 1.009 MB / 0.8295 GB, free: 12.21 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/0.3113, allocations: 0 / 0.8295 GB, free: 12.21 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.000944/0.3122, allocations: 0.6875 MB / 0.8302 GB, free: 11.48 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000899/0.3131, allocations: 184.9 kB / 0.8303 GB, free: 11.31 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007678/0.3208, allocations: 5.598 MB / 0.8358 GB, free: 5.438 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006531/0.3215, allocations: 0.9494 MB / 0.8367 GB, free: 4.461 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.0003891/0.3219, allocations: 105 kB / 0.8368 GB, free: 4.359 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002753/0.3222, allocations: 211.4 kB / 0.837 GB, free: 4.152 MB / 0.6544 GB Notification: Performance of SimCode: time 1.583e-06/0.3222, allocations: 0 / 0.837 GB, free: 4.152 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04328/0.3655, allocations: 13.95 MB / 0.8507 GB, free: 6.449 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.18/10.55, allocations: 13.23 kB / 0.8507 GB, free: 6.438 MB / 0.67 GB (rm -f Buildings_8_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_8_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_8_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL.fmu > Buildings_8_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe 2>&1)