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: "" <> buildModelFMU(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL,fileNamePrefix="BuildingSystems_BuildingSystems_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.005832/0.005832, allocations: 101.7 kB / 15.73 MB, free: 5.586 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.001357/0.001357, allocations: 191.7 kB / 16.67 MB, free: 5.523 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.386/1.386, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002407/0.002407, allocations: 291.7 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9573/0.9573, allocations: 169.3 MB / 0.4983 GB, free: 4.434 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002125/0.002125, allocations: 95.86 kB / 0.681 GB, free: 7.465 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4281/0.4303, allocations: 86.98 MB / 0.7659 GB, free: 3.836 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.007605/0.4379, allocations: 5.469 MB / 0.7712 GB, free: 14.35 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.004863/0.4428, allocations: 2.603 MB / 0.7738 GB, free: 11.73 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008172/0.4437, allocations: 31.81 kB / 0.7738 GB, free: 11.7 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.002305/0.4461, allocations: 0.6879 MB / 0.7745 GB, free: 11.02 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.00136/0.4475, allocations: 421.8 kB / 0.7749 GB, free: 10.6 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.001234/0.4487, allocations: 395.1 kB / 0.7753 GB, free: 10.21 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.001415/0.4501, allocations: 0.9552 MB / 0.7762 GB, free: 9.254 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008079/0.451, allocations: 466.5 kB / 0.7766 GB, free: 8.797 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007123/0.4517, allocations: 374.7 kB / 0.777 GB, free: 8.43 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006299/0.4523, allocations: 402.4 kB / 0.7774 GB, free: 8.035 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0001094/0.4525, allocations: 48 kB / 0.7774 GB, free: 7.988 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007661/0.4532, allocations: 359.3 kB / 0.7778 GB, free: 7.637 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002889/0.4535, allocations: 247.4 kB / 0.778 GB, free: 7.395 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0004149/0.454, allocations: 354.1 kB / 0.7783 GB, free: 7.047 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.001359/0.4553, allocations: 0.9656 MB / 0.7793 GB, free: 6.078 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.72e-06/0.4554, allocations: 3.938 kB / 0.7793 GB, free: 6.074 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.784e-06/0.4554, allocations: 4 kB / 0.7793 GB, free: 6.07 MB / 0.545 GB Notification: Performance of Transformations before backend: time 2.051e-05/0.4554, allocations: 0 / 0.7793 GB, free: 6.07 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.001871/0.4573, allocations: 0.966 MB / 0.7802 GB, free: 5.055 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.546e-05/0.4573, allocations: 8.031 kB / 0.7802 GB, free: 5.047 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001131/0.4575, allocations: 102.7 kB / 0.7803 GB, free: 4.938 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001462/0.4589, allocations: 199.8 kB / 0.7805 GB, free: 4.742 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009356/0.4599, allocations: 0.5179 MB / 0.781 GB, free: 4.188 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.712e-05/0.4599, allocations: 41.38 kB / 0.7811 GB, free: 4.145 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001704/0.4601, allocations: 52.55 kB / 0.7811 GB, free: 4.094 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001221/0.4614, allocations: 0.834 MB / 0.7819 GB, free: 3.184 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.741e-05/0.4614, allocations: 7.938 kB / 0.782 GB, free: 3.176 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.727e-05/0.4615, allocations: 20 kB / 0.782 GB, free: 3.156 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002042/0.4617, allocations: 72.92 kB / 0.782 GB, free: 3.086 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009252/0.4626, allocations: 0.5696 MB / 0.7826 GB, free: 2.512 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004799/0.4674, allocations: 4.569 MB / 0.7871 GB, free: 13.59 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005206/0.468, allocations: 295.3 kB / 0.7873 GB, free: 13.3 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003125/0.4683, allocations: 221.3 kB / 0.7876 GB, free: 13.08 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 3.446e-05/0.4684, allocations: 4.281 kB / 0.7876 GB, free: 13.07 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.059e-05/0.4684, allocations: 34.84 kB / 0.7876 GB, free: 13.03 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=33): time 2.004e-06/0.4684, allocations: 4 kB / 0.7876 GB, free: 13.03 MB / 0.5606 GB Notification: Performance of matching and sorting (n=40): time 0.00588/0.4743, allocations: 2.636 MB / 0.7902 GB, free: 10.26 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.117e-05/0.4744, allocations: 55.41 kB / 0.7902 GB, free: 10.2 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005339/0.4749, allocations: 457.9 kB / 0.7907 GB, free: 9.734 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 5.726e-05/0.475, allocations: 33.7 kB / 0.7907 GB, free: 9.695 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002193/0.4752, allocations: 339.6 kB / 0.791 GB, free: 9.359 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001319/0.4754, allocations: 145.9 kB / 0.7911 GB, free: 9.215 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001864/0.4755, allocations: 106.1 kB / 0.7913 GB, free: 9.102 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001585/0.4757, allocations: 366.8 kB / 0.7916 GB, free: 8.734 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003722/0.4761, allocations: 237 kB / 0.7918 GB, free: 8.504 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000471/0.4766, allocations: 402.5 kB / 0.7922 GB, free: 8.039 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008849/0.4775, allocations: 0.6779 MB / 0.7929 GB, free: 7.289 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.4775, allocations: 0 / 0.7929 GB, free: 7.289 MB / 0.5606 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001759/0.4793, allocations: 0.9173 MB / 0.7938 GB, free: 6.355 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.815e-05/0.4793, allocations: 8 kB / 0.7938 GB, free: 6.348 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.313e-05/0.4793, allocations: 7.938 kB / 0.7938 GB, free: 6.34 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008501/0.4802, allocations: 230.8 kB / 0.794 GB, free: 6.105 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005523/0.4808, allocations: 115.8 kB / 0.7941 GB, free: 5.992 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005469/0.4862, allocations: 5.332 MB / 0.7993 GB, free: 240 kB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005501/0.4868, allocations: 28.16 kB / 0.7993 GB, free: 212 kB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.685e-05/0.4869, allocations: 28 kB / 0.7994 GB, free: 184 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.0003616/0.4873, allocations: 225.6 kB / 0.7996 GB, free: 15.95 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001257/0.4874, allocations: 63.28 kB / 0.7997 GB, free: 15.89 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001575/0.489, allocations: 0.774 MB / 0.8004 GB, free: 15.09 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.516e-06/0.489, allocations: 4 kB / 0.8004 GB, free: 15.09 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.633e-06/0.489, allocations: 0 / 0.8004 GB, free: 15.09 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.113e-06/0.489, allocations: 7.984 kB / 0.8004 GB, free: 15.08 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002675/0.4917, allocations: 1.502 MB / 0.8019 GB, free: 13.49 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.344e-06/0.4918, allocations: 0 / 0.8019 GB, free: 13.49 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004059/0.4922, allocations: 71.89 kB / 0.802 GB, free: 13.42 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007222/0.4929, allocations: 210.4 kB / 0.8022 GB, free: 13.21 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.572e-05/0.493, allocations: 12 kB / 0.8022 GB, free: 13.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005141/0.4981, allocations: 5.265 MB / 0.8073 GB, free: 7.512 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.668e-06/0.4982, allocations: 7.969 kB / 0.8073 GB, free: 7.504 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001898/0.5001, allocations: 1.128 MB / 0.8084 GB, free: 6.328 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002879/0.5004, allocations: 176.4 kB / 0.8086 GB, free: 6.137 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.42e-05/0.5005, allocations: 8 kB / 0.8086 GB, free: 6.129 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003262/0.5008, allocations: 31.91 kB / 0.8086 GB, free: 6.098 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001089/0.5009, allocations: 31.95 kB / 0.8087 GB, free: 6.066 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.267e-05/0.5009, allocations: 12 kB / 0.8087 GB, free: 6.055 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003576/0.5013, allocations: 310.8 kB / 0.809 GB, free: 5.754 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.7e-07/0.5013, allocations: 4.062 kB / 0.809 GB, free: 5.75 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0007186/0.502, allocations: 172 kB / 0.8091 GB, free: 5.582 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.00207/0.5041, allocations: 1.707 MB / 0.8108 GB, free: 3.812 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001656/0.5058, allocations: 1.005 MB / 0.8118 GB, free: 2.77 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 9.859e-06/0.5058, allocations: 4.125 kB / 0.8118 GB, free: 2.766 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0009685/0.5068, allocations: 0.6758 MB / 0.8124 GB, free: 2.051 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009417/0.5077, allocations: 173.5 kB / 0.8126 GB, free: 1.891 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00759/0.5153, allocations: 5.61 MB / 0.8181 GB, free: 12 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006293/0.516, allocations: 0.9455 MB / 0.819 GB, free: 11.02 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.000339/0.5164, allocations: 117 kB / 0.8191 GB, free: 10.91 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000258/0.5166, allocations: 207.4 kB / 0.8193 GB, free: 10.7 MB / 0.5919 GB Notification: Performance of SimCode: time 4.61e-07/0.5166, allocations: 0 / 0.8193 GB, free: 10.7 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04221/0.5588, allocations: 14.12 MB / 0.8331 GB, free: 12.89 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.68/11.24, allocations: 13.41 kB / 0.8331 GB, free: 12.88 MB / 0.6075 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL.fmu > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe 2>&1)