Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.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_R,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Lines_Examples_ACLine_R",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Lines_Examples_ACLine_R",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.00138/0.00138, allocations: 112.5 kB / 15.73 MB, free: 68 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.001947/0.001947, allocations: 192.6 kB / 16.66 MB, free: 6.586 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.448/1.448, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002568/0.002568, allocations: 286.5 kB / 290.8 MB, free: 1.914 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.02/1.02, allocations: 169.3 MB / 0.4983 GB, free: 13.78 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002918/0.002918, allocations: 99.84 kB / 0.681 GB, free: 15.97 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1556/0.1585, allocations: 86.97 MB / 0.7659 GB, free: 8.922 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R): time 0.009198/0.1678, allocations: 6.729 MB / 0.7725 GB, free: 2.164 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.3023/0.4701, allocations: 3.009 MB / 0.7754 GB, free: 7.988 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006493/0.4708, allocations: 25.94 kB / 0.7754 GB, free: 7.988 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.002489/0.4733, allocations: 0.9526 MB / 0.7764 GB, free: 7.984 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001309/0.4746, allocations: 0.5034 MB / 0.7769 GB, free: 7.953 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001107/0.4758, allocations: 430.3 kB / 0.7773 GB, free: 7.918 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001792/0.4776, allocations: 1.219 MB / 0.7785 GB, free: 7.707 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00105/0.4786, allocations: 0.6632 MB / 0.7791 GB, free: 7.664 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007792/0.4794, allocations: 480.7 kB / 0.7796 GB, free: 7.574 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006482/0.4801, allocations: 0.5151 MB / 0.7801 GB, free: 7.48 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001119/0.4802, allocations: 70.81 kB / 0.7801 GB, free: 7.477 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006731/0.4809, allocations: 378.5 kB / 0.7805 GB, free: 7.445 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002407/0.4811, allocations: 308.6 kB / 0.7808 GB, free: 7.414 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0003678/0.4815, allocations: 452.1 kB / 0.7812 GB, free: 7.281 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001179/0.4827, allocations: 1.213 MB / 0.7824 GB, free: 7.098 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.4827, allocations: 3.938 kB / 0.7824 GB, free: 7.094 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.092e-06/0.4827, allocations: 0.7812 kB / 0.7824 GB, free: 7.094 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.58e-05/0.4827, allocations: 0 / 0.7824 GB, free: 7.094 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: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.001834/0.4846, allocations: 1.19 MB / 0.7836 GB, free: 6.395 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.873e-05/0.4846, allocations: 10.69 kB / 0.7836 GB, free: 6.395 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001382/0.4848, allocations: 118.2 kB / 0.7837 GB, free: 6.316 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001545/0.4863, allocations: 243 kB / 0.7839 GB, free: 6.258 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008617/0.4872, allocations: 0.5999 MB / 0.7845 GB, free: 5.879 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.732e-05/0.4873, allocations: 45.72 kB / 0.7846 GB, free: 5.863 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001085/0.4874, allocations: 65.19 kB / 0.7846 GB, free: 5.844 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001291/0.4887, allocations: 1.088 MB / 0.7857 GB, free: 5.234 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.498e-05/0.4887, allocations: 6.312 kB / 0.7857 GB, free: 5.23 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.111e-05/0.4888, allocations: 28.94 kB / 0.7857 GB, free: 5.215 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001365/0.4889, allocations: 86.36 kB / 0.7858 GB, free: 5.203 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001016/0.4899, allocations: 0.748 MB / 0.7865 GB, free: 4.938 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00466/0.4946, allocations: 5.886 MB / 0.7923 GB, free: 15.96 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008825/0.4955, allocations: 0.5596 MB / 0.7928 GB, free: 15.74 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003851/0.4959, allocations: 324.6 kB / 0.7931 GB, free: 15.61 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 3.101e-05/0.4959, allocations: 8.656 kB / 0.7931 GB, free: 15.61 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.949e-05/0.496, allocations: 39.25 kB / 0.7932 GB, free: 15.56 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=47): time 2.184e-06/0.496, allocations: 0 / 0.7932 GB, free: 15.56 MB / 0.5762 GB Notification: Performance of matching and sorting (n=48): time 0.003558/0.4996, allocations: 1.999 MB / 0.7951 GB, free: 14.5 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.255e-05/0.4996, allocations: 58.61 kB / 0.7952 GB, free: 14.44 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005207/0.5001, allocations: 0.5564 MB / 0.7957 GB, free: 14.18 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 4.63e-05/0.5002, allocations: 33.7 kB / 0.7958 GB, free: 14.14 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001925/0.5004, allocations: 430.1 kB / 0.7962 GB, free: 13.8 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 9.791e-05/0.5005, allocations: 175.7 kB / 0.7963 GB, free: 13.66 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001731/0.5007, allocations: 129.1 kB / 0.7965 GB, free: 13.59 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001734/0.5009, allocations: 381 kB / 0.7968 GB, free: 13.25 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003616/0.5012, allocations: 272.4 kB / 0.7971 GB, free: 13.15 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005486/0.5018, allocations: 494.3 kB / 0.7976 GB, free: 12.78 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001038/0.5028, allocations: 0.8133 MB / 0.7984 GB, free: 12.24 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.99e-06/0.5028, allocations: 2.688 kB / 0.7984 GB, free: 12.24 MB / 0.5762 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001945/0.5048, allocations: 1.087 MB / 0.7994 GB, free: 11.77 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.46e-05/0.5048, allocations: 8.031 kB / 0.7994 GB, free: 11.77 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.383e-05/0.5048, allocations: 7.156 kB / 0.7994 GB, free: 11.77 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008843/0.5057, allocations: 276.5 kB / 0.7997 GB, free: 11.69 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004941/0.5062, allocations: 125.7 kB / 0.7998 GB, free: 11.68 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007602/0.5138, allocations: 7.143 MB / 0.8068 GB, free: 5.461 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000686/0.5146, allocations: 36 kB / 0.8068 GB, free: 5.453 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.622e-05/0.5146, allocations: 31.58 kB / 0.8069 GB, free: 5.445 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (67): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,6,100.0%), (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.000399/0.515, allocations: 255.7 kB / 0.8071 GB, free: 5.258 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001217/0.5152, allocations: 75.91 kB / 0.8072 GB, free: 5.219 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001672/0.5168, allocations: 0.8918 MB / 0.808 GB, free: 4.82 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.032e-06/0.5169, allocations: 6.031 kB / 0.808 GB, free: 4.82 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.5169, allocations: 3.312 kB / 0.8081 GB, free: 4.82 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.107e-06/0.5169, allocations: 2.672 kB / 0.8081 GB, free: 4.82 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002885/0.5198, allocations: 1.73 MB / 0.8097 GB, free: 3.953 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.5198, allocations: 1.312 kB / 0.8097 GB, free: 3.953 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002829/0.5201, allocations: 68.52 kB / 0.8098 GB, free: 3.941 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007765/0.5209, allocations: 262 kB / 0.8101 GB, free: 3.859 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.915e-05/0.5209, allocations: 11.84 kB / 0.8101 GB, free: 3.852 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007269/0.5282, allocations: 7.132 MB / 0.817 GB, free: 13.62 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/0.5282, allocations: 1.156 kB / 0.817 GB, free: 13.62 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001802/0.53, allocations: 0.9951 MB / 0.818 GB, free: 13.1 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003683/0.5304, allocations: 192.7 kB / 0.8182 GB, free: 12.95 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001169/0.5306, allocations: 13.8 kB / 0.8182 GB, free: 12.94 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004362/0.531, allocations: 29.36 kB / 0.8182 GB, free: 12.93 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001339/0.5311, allocations: 41.62 kB / 0.8183 GB, free: 12.92 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.537e-05/0.5312, allocations: 14.28 kB / 0.8183 GB, free: 12.92 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0005115/0.5317, allocations: 386 kB / 0.8187 GB, free: 12.74 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2.21e-07/0.5317, allocations: 0 / 0.8187 GB, free: 12.74 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.001084/0.5328, allocations: 227.3 kB / 0.8189 GB, free: 12.72 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 simulation (31): * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002066/0.5349, allocations: 1.548 MB / 0.8204 GB, free: 11.65 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002262/0.5372, allocations: 1.271 MB / 0.8216 GB, free: 10.91 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 7.504e-06/0.5372, allocations: 5.5 kB / 0.8216 GB, free: 10.91 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.001368/0.5386, allocations: 0.9015 MB / 0.8225 GB, free: 10.29 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001253/0.5398, allocations: 222.9 kB / 0.8227 GB, free: 10.21 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009404/0.5492, allocations: 6.381 MB / 0.829 GB, free: 6.531 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007034/0.55, allocations: 1.006 MB / 0.8299 GB, free: 5.781 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0005127/0.5505, allocations: 126.9 kB / 0.8301 GB, free: 5.719 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003433/0.5509, allocations: 248.5 kB / 0.8303 GB, free: 5.508 MB / 0.5919 GB Notification: Performance of SimCode: time 7.31e-07/0.5509, allocations: 1.344 kB / 0.8303 GB, free: 5.508 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4605/1.011, allocations: 17.38 MB / 0.8473 GB, free: 12.34 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.22/12.23, allocations: 10.11 kB / 0.8473 GB, free: 12.33 MB / 0.6075 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Lines_Examples_ACLine_R_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Lines_Examples_ACLine_R.fmu > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe 2>&1)