Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel.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.DC.Lines.Examples.RCModel,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_DC_Lines_Examples_RCModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.DC.Lines.Examples.RCModel,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_DC_Lines_Examples_RCModel",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.007523/0.007523, allocations: 95.05 kB / 15.73 MB, free: 6.039 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.001341/0.001341, allocations: 206 kB / 16.68 MB, free: 5.969 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.433/1.433, allocations: 222.9 MB / 240.4 MB, free: 4.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002482/0.002482, allocations: 279.2 kB / 290.8 MB, free: 1.949 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.041/1.041, allocations: 169.3 MB / 0.4983 GB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002789/0.002789, allocations: 88.33 kB / 0.681 GB, free: 15.98 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1813/0.1841, allocations: 86.98 MB / 0.7659 GB, free: 8.934 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Lines.Examples.RCModel): time 0.006484/0.1906, allocations: 4.347 MB / 0.7701 GB, free: 4.57 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.003175/0.1938, allocations: 1.862 MB / 0.772 GB, free: 2.699 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001852/0.194, allocations: 11.94 kB / 0.772 GB, free: 2.688 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001688/0.1957, allocations: 0.5915 MB / 0.7725 GB, free: 2.094 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0005934/0.1963, allocations: 254.6 kB / 0.7728 GB, free: 1.844 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006667/0.197, allocations: 258.4 kB / 0.773 GB, free: 1.594 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0007526/0.1977, allocations: 0.6187 MB / 0.7736 GB, free: 0.9727 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007286/0.1985, allocations: 458.8 kB / 0.7741 GB, free: 0.5234 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002788/0.1988, allocations: 255.1 kB / 0.7743 GB, free: 280 kB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000477/0.1993, allocations: 267 kB / 0.7746 GB, free: 12 kB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.3297/0.529, allocations: 34.3 kB / 0.7746 GB, free: 8.902 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008322/0.5298, allocations: 256.5 kB / 0.7749 GB, free: 8.902 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0003352/0.5302, allocations: 147.3 kB / 0.775 GB, free: 8.902 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0004875/0.5307, allocations: 226.1 kB / 0.7752 GB, free: 8.895 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001282/0.532, allocations: 0.6071 MB / 0.7758 GB, free: 8.812 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.532, allocations: 2.344 kB / 0.7758 GB, free: 8.812 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.623e-06/0.532, allocations: 0 / 0.7758 GB, free: 8.812 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 2.488e-05/0.5321, allocations: 0 / 0.7758 GB, free: 8.812 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: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.001658/0.5337, allocations: 0.7336 MB / 0.7765 GB, free: 8.305 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.457e-05/0.5338, allocations: 10.55 kB / 0.7765 GB, free: 8.305 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001163/0.5339, allocations: 80.75 kB / 0.7766 GB, free: 8.266 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001122/0.535, allocations: 150.4 kB / 0.7767 GB, free: 8.242 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005919/0.5356, allocations: 343 kB / 0.7771 GB, free: 8.008 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.523e-05/0.5357, allocations: 28.52 kB / 0.7771 GB, free: 8.008 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.009e-05/0.5358, allocations: 31.45 kB / 0.7771 GB, free: 8.008 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001013/0.5368, allocations: 0.532 MB / 0.7777 GB, free: 7.887 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.772e-05/0.5368, allocations: 5.125 kB / 0.7777 GB, free: 7.887 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.85e-05/0.5369, allocations: 14.34 kB / 0.7777 GB, free: 7.887 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.376e-05/0.537, allocations: 32.91 kB / 0.7777 GB, free: 7.887 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006805/0.5376, allocations: 389.7 kB / 0.7781 GB, free: 7.883 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002447/0.5401, allocations: 2.399 MB / 0.7804 GB, free: 6.117 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005218/0.5406, allocations: 272.1 kB / 0.7807 GB, free: 6.09 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001749/0.5408, allocations: 106.2 kB / 0.7808 GB, free: 6.082 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.377e-05/0.5408, allocations: 2.406 kB / 0.7808 GB, free: 6.082 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.8e-05/0.5409, allocations: 36.12 kB / 0.7808 GB, free: 6.043 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=20): time 1.512e-06/0.5409, allocations: 1.625 kB / 0.7808 GB, free: 6.043 MB / 0.5606 GB Notification: Performance of matching and sorting (n=23): time 0.002059/0.5429, allocations: 1.132 MB / 0.7819 GB, free: 5.496 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.808e-05/0.543, allocations: 54.16 kB / 0.782 GB, free: 5.434 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003179/0.5433, allocations: 312.2 kB / 0.7823 GB, free: 5.312 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.244e-05/0.5433, allocations: 30.11 kB / 0.7823 GB, free: 5.281 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001166/0.5435, allocations: 232.3 kB / 0.7825 GB, free: 5.125 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 5.451e-05/0.5435, allocations: 87.27 kB / 0.7826 GB, free: 5.07 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.676e-05/0.5436, allocations: 62.59 kB / 0.7827 GB, free: 5.047 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0003198/0.5439, allocations: 340.1 kB / 0.783 GB, free: 20.73 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001664/0.5441, allocations: 103.4 kB / 0.7831 GB, free: 20.73 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001957/0.5443, allocations: 195.3 kB / 0.7833 GB, free: 20.63 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003515/0.5447, allocations: 313.7 kB / 0.7836 GB, free: 20.53 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.5447, allocations: 0.9688 kB / 0.7836 GB, free: 20.53 MB / 0.5762 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007273/0.5454, allocations: 450.5 kB / 0.784 GB, free: 20.45 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.702e-05/0.5455, allocations: 5.625 kB / 0.784 GB, free: 20.45 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.703e-06/0.5455, allocations: 3.344 kB / 0.784 GB, free: 20.45 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003452/0.5458, allocations: 96.98 kB / 0.7841 GB, free: 20.42 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002741/0.5461, allocations: 64.62 kB / 0.7842 GB, free: 20.42 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003446/0.5496, allocations: 4.397 MB / 0.7885 GB, free: 16.14 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002751/0.5498, allocations: 8.188 kB / 0.7885 GB, free: 16.13 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.567e-05/0.5499, allocations: 9.781 kB / 0.7885 GB, free: 16.13 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (34): * Single equations (assignments): 31 * 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 {(1,1,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002414/0.5501, allocations: 188.2 kB / 0.7887 GB, free: 15.98 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.369e-05/0.5502, allocations: 35.59 kB / 0.7887 GB, free: 15.96 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.203e-05/0.5503, allocations: 42.33 kB / 0.7887 GB, free: 15.93 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.427e-06/0.5503, allocations: 3.062 kB / 0.7887 GB, free: 15.93 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.898e-06/0.5503, allocations: 1.156 kB / 0.7887 GB, free: 15.93 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.5503, allocations: 0 / 0.7887 GB, free: 15.93 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000479/0.5508, allocations: 404.5 kB / 0.7891 GB, free: 15.66 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.5508, allocations: 0 / 0.7891 GB, free: 15.66 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001993/0.551, allocations: 37.08 kB / 0.7892 GB, free: 15.66 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002867/0.5513, allocations: 97.39 kB / 0.7892 GB, free: 15.62 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.641e-05/0.5513, allocations: 5.906 kB / 0.7893 GB, free: 15.62 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003408/0.5547, allocations: 4.393 MB / 0.7935 GB, free: 11.32 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.5548, allocations: 0.5625 kB / 0.7935 GB, free: 11.32 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007923/0.5556, allocations: 0.5579 MB / 0.7941 GB, free: 11.01 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001558/0.5557, allocations: 131.2 kB / 0.7942 GB, free: 10.89 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.656e-05/0.5558, allocations: 0 / 0.7942 GB, free: 10.89 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002319/0.556, allocations: 12.45 kB / 0.7942 GB, free: 10.89 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.309e-05/0.5561, allocations: 18.94 kB / 0.7942 GB, free: 10.88 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.478e-05/0.5561, allocations: 8 kB / 0.7943 GB, free: 10.88 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002224/0.5563, allocations: 212.2 kB / 0.7945 GB, free: 10.76 MB / 0.5762 GB Notification: Performance of sort global known variables: time 3.5e-07/0.5563, allocations: 0 / 0.7945 GB, free: 10.76 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0006258/0.557, allocations: 99.47 kB / 0.7945 GB, free: 10.75 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (RC_dyn.Vc) * 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 (18): * Single equations (assignments): 15 * 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 {(1,1,100.0%), (1,2,100.0%), (1,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.001082/0.5581, allocations: 1.107 MB / 0.7956 GB, free: 9.906 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0008518/0.5589, allocations: 0.6062 MB / 0.7962 GB, free: 9.492 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.5589, allocations: 0 / 0.7962 GB, free: 9.492 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0004996/0.5594, allocations: 473.1 kB / 0.7967 GB, free: 9.109 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000562/0.56, allocations: 78.16 kB / 0.7967 GB, free: 9.086 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004357/0.5644, allocations: 3.375 MB / 0.8 GB, free: 6.906 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005587/0.565, allocations: 0.8331 MB / 0.8009 GB, free: 6.188 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.000231/0.5652, allocations: 61.73 kB / 0.8009 GB, free: 6.18 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001416/0.5653, allocations: 110.8 kB / 0.801 GB, free: 6.098 MB / 0.5762 GB Notification: Performance of SimCode: time 2.114e-06/0.5654, allocations: 0 / 0.801 GB, free: 6.098 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04618/0.6115, allocations: 7.801 MB / 0.8086 GB, free: 5.332 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.762/10.37, allocations: 14.14 kB / 0.8087 GB, free: 5.324 MB / 0.5762 GB (rm -f BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_DC_Lines_Examples_RCModel_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_DC_Lines_Examples_RCModel.fmu > BuildingSystems_BuildingSystems.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1)