Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: translateModel(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL") translateModel(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001301/0.001301, allocations: 105.8 kB / 16.41 MB, free: 6.465 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.001308/0.001308, allocations: 187 kB / 17.34 MB, free: 5.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.461/1.461, allocations: 222.9 MB / 241 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002391/0.002391, allocations: 291.9 kB / 291.5 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.073/1.073, allocations: 169.3 MB / 0.499 GB, free: 4.43 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001808/0.001808, allocations: 95.86 kB / 0.6821 GB, free: 6.961 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5637/0.5655, allocations: 86.97 MB / 0.767 GB, free: 3.922 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.007791/0.5733, allocations: 5.459 MB / 0.7724 GB, free: 14.44 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.005044/0.5784, allocations: 2.623 MB / 0.7749 GB, free: 11.81 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005125/0.5789, allocations: 19.88 kB / 0.775 GB, free: 11.79 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001931/0.5809, allocations: 0.6768 MB / 0.7756 GB, free: 11.11 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.001212/0.5822, allocations: 409.7 kB / 0.776 GB, free: 10.71 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.001198/0.5834, allocations: 389.2 kB / 0.7764 GB, free: 10.33 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.001362/0.5847, allocations: 0.9552 MB / 0.7773 GB, free: 9.367 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007445/0.5855, allocations: 462.5 kB / 0.7778 GB, free: 8.914 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006664/0.5862, allocations: 378.6 kB / 0.7781 GB, free: 8.543 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005819/0.5868, allocations: 406.4 kB / 0.7785 GB, free: 8.145 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 8.075e-05/0.5869, allocations: 48 kB / 0.7786 GB, free: 8.098 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007793/0.5876, allocations: 367.3 kB / 0.7789 GB, free: 7.738 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002593/0.5879, allocations: 247.3 kB / 0.7791 GB, free: 7.496 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0003408/0.5883, allocations: 350.2 kB / 0.7795 GB, free: 7.152 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.001398/0.5897, allocations: 0.968 MB / 0.7804 GB, free: 6.184 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 7.825e-06/0.5897, allocations: 4 kB / 0.7804 GB, free: 6.18 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.914e-06/0.5897, allocations: 0 / 0.7804 GB, free: 6.18 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.824e-05/0.5897, allocations: 0 / 0.7804 GB, free: 6.18 MB / 0.545 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.001728/0.5915, allocations: 0.9738 MB / 0.7814 GB, free: 5.156 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/0.5915, allocations: 8.031 kB / 0.7814 GB, free: 5.148 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001419/0.5929, allocations: 195.8 kB / 0.7816 GB, free: 4.957 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007856/0.5937, allocations: 0.514 MB / 0.7821 GB, free: 4.406 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.835e-05/0.5938, allocations: 37.36 kB / 0.7821 GB, free: 4.367 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001835/0.594, allocations: 64.42 kB / 0.7822 GB, free: 4.305 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001224/0.5952, allocations: 0.8264 MB / 0.783 GB, free: 3.402 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.194e-05/0.5952, allocations: 3.938 kB / 0.783 GB, free: 3.398 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.417e-05/0.5953, allocations: 27.98 kB / 0.783 GB, free: 3.371 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000198/0.5955, allocations: 68.94 kB / 0.7831 GB, free: 3.305 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008727/0.5964, allocations: 0.5658 MB / 0.7836 GB, free: 2.734 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004648/0.6011, allocations: 4.558 MB / 0.7881 GB, free: 13.83 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004997/0.6016, allocations: 311.1 kB / 0.7884 GB, free: 13.52 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000313/0.6019, allocations: 225.3 kB / 0.7886 GB, free: 13.29 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.876e-05/0.6019, allocations: 4.281 kB / 0.7886 GB, free: 13.29 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.168e-05/0.602, allocations: 38.84 kB / 0.7886 GB, free: 13.24 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=33): time 2.665e-06/0.602, allocations: 0 / 0.7886 GB, free: 13.24 MB / 0.5606 GB Notification: Performance of matching and sorting (n=40): time 0.005786/0.6078, allocations: 2.62 MB / 0.7912 GB, free: 10.49 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.074e-05/0.6079, allocations: 55.41 kB / 0.7912 GB, free: 10.43 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005253/0.6084, allocations: 461.9 kB / 0.7917 GB, free: 9.961 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 4.323e-05/0.6084, allocations: 33.7 kB / 0.7917 GB, free: 9.922 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002533/0.6087, allocations: 347.6 kB / 0.792 GB, free: 9.578 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001136/0.6088, allocations: 145.9 kB / 0.7922 GB, free: 9.434 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000176/0.609, allocations: 102.2 kB / 0.7923 GB, free: 9.324 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001662/0.6092, allocations: 362.8 kB / 0.7926 GB, free: 8.961 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003552/0.6095, allocations: 237 kB / 0.7928 GB, free: 8.73 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005077/0.6101, allocations: 406.4 kB / 0.7932 GB, free: 8.262 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008837/0.611, allocations: 0.674 MB / 0.7939 GB, free: 7.516 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.611, allocations: 0 / 0.7939 GB, free: 7.516 MB / 0.5606 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.00169/0.6127, allocations: 0.921 MB / 0.7948 GB, free: 6.578 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.319e-05/0.6127, allocations: 8 kB / 0.7948 GB, free: 6.57 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.252e-05/0.6127, allocations: 12.59 kB / 0.7948 GB, free: 6.559 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007965/0.6135, allocations: 222.4 kB / 0.795 GB, free: 6.332 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005263/0.6141, allocations: 111.8 kB / 0.7951 GB, free: 6.223 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005369/0.6194, allocations: 5.34 MB / 0.8003 GB, free: 468 kB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005445/0.62, allocations: 36.03 kB / 0.8004 GB, free: 432 kB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.86e-05/0.6201, allocations: 20 kB / 0.8004 GB, free: 412 kB / 0.5606 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.0003377/0.6204, allocations: 229.6 kB / 0.8006 GB, free: 172 kB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.7e-05/0.6205, allocations: 59.28 kB / 0.8007 GB, free: 112 kB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001584/0.6221, allocations: 0.7744 MB / 0.8014 GB, free: 15.31 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.763e-06/0.6221, allocations: 4.141 kB / 0.8014 GB, free: 15.31 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.6221, allocations: 4 kB / 0.8014 GB, free: 15.3 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.067e-05/0.6222, allocations: 7.969 kB / 0.8014 GB, free: 15.3 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002437/0.6246, allocations: 1.49 MB / 0.8029 GB, free: 13.72 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.744e-06/0.6246, allocations: 7.984 kB / 0.8029 GB, free: 13.71 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003818/0.625, allocations: 67.89 kB / 0.803 GB, free: 13.64 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006707/0.6257, allocations: 202.6 kB / 0.8032 GB, free: 13.44 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.948e-05/0.6257, allocations: 8 kB / 0.8032 GB, free: 13.43 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005302/0.631, allocations: 5.281 MB / 0.8083 GB, free: 7.73 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.6311, allocations: 0 / 0.8083 GB, free: 7.73 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001831/0.6329, allocations: 1.135 MB / 0.8094 GB, free: 6.547 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002524/0.6332, allocations: 168.4 kB / 0.8096 GB, free: 6.363 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.633e-05/0.6333, allocations: 15.94 kB / 0.8096 GB, free: 6.348 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003343/0.6336, allocations: 24.16 kB / 0.8096 GB, free: 6.324 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001029/0.6337, allocations: 51.89 kB / 0.8097 GB, free: 6.273 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.732e-05/0.6337, allocations: 12 kB / 0.8097 GB, free: 6.262 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003897/0.6341, allocations: 310.9 kB / 0.81 GB, free: 5.961 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.61e-07/0.6342, allocations: 0 / 0.81 GB, free: 5.961 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0007334/0.6349, allocations: 164 kB / 0.8102 GB, free: 5.801 MB / 0.5762 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.000192/0.6351, allocations: 119.2 kB / 0.8103 GB, free: 5.672 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001807/0.6369, allocations: 1.008 MB / 0.8113 GB, free: 4.625 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 6.182e-06/0.6369, allocations: 4 kB / 0.8113 GB, free: 4.621 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001044/0.638, allocations: 0.676 MB / 0.8119 GB, free: 3.906 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001/0.639, allocations: 180.7 kB / 0.8121 GB, free: 3.742 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002342/0.6414, allocations: 1.318 MB / 0.8134 GB, free: 2.371 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006737/0.642, allocations: 0.9494 MB / 0.8143 GB, free: 1.395 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001516/0.6422, allocations: 39.44 kB / 0.8143 GB, free: 1.355 MB / 0.5762 GB Notification: Performance of SimCode: time 1.192e-06/0.6422, allocations: 0 / 0.8143 GB, free: 1.355 MB / 0.5762 GB Notification: Performance of Templates: time 0.0211/0.6633, allocations: 14.82 MB / 0.8288 GB, free: 2.582 MB / 0.5919 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.sim & ./BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe 2>&1)