Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.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/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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(Buildings.Electrical.DC.Lines.Examples.RCModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen_ss.I|sen_dyn.I|RC_ss.Vc|RC_dyn.Vc",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel") translateModel(Buildings.Electrical.DC.Lines.Examples.RCModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen_ss.I|sen_dyn.I|RC_ss.Vc|RC_dyn.Vc",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001222/0.001222, allocations: 98.92 kB / 15.05 MB, free: 1.105 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.0009718/0.0009719, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.596/1.596, allocations: 223.2 MB / 239.9 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.863/2.863, allocations: 436.5 MB / 0.7104 GB, free: 7.852 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003871/0.0003874, allocations: 8 kB / 0.8708 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.883/0.8834, allocations: 153.7 MB / 1.021 GB, free: 1.062 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.004628/0.8881, allocations: 3.682 MB / 1.024 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.003274/0.8914, allocations: 1.731 MB / 1.026 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002322/0.8916, allocations: 7.938 kB / 1.026 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.000218/0.8919, allocations: 71.53 kB / 1.026 GB, free: 11.55 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0004911/0.8924, allocations: 199.3 kB / 1.026 GB, free: 11.35 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005318/0.8929, allocations: 179.6 kB / 1.027 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0005686/0.8935, allocations: 367.1 kB / 1.027 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005174/0.894, allocations: 384.9 kB / 1.027 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002023/0.8942, allocations: 175.4 kB / 1.027 GB, free: 10.24 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003633/0.8946, allocations: 179.3 kB / 1.028 GB, free: 10.06 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.899e-05/0.8946, allocations: 20 kB / 1.028 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002829/0.8949, allocations: 119.8 kB / 1.028 GB, free: 9.926 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001258/0.8951, allocations: 119.6 kB / 1.028 GB, free: 9.809 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 9.209e-05/0.8952, allocations: 97.52 kB / 1.028 GB, free: 9.707 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004922/0.8957, allocations: 448.8 kB / 1.028 GB, free: 9.27 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.8957, allocations: 4 kB / 1.028 GB, free: 9.266 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.164e-06/0.8957, allocations: 0 / 1.028 GB, free: 9.266 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.983e-06/0.8957, allocations: 0 / 1.028 GB, free: 9.266 MB / 0.7794 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.001139/0.8968, allocations: 0.655 MB / 1.029 GB, free: 8.562 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.4e-05/0.8969, allocations: 19.92 kB / 1.029 GB, free: 8.543 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00108/0.898, allocations: 159.4 kB / 1.029 GB, free: 8.387 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005389/0.8985, allocations: 329.2 kB / 1.029 GB, free: 8.023 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.171e-05/0.8986, allocations: 32.94 kB / 1.03 GB, free: 7.992 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.441e-05/0.8987, allocations: 32 kB / 1.03 GB, free: 7.961 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009378/0.8996, allocations: 0.5236 MB / 1.03 GB, free: 7.402 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.553e-05/0.8996, allocations: 4 kB / 1.03 GB, free: 7.398 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00015/0.8998, allocations: 15.98 kB / 1.03 GB, free: 7.383 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.937e-05/0.8998, allocations: 32.64 kB / 1.03 GB, free: 7.352 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006519/0.9005, allocations: 386.2 kB / 1.03 GB, free: 6.973 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002949/0.9035, allocations: 2.407 MB / 1.033 GB, free: 4.344 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000692/0.9042, allocations: 266.5 kB / 1.033 GB, free: 4.074 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.722e-05/0.9042, allocations: 0 / 1.033 GB, free: 4.074 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.49e-05/0.9042, allocations: 38.56 kB / 1.033 GB, free: 4.027 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=20): time 2.464e-06/0.9043, allocations: 0 / 1.033 GB, free: 4.027 MB / 0.7794 GB Notification: Performance of matching and sorting (n=23): time 0.002523/0.9068, allocations: 1.123 MB / 1.034 GB, free: 2.809 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.599e-05/0.9068, allocations: 59.34 kB / 1.034 GB, free: 2.738 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003381/0.9072, allocations: 304.4 kB / 1.035 GB, free: 2.434 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.43e-05/0.9072, allocations: 25.7 kB / 1.035 GB, free: 2.402 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001676/0.9074, allocations: 235.6 kB / 1.035 GB, free: 2.164 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 6.381e-05/0.9075, allocations: 82.78 kB / 1.035 GB, free: 2.082 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.635e-05/0.9075, allocations: 12 kB / 1.035 GB, free: 2.07 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001496/0.9076, allocations: 342.8 kB / 1.035 GB, free: 1.727 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001623/0.9078, allocations: 96.59 kB / 1.035 GB, free: 1.629 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002206/0.908, allocations: 191.7 kB / 1.036 GB, free: 1.402 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002073/0.9083, allocations: 133.1 kB / 1.036 GB, free: 1.273 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.9083, allocations: 4 kB / 1.036 GB, free: 1.27 MB / 0.7794 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007098/0.909, allocations: 438.2 kB / 1.036 GB, free: 0.8281 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.979e-05/0.909, allocations: 12.06 kB / 1.036 GB, free: 0.8164 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.763e-06/0.909, allocations: 0 / 1.036 GB, free: 0.8164 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003536/0.9094, allocations: 90.5 kB / 1.036 GB, free: 0.7188 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002765/0.9097, allocations: 71.91 kB / 1.036 GB, free: 0.6484 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003232/0.9129, allocations: 4.099 MB / 1.04 GB, free: 12.14 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002215/0.9131, allocations: 11.95 kB / 1.04 GB, free: 12.13 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.598e-05/0.9132, allocations: 12 kB / 1.04 GB, free: 12.12 MB / 0.795 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002207/0.9134, allocations: 185.9 kB / 1.04 GB, free: 11.93 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.648e-05/0.9135, allocations: 31.62 kB / 1.04 GB, free: 11.9 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.709e-05/0.9136, allocations: 38.3 kB / 1.04 GB, free: 11.86 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.878e-06/0.9136, allocations: 4 kB / 1.04 GB, free: 11.86 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.193e-05/0.9136, allocations: 3.984 kB / 1.04 GB, free: 11.85 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.9136, allocations: 4 kB / 1.04 GB, free: 11.85 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004872/0.9141, allocations: 401.4 kB / 1.041 GB, free: 11.41 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.9141, allocations: 0 / 1.041 GB, free: 11.41 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001876/0.9143, allocations: 35.92 kB / 1.041 GB, free: 11.37 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002778/0.9146, allocations: 90.5 kB / 1.041 GB, free: 11.27 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.613e-05/0.9146, allocations: 4 kB / 1.041 GB, free: 11.27 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002964/0.9176, allocations: 4.103 MB / 1.045 GB, free: 6.766 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.9176, allocations: 3.953 kB / 1.045 GB, free: 6.762 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008043/0.9184, allocations: 0.551 MB / 1.046 GB, free: 6.188 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001392/0.9186, allocations: 124.7 kB / 1.046 GB, free: 6.047 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.736e-05/0.9186, allocations: 8 kB / 1.046 GB, free: 6.039 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002002/0.9188, allocations: 12 kB / 1.046 GB, free: 6.027 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.749e-05/0.9189, allocations: 19.97 kB / 1.046 GB, free: 6.008 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.417e-05/0.9189, allocations: 8.062 kB / 1.046 GB, free: 6 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0002041/0.9191, allocations: 207.1 kB / 1.046 GB, free: 5.801 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.9e-07/0.9191, allocations: 3.938 kB / 1.046 GB, free: 5.797 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0004688/0.9196, allocations: 96 kB / 1.046 GB, free: 5.703 MB / 0.795 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001363/0.9198, allocations: 111.2 kB / 1.046 GB, free: 5.582 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.00082/0.9206, allocations: 0.6053 MB / 1.047 GB, free: 4.938 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.9206, allocations: 0 / 1.047 GB, free: 4.938 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0004977/0.9211, allocations: 477.1 kB / 1.047 GB, free: 4.434 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000439/0.9215, allocations: 72.55 kB / 1.047 GB, free: 4.363 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001274/0.9228, allocations: 0.85 MB / 1.048 GB, free: 3.492 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004589/0.9233, allocations: 0.8465 MB / 1.049 GB, free: 2.621 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002055/0.9235, allocations: 54.94 kB / 1.049 GB, free: 2.566 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.058e-05/0.9236, allocations: 23.44 kB / 1.049 GB, free: 2.543 MB / 0.795 GB Notification: Performance of SimCode: time 6.41e-07/0.9236, allocations: 0 / 1.049 GB, free: 2.543 MB / 0.795 GB Notification: Performance of Templates: time 0.00813/0.9317, allocations: 4.089 MB / 1.053 GB, free: 14.5 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.sim & ./Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Lines_Examples_RCModel.csv","../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches