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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001152/0.001151, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001444/0.001444, allocations: 195.8 kB / 16.25 MB, free: 6.621 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.36/1.36, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.843/2.843, allocations: 472.6 MB / 0.7448 GB, free: 4.871 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001266/0.001266, allocations: 62.64 kB / 0.9116 GB, free: 33.56 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2827/0.2839, allocations: 159.9 MB / 1.068 GB, free: 10.72 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.005768/0.2897, allocations: 4.401 MB / 1.072 GB, free: 6.297 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002878/0.2927, allocations: 1.839 MB / 1.074 GB, free: 4.449 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002554/0.2929, allocations: 15.94 kB / 1.074 GB, free: 4.434 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.001614/0.2946, allocations: 0.5567 MB / 1.074 GB, free: 3.875 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0006254/0.2953, allocations: 238.9 kB / 1.075 GB, free: 3.641 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006562/0.2959, allocations: 243 kB / 1.075 GB, free: 3.406 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0006252/0.2966, allocations: 0.6151 MB / 1.075 GB, free: 2.789 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00073/0.2973, allocations: 0.5029 MB / 1.076 GB, free: 2.281 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002437/0.2976, allocations: 243.2 kB / 1.076 GB, free: 2.043 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004654/0.298, allocations: 287 kB / 1.076 GB, free: 1.762 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.905e-05/0.2981, allocations: 36 kB / 1.076 GB, free: 1.727 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004483/0.2986, allocations: 251.5 kB / 1.077 GB, free: 1.48 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001462/0.2987, allocations: 151.6 kB / 1.077 GB, free: 1.332 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002165/0.2989, allocations: 218.9 kB / 1.077 GB, free: 1.117 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0006743/0.2996, allocations: 0.6192 MB / 1.078 GB, free: 0.4961 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.802e-06/0.2996, allocations: 4 kB / 1.078 GB, free: 0.4922 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.533e-06/0.2996, allocations: 0 / 1.078 GB, free: 0.4922 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.291e-05/0.2997, allocations: 0 / 1.078 GB, free: 0.4922 MB / 0.8262 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.001206/0.3009, allocations: 0.729 MB / 1.078 GB, free: 15.71 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.254e-05/0.3009, allocations: 8.031 kB / 1.078 GB, free: 15.71 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001006/0.3019, allocations: 156.2 kB / 1.079 GB, free: 15.55 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004425/0.3024, allocations: 326.5 kB / 1.079 GB, free: 15.2 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.47e-05/0.3024, allocations: 25.38 kB / 1.079 GB, free: 15.18 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.122e-05/0.3025, allocations: 32.36 kB / 1.079 GB, free: 15.14 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007723/0.3033, allocations: 0.5318 MB / 1.079 GB, free: 14.58 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.385e-05/0.3033, allocations: 7.938 kB / 1.079 GB, free: 14.57 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.337e-05/0.3034, allocations: 19.98 kB / 1.079 GB, free: 14.55 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.844e-05/0.3034, allocations: 28.64 kB / 1.079 GB, free: 14.52 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00058/0.304, allocations: 386.3 kB / 1.08 GB, free: 14.14 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002779/0.3068, allocations: 2.403 MB / 1.082 GB, free: 11.52 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005309/0.3073, allocations: 266.5 kB / 1.082 GB, free: 11.25 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001701/0.3075, allocations: 104.8 kB / 1.083 GB, free: 11.14 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.96e-05/0.3075, allocations: 4 kB / 1.083 GB, free: 11.14 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.911e-05/0.3076, allocations: 42.48 kB / 1.083 GB, free: 11.09 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=20): time 1.794e-06/0.3076, allocations: 0 / 1.083 GB, free: 11.09 MB / 0.8419 GB Notification: Performance of matching and sorting (n=23): time 0.002243/0.3098, allocations: 1.126 MB / 1.084 GB, free: 9.867 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.053e-05/0.3099, allocations: 55.34 kB / 1.084 GB, free: 9.801 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004611/0.3104, allocations: 304.4 kB / 1.084 GB, free: 9.5 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.455e-05/0.3104, allocations: 33.7 kB / 1.084 GB, free: 9.461 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001884/0.3106, allocations: 227.6 kB / 1.084 GB, free: 9.23 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 8.326e-05/0.3107, allocations: 90.73 kB / 1.084 GB, free: 9.141 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001091/0.3108, allocations: 58.03 kB / 1.084 GB, free: 9.078 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0002882/0.3111, allocations: 338.8 kB / 1.085 GB, free: 8.738 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001737/0.3113, allocations: 104.6 kB / 1.085 GB, free: 8.637 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002453/0.3115, allocations: 195.7 kB / 1.085 GB, free: 8.406 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005229/0.3121, allocations: 315.5 kB / 1.085 GB, free: 8.062 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/0.3121, allocations: 8 kB / 1.085 GB, free: 8.055 MB / 0.8419 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000791/0.3129, allocations: 441.7 kB / 1.086 GB, free: 7.609 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.243e-05/0.3129, allocations: 8 kB / 1.086 GB, free: 7.602 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.3129, allocations: 352 / 1.086 GB, free: 7.602 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003685/0.3133, allocations: 98.5 kB / 1.086 GB, free: 7.496 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003066/0.3136, allocations: 71.84 kB / 1.086 GB, free: 7.426 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003358/0.317, allocations: 4.383 MB / 1.09 GB, free: 2.617 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002508/0.3172, allocations: 8 kB / 1.09 GB, free: 2.609 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.468e-05/0.3173, allocations: 16 kB / 1.09 GB, free: 2.594 MB / 0.8419 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.0002452/0.3175, allocations: 183.5 kB / 1.09 GB, free: 2.406 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.82e-05/0.3176, allocations: 35.56 kB / 1.09 GB, free: 2.371 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.126e-05/0.3177, allocations: 42.31 kB / 1.09 GB, free: 2.332 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.471e-06/0.3177, allocations: 8.094 kB / 1.09 GB, free: 2.324 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.139e-05/0.3177, allocations: 7.922 kB / 1.091 GB, free: 2.316 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.561e-06/0.3177, allocations: 7.922 kB / 1.091 GB, free: 2.309 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004967/0.3182, allocations: 389.4 kB / 1.091 GB, free: 1.879 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.649e-06/0.3182, allocations: 3.984 kB / 1.091 GB, free: 1.875 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002003/0.3184, allocations: 39.92 kB / 1.091 GB, free: 1.836 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003184/0.3188, allocations: 90.5 kB / 1.091 GB, free: 1.738 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.914e-05/0.3188, allocations: 4 kB / 1.091 GB, free: 1.734 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003283/0.3221, allocations: 4.387 MB / 1.095 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.3221, allocations: 0 / 1.095 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008862/0.323, allocations: 0.5545 MB / 1.096 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001553/0.3232, allocations: 128.7 kB / 1.096 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.11e-05/0.3232, allocations: 8 kB / 1.096 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002104/0.3234, allocations: 11.98 kB / 1.096 GB, free: 12.18 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.139e-05/0.3235, allocations: 15.98 kB / 1.096 GB, free: 12.17 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.636e-05/0.3235, allocations: 7.938 kB / 1.096 GB, free: 12.16 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0002341/0.3238, allocations: 215.1 kB / 1.096 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3238, allocations: 0 / 1.096 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0005026/0.3243, allocations: 103.9 kB / 1.096 GB, free: 11.85 MB / 0.8575 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.0001556/0.3244, allocations: 101.9 kB / 1.096 GB, free: 11.75 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0009519/0.3254, allocations: 0.629 MB / 1.097 GB, free: 11.08 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.3254, allocations: 0 / 1.097 GB, free: 11.08 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0004913/0.3259, allocations: 480.3 kB / 1.097 GB, free: 10.57 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005249/0.3264, allocations: 76.41 kB / 1.098 GB, free: 10.49 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001258/0.3277, allocations: 0.856 MB / 1.098 GB, free: 9.609 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004388/0.3282, allocations: 0.8311 MB / 1.099 GB, free: 8.75 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0002255/0.3284, allocations: 58.92 kB / 1.099 GB, free: 8.691 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.283e-05/0.3285, allocations: 27.44 kB / 1.099 GB, free: 8.664 MB / 0.8575 GB Notification: Performance of SimCode: time 4.81e-07/0.3285, allocations: 0 / 1.099 GB, free: 8.664 MB / 0.8575 GB Notification: Performance of Templates: time 0.008539/0.337, allocations: 4.438 MB / 1.104 GB, free: 4.27 MB / 0.8575 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches