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.005443/0.005443, allocations: 101.2 kB / 15.73 MB, free: 6.043 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.001297/0.001298, allocations: 195.6 kB / 16.67 MB, free: 5.977 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.329/1.329, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002145/0.002145, allocations: 285.8 kB / 290.8 MB, free: 1.934 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9249/0.9249, allocations: 169.3 MB / 0.4983 GB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001746/0.001746, allocations: 99.84 kB / 0.6814 GB, free: 15.48 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1556/0.1573, allocations: 86.98 MB / 0.7664 GB, free: 8.426 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.006871/0.1642, allocations: 5.455 MB / 0.7717 GB, free: 2.945 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.004124/0.1684, allocations: 2.634 MB / 0.7743 GB, free: 308 kB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004106/0.1688, allocations: 19.88 kB / 0.7743 GB, free: 288 kB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.3241/0.4929, allocations: 0.6613 MB / 0.7749 GB, free: 8.879 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001158/0.4941, allocations: 427.1 kB / 0.7754 GB, free: 8.879 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009645/0.495, allocations: 393.5 kB / 0.7757 GB, free: 8.871 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0009099/0.496, allocations: 0.9516 MB / 0.7767 GB, free: 8.867 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006028/0.4966, allocations: 465.7 kB / 0.7771 GB, free: 8.852 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004472/0.497, allocations: 389.1 kB / 0.7775 GB, free: 8.789 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004604/0.4975, allocations: 397.5 kB / 0.7779 GB, free: 8.719 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 8.03e-05/0.4976, allocations: 47.62 kB / 0.7779 GB, free: 8.719 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005873/0.4982, allocations: 357.8 kB / 0.7782 GB, free: 8.691 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002491/0.4984, allocations: 250.5 kB / 0.7785 GB, free: 8.66 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0003462/0.4988, allocations: 349.4 kB / 0.7788 GB, free: 8.555 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0009124/0.4997, allocations: 0.9716 MB / 0.7798 GB, free: 8.41 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.4997, allocations: 1.062 kB / 0.7798 GB, free: 8.41 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.684e-06/0.4997, allocations: 0 / 0.7798 GB, free: 8.41 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.69e-05/0.4998, allocations: 4.5 kB / 0.7798 GB, free: 8.406 MB / 0.5606 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.001345/0.5011, allocations: 0.9636 MB / 0.7807 GB, free: 7.809 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.53e-05/0.5011, allocations: 9.688 kB / 0.7807 GB, free: 7.809 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00136/0.5025, allocations: 198 kB / 0.7809 GB, free: 7.77 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006408/0.5032, allocations: 0.5196 MB / 0.7814 GB, free: 7.477 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.974e-05/0.5032, allocations: 37.56 kB / 0.7814 GB, free: 7.473 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001458/0.5034, allocations: 56.78 kB / 0.7815 GB, free: 7.469 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001002/0.5044, allocations: 0.8293 MB / 0.7823 GB, free: 7.211 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.433e-05/0.5044, allocations: 5.312 kB / 0.7823 GB, free: 7.211 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.152e-05/0.5045, allocations: 23.17 kB / 0.7823 GB, free: 7.211 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001961/0.5047, allocations: 66.5 kB / 0.7824 GB, free: 7.211 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008179/0.5055, allocations: 0.5758 MB / 0.783 GB, free: 7.117 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003561/0.5091, allocations: 4.568 MB / 0.7874 GB, free: 19.25 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003983/0.5095, allocations: 291.2 kB / 0.7877 GB, free: 19.14 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002608/0.5097, allocations: 230.4 kB / 0.7879 GB, free: 19.04 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 2.476e-05/0.5098, allocations: 3 kB / 0.7879 GB, free: 19.04 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.812e-05/0.5098, allocations: 38.22 kB / 0.788 GB, free: 19 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=33): time 1.924e-06/0.5098, allocations: 0 / 0.788 GB, free: 19 MB / 0.5762 GB Notification: Performance of matching and sorting (n=40): time 0.005103/0.5149, allocations: 2.626 MB / 0.7905 GB, free: 17.62 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.629e-05/0.515, allocations: 56.06 kB / 0.7906 GB, free: 17.56 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004513/0.5154, allocations: 462.1 kB / 0.791 GB, free: 17.33 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.896e-05/0.5155, allocations: 35.89 kB / 0.7911 GB, free: 17.29 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001663/0.5157, allocations: 337.8 kB / 0.7914 GB, free: 17.02 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 8.085e-05/0.5157, allocations: 146.1 kB / 0.7915 GB, free: 16.91 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001508/0.5159, allocations: 107.3 kB / 0.7916 GB, free: 16.85 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001368/0.516, allocations: 364.2 kB / 0.792 GB, free: 16.52 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003405/0.5164, allocations: 236.4 kB / 0.7922 GB, free: 16.43 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003859/0.5168, allocations: 407.4 kB / 0.7926 GB, free: 16.14 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007114/0.5175, allocations: 0.6815 MB / 0.7932 GB, free: 15.7 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.456e-06/0.5175, allocations: 3.281 kB / 0.7933 GB, free: 15.7 MB / 0.5762 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001522/0.519, allocations: 0.9207 MB / 0.7942 GB, free: 15.32 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.663e-05/0.5191, allocations: 10.33 kB / 0.7942 GB, free: 15.32 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.5191, allocations: 6.375 kB / 0.7942 GB, free: 15.32 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000741/0.5198, allocations: 220.9 kB / 0.7944 GB, free: 15.25 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004946/0.5203, allocations: 120.5 kB / 0.7945 GB, free: 15.23 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004814/0.5252, allocations: 5.335 MB / 0.7997 GB, free: 10.58 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004665/0.5256, allocations: 34.75 kB / 0.7997 GB, free: 10.57 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.381e-05/0.5257, allocations: 22.59 kB / 0.7998 GB, free: 10.57 MB / 0.5762 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.0003166/0.526, allocations: 218.7 kB / 0.8 GB, free: 10.4 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.963e-05/0.5261, allocations: 60.12 kB / 0.8 GB, free: 10.37 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001561/0.5277, allocations: 0.7749 MB / 0.8008 GB, free: 10.03 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.043e-06/0.5277, allocations: 3.781 kB / 0.8008 GB, free: 10.03 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.5277, allocations: 6.375 kB / 0.8008 GB, free: 10.03 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.022e-06/0.5277, allocations: 7.266 kB / 0.8008 GB, free: 10.02 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002643/0.5304, allocations: 1.496 MB / 0.8023 GB, free: 9.254 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.29e-06/0.5304, allocations: 2.562 kB / 0.8023 GB, free: 9.254 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004085/0.5308, allocations: 62.91 kB / 0.8023 GB, free: 9.254 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008125/0.5316, allocations: 207.1 kB / 0.8025 GB, free: 9.188 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.906e-05/0.5317, allocations: 14.38 kB / 0.8025 GB, free: 9.18 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005405/0.5371, allocations: 5.271 MB / 0.8077 GB, free: 4.547 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.5371, allocations: 3 kB / 0.8077 GB, free: 4.547 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001892/0.539, allocations: 1.135 MB / 0.8088 GB, free: 3.965 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002805/0.5393, allocations: 172.1 kB / 0.809 GB, free: 3.824 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.753e-05/0.5394, allocations: 13.41 kB / 0.809 GB, free: 3.816 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003409/0.5397, allocations: 24.17 kB / 0.809 GB, free: 3.812 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001027/0.5399, allocations: 38.61 kB / 0.809 GB, free: 3.801 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.78e-05/0.5399, allocations: 10.53 kB / 0.809 GB, free: 3.801 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.00042/0.5403, allocations: 312.6 kB / 0.8093 GB, free: 3.652 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.41e-07/0.5403, allocations: 0 / 0.8093 GB, free: 3.652 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0007722/0.5411, allocations: 166.9 kB / 0.8095 GB, free: 3.637 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.000171/0.5413, allocations: 117.3 kB / 0.8096 GB, free: 3.531 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001813/0.5431, allocations: 1.017 MB / 0.8106 GB, free: 2.941 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.5431, allocations: 0.6562 kB / 0.8106 GB, free: 2.941 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0009731/0.5441, allocations: 0.6827 MB / 0.8113 GB, free: 2.48 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008844/0.545, allocations: 184 kB / 0.8114 GB, free: 2.422 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002136/0.5471, allocations: 1.259 MB / 0.8127 GB, free: 1.715 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005584/0.5477, allocations: 0.9458 MB / 0.8136 GB, free: 0.9883 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0003326/0.548, allocations: 119.8 kB / 0.8137 GB, free: 0.9609 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001043/0.5482, allocations: 41.33 kB / 0.8137 GB, free: 0.9492 MB / 0.5762 GB Notification: Performance of SimCode: time 1.703e-06/0.5482, allocations: 3.938 kB / 0.8138 GB, free: 0.9453 MB / 0.5762 GB Notification: Performance of Templates: time 0.01592/0.5641, allocations: 8.968 MB / 0.8225 GB, free: 14.27 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)