Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_9_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_9_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.001195/0.001195, allocations: 109.2 kB / 16.36 MB, free: 6.336 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.001184/0.001184, allocations: 193.5 kB / 17.29 MB, free: 5.883 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.39/1.39, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.267/2.267, allocations: 390.3 MB / 0.6655 GB, free: 0.582 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002053/0.002053, allocations: 63.62 kB / 0.814 GB, free: 32.85 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2989/0.301, allocations: 140.4 MB / 0.9511 GB, free: 8.059 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.005666/0.3067, allocations: 4.359 MB / 0.9554 GB, free: 3.684 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.002714/0.3094, allocations: 1.854 MB / 0.9572 GB, free: 1.82 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001686/0.3096, allocations: 11.94 kB / 0.9572 GB, free: 1.809 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001485/0.3111, allocations: 0.6031 MB / 0.9578 GB, free: 1.203 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0005129/0.3116, allocations: 258.6 kB / 0.958 GB, free: 0.9492 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005706/0.3122, allocations: 259.3 kB / 0.9583 GB, free: 0.6992 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.000625/0.3128, allocations: 0.6112 MB / 0.9589 GB, free: 88 kB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006705/0.3135, allocations: 458.8 kB / 0.9593 GB, free: 15.64 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003648/0.3139, allocations: 251.1 kB / 0.9595 GB, free: 15.39 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005295/0.3144, allocations: 267 kB / 0.9598 GB, free: 15.13 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 6.904e-05/0.3145, allocations: 36 kB / 0.9598 GB, free: 15.1 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004367/0.315, allocations: 259.4 kB / 0.9601 GB, free: 14.84 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0001363/0.3151, allocations: 151.6 kB / 0.9602 GB, free: 14.7 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0002063/0.3153, allocations: 222.9 kB / 0.9604 GB, free: 14.48 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.0005781/0.3159, allocations: 0.5997 MB / 0.961 GB, free: 13.88 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.3159, allocations: 3.938 kB / 0.961 GB, free: 13.87 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.512e-06/0.3159, allocations: 0 / 0.961 GB, free: 13.87 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 8.045e-06/0.3159, allocations: 0 / 0.961 GB, free: 13.87 MB / 0.7481 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.001109/0.3171, allocations: 0.7213 MB / 0.9617 GB, free: 13.1 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 3.084e-05/0.3171, allocations: 12.03 kB / 0.9617 GB, free: 13.09 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009374/0.318, allocations: 144.3 kB / 0.9619 GB, free: 12.95 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004833/0.3185, allocations: 342.4 kB / 0.9622 GB, free: 12.57 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.572e-05/0.3186, allocations: 33.31 kB / 0.9622 GB, free: 12.54 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.071e-05/0.3186, allocations: 28.38 kB / 0.9623 GB, free: 12.51 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007077/0.3194, allocations: 0.5395 MB / 0.9628 GB, free: 11.93 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.274e-05/0.3194, allocations: 0 / 0.9628 GB, free: 11.93 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.958e-05/0.3194, allocations: 16 kB / 0.9628 GB, free: 11.92 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.617e-05/0.3195, allocations: 32.64 kB / 0.9628 GB, free: 11.89 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005735/0.3201, allocations: 390.3 kB / 0.9632 GB, free: 11.51 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002506/0.3226, allocations: 2.392 MB / 0.9656 GB, free: 8.895 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004871/0.3231, allocations: 262.5 kB / 0.9658 GB, free: 8.629 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001586/0.3232, allocations: 116.7 kB / 0.9659 GB, free: 8.512 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 1.775e-05/0.3233, allocations: 8 kB / 0.9659 GB, free: 8.504 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.64e-05/0.3233, allocations: 30.56 kB / 0.966 GB, free: 8.465 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=20): time 1.322e-06/0.3233, allocations: 0 / 0.966 GB, free: 8.465 MB / 0.7481 GB Notification: Performance of matching and sorting (n=23): time 0.002103/0.3254, allocations: 1.124 MB / 0.967 GB, free: 7.246 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.636e-05/0.3255, allocations: 59.39 kB / 0.9671 GB, free: 7.176 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002978/0.3258, allocations: 304.4 kB / 0.9674 GB, free: 6.871 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 3.314e-05/0.3258, allocations: 29.7 kB / 0.9674 GB, free: 6.836 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001444/0.326, allocations: 239.5 kB / 0.9677 GB, free: 6.598 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 5.488e-05/0.326, allocations: 74.91 kB / 0.9677 GB, free: 6.523 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.735e-05/0.3261, allocations: 61.94 kB / 0.9678 GB, free: 6.453 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001211/0.3262, allocations: 338.8 kB / 0.9681 GB, free: 6.113 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001623/0.3264, allocations: 108.6 kB / 0.9682 GB, free: 6.008 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000222/0.3266, allocations: 191.6 kB / 0.9684 GB, free: 5.781 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003874/0.327, allocations: 319.5 kB / 0.9687 GB, free: 5.434 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.327, allocations: 0 / 0.9687 GB, free: 5.434 MB / 0.7481 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007142/0.3278, allocations: 449.8 kB / 0.9691 GB, free: 4.98 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.705e-05/0.3278, allocations: 4 kB / 0.9691 GB, free: 4.977 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.847e-06/0.3278, allocations: 4 kB / 0.9691 GB, free: 4.973 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003499/0.3282, allocations: 102.6 kB / 0.9692 GB, free: 4.863 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002652/0.3284, allocations: 63.89 kB / 0.9693 GB, free: 4.801 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003213/0.3317, allocations: 4.383 MB / 0.9736 GB, free: 15.99 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002069/0.3319, allocations: 8 kB / 0.9736 GB, free: 15.98 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.5e-05/0.3319, allocations: 15.98 kB / 0.9736 GB, free: 15.96 MB / 0.7637 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.0001884/0.3321, allocations: 189.2 kB / 0.9738 GB, free: 15.78 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.118e-05/0.3322, allocations: 39.55 kB / 0.9738 GB, free: 15.74 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.531e-05/0.3323, allocations: 46.25 kB / 0.9739 GB, free: 15.69 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.3323, allocations: 0 / 0.9739 GB, free: 15.69 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.405e-06/0.3323, allocations: 4 kB / 0.9739 GB, free: 15.69 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.828e-06/0.3323, allocations: 0 / 0.9739 GB, free: 15.69 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004559/0.3328, allocations: 397.4 kB / 0.9742 GB, free: 15.25 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.3328, allocations: 0 / 0.9742 GB, free: 15.25 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001873/0.333, allocations: 39.92 kB / 0.9743 GB, free: 15.21 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002907/0.3333, allocations: 98.48 kB / 0.9744 GB, free: 15.11 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.007e-05/0.3333, allocations: 4 kB / 0.9744 GB, free: 15.1 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003074/0.3364, allocations: 4.375 MB / 0.9786 GB, free: 10.31 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.3364, allocations: 0 / 0.9786 GB, free: 10.31 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007503/0.3372, allocations: 0.5628 MB / 0.9792 GB, free: 9.723 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001547/0.3373, allocations: 124.7 kB / 0.9793 GB, free: 9.582 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.916e-05/0.3374, allocations: 4.141 kB / 0.9793 GB, free: 9.578 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001974/0.3376, allocations: 12 kB / 0.9793 GB, free: 9.566 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.316e-05/0.3376, allocations: 35.95 kB / 0.9794 GB, free: 9.531 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.554e-05/0.3377, allocations: 4 kB / 0.9794 GB, free: 9.527 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0002/0.3379, allocations: 207.1 kB / 0.9796 GB, free: 9.324 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3379, allocations: 0 / 0.9796 GB, free: 9.324 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.0004546/0.3383, allocations: 107.9 kB / 0.9797 GB, free: 9.219 MB / 0.7637 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.0001277/0.3385, allocations: 111.2 kB / 0.9798 GB, free: 9.098 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.0008561/0.3393, allocations: 0.5975 MB / 0.9804 GB, free: 8.461 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.3393, allocations: 0.6875 kB / 0.9804 GB, free: 8.461 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0004974/0.3398, allocations: 479.8 kB / 0.9808 GB, free: 7.953 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004739/0.3403, allocations: 68.64 kB / 0.9809 GB, free: 7.891 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001172/0.3415, allocations: 0.7126 MB / 0.9816 GB, free: 7.156 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004266/0.342, allocations: 0.8311 MB / 0.9824 GB, free: 6.293 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0001961/0.3422, allocations: 54.94 kB / 0.9824 GB, free: 6.234 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.45e-05/0.3422, allocations: 27.38 kB / 0.9825 GB, free: 6.207 MB / 0.7637 GB Notification: Performance of SimCode: time 3.31e-07/0.3422, allocations: 0 / 0.9825 GB, free: 6.207 MB / 0.7637 GB Notification: Performance of Templates: time 0.008992/0.3512, allocations: 4.426 MB / 0.9868 GB, free: 1.824 MB / 0.7637 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.sim & ./Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Lines_Examples_RCModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches