Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/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_10_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_10_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.001487/0.001487, allocations: 102.2 kB / 16.35 MB, free: 5.875 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.001686/0.001686, allocations: 196.8 kB / 17.3 MB, free: 5.516 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.353/1.353, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.409/2.409, allocations: 437.1 MB / 0.7112 GB, free: 4.391 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001253/0.001254, allocations: 60.28 kB / 0.8707 GB, free: 1.453 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3348/0.3361, allocations: 151.6 MB / 1.019 GB, free: 9.855 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.00603/0.3422, allocations: 4.365 MB / 1.023 GB, free: 5.469 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.002847/0.345, allocations: 1.858 MB / 1.025 GB, free: 3.602 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002038/0.3453, allocations: 11.94 kB / 1.025 GB, free: 3.59 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.001601/0.3469, allocations: 0.6012 MB / 1.025 GB, free: 2.988 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0005062/0.3474, allocations: 262.6 kB / 1.026 GB, free: 2.73 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006338/0.348, allocations: 247.4 kB / 1.026 GB, free: 2.488 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0006546/0.3487, allocations: 0.6111 MB / 1.027 GB, free: 1.875 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006478/0.3494, allocations: 466.8 kB / 1.027 GB, free: 1.422 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002419/0.3496, allocations: 251.1 kB / 1.027 GB, free: 1.176 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004029/0.35, allocations: 263 kB / 1.027 GB, free: 0.918 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 6.248e-05/0.3501, allocations: 36 kB / 1.028 GB, free: 0.8828 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003916/0.3505, allocations: 259.4 kB / 1.028 GB, free: 0.6289 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001326/0.3506, allocations: 151.6 kB / 1.028 GB, free: 492 kB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.000199/0.3508, allocations: 214.9 kB / 1.028 GB, free: 276 kB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.000618/0.3515, allocations: 0.6075 MB / 1.029 GB, free: 15.66 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.3515, allocations: 0 / 1.029 GB, free: 15.66 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.342e-06/0.3515, allocations: 0 / 1.029 GB, free: 15.66 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.105e-06/0.3515, allocations: 0 / 1.029 GB, free: 15.66 MB / 0.8106 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.001204/0.3527, allocations: 0.733 MB / 1.029 GB, free: 14.88 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.604e-05/0.3528, allocations: 8.922 kB / 1.029 GB, free: 14.87 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009527/0.3537, allocations: 144.3 kB / 1.03 GB, free: 14.73 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000484/0.3542, allocations: 342.4 kB / 1.03 GB, free: 14.36 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.538e-05/0.3543, allocations: 25.38 kB / 1.03 GB, free: 14.33 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.022e-05/0.3543, allocations: 32.36 kB / 1.03 GB, free: 14.3 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000713/0.355, allocations: 0.5395 MB / 1.03 GB, free: 13.72 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.415e-05/0.3551, allocations: 4 kB / 1.03 GB, free: 13.72 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.046e-05/0.3551, allocations: 16 kB / 1.03 GB, free: 13.7 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.669e-05/0.3552, allocations: 32.64 kB / 1.031 GB, free: 13.67 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005526/0.3557, allocations: 386.3 kB / 1.031 GB, free: 13.29 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002466/0.3582, allocations: 2.392 MB / 1.033 GB, free: 10.68 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005208/0.3587, allocations: 262.5 kB / 1.033 GB, free: 10.41 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001619/0.3589, allocations: 118.4 kB / 1.034 GB, free: 10.3 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.808e-05/0.3589, allocations: 11.94 kB / 1.034 GB, free: 10.29 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.82e-05/0.359, allocations: 34.56 kB / 1.034 GB, free: 10.24 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=20): time 1.423e-06/0.359, allocations: 0 / 1.034 GB, free: 10.24 MB / 0.8106 GB Notification: Performance of matching and sorting (n=23): time 0.002207/0.3612, allocations: 1.128 MB / 1.035 GB, free: 9.016 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.308e-05/0.3612, allocations: 51.41 kB / 1.035 GB, free: 8.953 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002932/0.3615, allocations: 308.3 kB / 1.035 GB, free: 8.641 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.624e-05/0.3616, allocations: 29.7 kB / 1.035 GB, free: 8.605 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001499/0.3617, allocations: 231.6 kB / 1.035 GB, free: 8.375 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 6.583e-05/0.3618, allocations: 74.91 kB / 1.035 GB, free: 8.301 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.564e-05/0.3619, allocations: 65.88 kB / 1.035 GB, free: 8.227 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001351/0.362, allocations: 338.8 kB / 1.036 GB, free: 7.887 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001701/0.3622, allocations: 108.6 kB / 1.036 GB, free: 7.781 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002244/0.3624, allocations: 183.7 kB / 1.036 GB, free: 7.562 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004094/0.3629, allocations: 324.4 kB / 1.036 GB, free: 7.211 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.3629, allocations: 0 / 1.036 GB, free: 7.211 MB / 0.8106 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007153/0.3636, allocations: 445.8 kB / 1.037 GB, free: 6.762 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.029e-05/0.3636, allocations: 4 kB / 1.037 GB, free: 6.758 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.096e-06/0.3636, allocations: 4 kB / 1.037 GB, free: 6.754 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003622/0.364, allocations: 102.6 kB / 1.037 GB, free: 6.645 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002943/0.3643, allocations: 59.91 kB / 1.037 GB, free: 6.586 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003557/0.3679, allocations: 4.395 MB / 1.041 GB, free: 1.77 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002571/0.3682, allocations: 12 kB / 1.041 GB, free: 1.758 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.097e-05/0.3682, allocations: 12 kB / 1.041 GB, free: 1.746 MB / 0.8106 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.0002172/0.3684, allocations: 187.2 kB / 1.041 GB, free: 1.555 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.991e-05/0.3685, allocations: 35.56 kB / 1.041 GB, free: 1.52 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.588e-05/0.3686, allocations: 42.31 kB / 1.042 GB, free: 1.477 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.3686, allocations: 3.984 kB / 1.042 GB, free: 1.473 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.263e-06/0.3686, allocations: 4 kB / 1.042 GB, free: 1.469 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.3686, allocations: 96 / 1.042 GB, free: 1.469 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004908/0.3691, allocations: 397.4 kB / 1.042 GB, free: 1.031 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.038e-06/0.3691, allocations: 3.984 kB / 1.042 GB, free: 1.027 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001969/0.3693, allocations: 35.92 kB / 1.042 GB, free: 0.9922 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003132/0.3697, allocations: 94.44 kB / 1.042 GB, free: 0.8906 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.011e-05/0.3697, allocations: 7.984 kB / 1.042 GB, free: 0.8828 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003627/0.3733, allocations: 4.38 MB / 1.046 GB, free: 12.08 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.3733, allocations: 0 / 1.046 GB, free: 12.08 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008141/0.3742, allocations: 0.5584 MB / 1.047 GB, free: 11.5 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001468/0.3743, allocations: 128.7 kB / 1.047 GB, free: 11.35 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.359e-05/0.3744, allocations: 0 / 1.047 GB, free: 11.35 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001954/0.3746, allocations: 12 kB / 1.047 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.7e-05/0.3746, allocations: 27.97 kB / 1.047 GB, free: 11.31 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.552e-05/0.3746, allocations: 4 kB / 1.047 GB, free: 11.31 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0002191/0.3749, allocations: 211.1 kB / 1.047 GB, free: 11.11 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3749, allocations: 0 / 1.047 GB, free: 11.11 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0005057/0.3754, allocations: 99.94 kB / 1.047 GB, free: 11.01 MB / 0.8262 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.0001357/0.3755, allocations: 107.2 kB / 1.047 GB, free: 10.89 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0008799/0.3764, allocations: 0.6012 MB / 1.048 GB, free: 10.25 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.439e-06/0.3764, allocations: 0.6875 kB / 1.048 GB, free: 10.25 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0005243/0.377, allocations: 477.7 kB / 1.048 GB, free: 9.75 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005299/0.3775, allocations: 77.78 kB / 1.049 GB, free: 9.676 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001249/0.3788, allocations: 0.6975 MB / 1.049 GB, free: 8.957 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004394/0.3792, allocations: 0.8389 MB / 1.05 GB, free: 8.09 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001787/0.3794, allocations: 62.92 kB / 1.05 GB, free: 8.023 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.746e-05/0.3795, allocations: 23.44 kB / 1.05 GB, free: 8 MB / 0.8262 GB Notification: Performance of SimCode: time 8.02e-07/0.3795, allocations: 0 / 1.05 GB, free: 8 MB / 0.8262 GB Notification: Performance of Templates: time 0.008887/0.3884, allocations: 4.425 MB / 1.054 GB, free: 3.629 MB / 0.8262 GB make -j1 -f Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel.makefile (rm -f Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel.sim & ./Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_DC_Lines_Examples_RCModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.DC.Lines.Examples.RCModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches