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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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: "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.RCModel,fileNamePrefix="Buildings_9_Buildings_Electrical_DC_Lines_Examples_RCModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.RCModel,fileNamePrefix="Buildings_9_Buildings_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.006633/0.006633, allocations: 103.2 kB / 15.73 MB, free: 5.957 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.001541/0.001541, allocations: 191.4 kB / 16.67 MB, free: 5.887 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.232/1.232, allocations: 222.9 MB / 240.4 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.093/2.093, allocations: 390.3 MB / 0.6648 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00109/0.00109, allocations: 67.89 kB / 0.9504 GB, free: 8.164 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6831/0.6842, allocations: 140.4 MB / 1.087 GB, free: 5.273 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.005087/0.6893, allocations: 4.355 MB / 1.092 GB, free: 2.324 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002617/0.692, allocations: 1.861 MB / 1.094 GB, free: 1.031 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002074/0.6922, allocations: 15.91 kB / 1.094 GB, free: 1.023 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001561/0.6938, allocations: 0.5951 MB / 1.094 GB, free: 0.668 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0006126/0.6944, allocations: 256.7 kB / 1.094 GB, free: 0.5195 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000678/0.6951, allocations: 250.4 kB / 1.095 GB, free: 408 kB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0007394/0.6958, allocations: 0.6177 MB / 1.095 GB, free: 120 kB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007673/0.6966, allocations: 472.8 kB / 1.096 GB, free: 15.92 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003941/0.697, allocations: 248.7 kB / 1.096 GB, free: 15.81 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005446/0.6976, allocations: 270.2 kB / 1.096 GB, free: 15.7 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 7.884e-05/0.6977, allocations: 40.28 kB / 1.096 GB, free: 15.7 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006324/0.6983, allocations: 253.7 kB / 1.096 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0001962/0.6985, allocations: 149.3 kB / 1.097 GB, free: 15.55 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.000279/0.6988, allocations: 215 kB / 1.097 GB, free: 15.43 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.0008668/0.6997, allocations: 0.6112 MB / 1.097 GB, free: 15.21 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.6997, allocations: 1.094 kB / 1.097 GB, free: 15.21 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.473e-06/0.6997, allocations: 0 / 1.097 GB, free: 15.21 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 9.268e-06/0.6997, allocations: 0 / 1.097 GB, free: 15.21 MB / 0.8731 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.001495/0.7012, allocations: 0.722 MB / 1.098 GB, free: 14.65 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.51e-05/0.7013, allocations: 9.734 kB / 1.098 GB, free: 14.65 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.837e-05/0.7014, allocations: 78.58 kB / 1.098 GB, free: 14.59 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00106/0.7024, allocations: 153.3 kB / 1.098 GB, free: 14.55 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005373/0.703, allocations: 331.2 kB / 1.099 GB, free: 14.28 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.905e-05/0.703, allocations: 27.27 kB / 1.099 GB, free: 14.27 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.355e-05/0.7031, allocations: 30.72 kB / 1.099 GB, free: 14.26 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009376/0.704, allocations: 0.5347 MB / 1.099 GB, free: 13.98 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.732e-05/0.7041, allocations: 9.047 kB / 1.099 GB, free: 13.97 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.817e-05/0.7041, allocations: 16.34 kB / 1.099 GB, free: 13.96 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.803e-05/0.7042, allocations: 29.23 kB / 1.099 GB, free: 13.96 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006645/0.7049, allocations: 389.7 kB / 1.1 GB, free: 13.82 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002836/0.7077, allocations: 2.402 MB / 1.102 GB, free: 11.77 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005683/0.7083, allocations: 253.3 kB / 1.102 GB, free: 11.66 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001904/0.7085, allocations: 115.3 kB / 1.102 GB, free: 11.61 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 1.678e-05/0.7085, allocations: 2.25 kB / 1.102 GB, free: 11.61 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.974e-05/0.7086, allocations: 49.52 kB / 1.102 GB, free: 11.56 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=20): time 1.904e-06/0.7086, allocations: 0 / 1.102 GB, free: 11.56 MB / 0.8731 GB Notification: Performance of matching and sorting (n=23): time 0.002565/0.7111, allocations: 1.125 MB / 1.103 GB, free: 10.81 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.452e-05/0.7112, allocations: 57.75 kB / 1.104 GB, free: 10.74 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003605/0.7116, allocations: 303.4 kB / 1.104 GB, free: 10.57 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 3.133e-05/0.7116, allocations: 31.02 kB / 1.104 GB, free: 10.54 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001579/0.7118, allocations: 227.3 kB / 1.104 GB, free: 10.35 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 7.353e-05/0.7118, allocations: 80.94 kB / 1.104 GB, free: 10.29 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001078/0.712, allocations: 62.3 kB / 1.104 GB, free: 10.25 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001487/0.7121, allocations: 338.5 kB / 1.105 GB, free: 9.922 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001822/0.7123, allocations: 111.4 kB / 1.105 GB, free: 9.879 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002963/0.7126, allocations: 187.6 kB / 1.105 GB, free: 9.738 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004398/0.7131, allocations: 321.9 kB / 1.105 GB, free: 9.527 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.7131, allocations: 1.438 kB / 1.105 GB, free: 9.527 MB / 0.8731 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008303/0.7139, allocations: 443.3 kB / 1.106 GB, free: 9.324 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/0.7139, allocations: 5.5 kB / 1.106 GB, free: 9.324 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.899e-06/0.7139, allocations: 2.969 kB / 1.106 GB, free: 9.324 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004089/0.7144, allocations: 104.1 kB / 1.106 GB, free: 9.277 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002947/0.7147, allocations: 61.55 kB / 1.106 GB, free: 9.273 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003434/0.7181, allocations: 4.388 MB / 1.11 GB, free: 4.945 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003216/0.7184, allocations: 11.77 kB / 1.11 GB, free: 4.938 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.561e-05/0.7185, allocations: 15.41 kB / 1.11 GB, free: 4.934 MB / 0.8731 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.0002677/0.7188, allocations: 175.1 kB / 1.11 GB, free: 4.789 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.819e-05/0.7188, allocations: 40.36 kB / 1.11 GB, free: 4.766 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.773e-05/0.7189, allocations: 41.02 kB / 1.11 GB, free: 4.738 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.7189, allocations: 2.859 kB / 1.11 GB, free: 4.738 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.592e-05/0.719, allocations: 2.375 kB / 1.11 GB, free: 4.738 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.112e-06/0.719, allocations: 1.359 kB / 1.11 GB, free: 4.738 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000571/0.7196, allocations: 392.8 kB / 1.111 GB, free: 4.473 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.691e-06/0.7196, allocations: 5.125 kB / 1.111 GB, free: 4.469 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002012/0.7198, allocations: 39.81 kB / 1.111 GB, free: 4.461 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003193/0.7201, allocations: 97.09 kB / 1.111 GB, free: 4.418 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.867e-05/0.7201, allocations: 4 kB / 1.111 GB, free: 4.414 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00338/0.7235, allocations: 4.384 MB / 1.115 GB, free: 88 kB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.217e-06/0.7235, allocations: 5.312 kB / 1.115 GB, free: 84 kB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009772/0.7245, allocations: 0.5564 MB / 1.116 GB, free: 15.77 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001759/0.7247, allocations: 125 kB / 1.116 GB, free: 15.65 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.918e-05/0.7248, allocations: 5.062 kB / 1.116 GB, free: 15.64 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002095/0.725, allocations: 12.12 kB / 1.116 GB, free: 15.64 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.233e-05/0.725, allocations: 23.7 kB / 1.116 GB, free: 15.63 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.543e-05/0.7251, allocations: 4.469 kB / 1.116 GB, free: 15.63 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0002476/0.7253, allocations: 212.2 kB / 1.116 GB, free: 15.52 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.704e-06/0.7253, allocations: 0 / 1.116 GB, free: 15.52 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.0005891/0.7259, allocations: 103.5 kB / 1.116 GB, free: 15.5 MB / 0.8887 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.001455/0.7274, allocations: 1.093 MB / 1.117 GB, free: 14.66 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.001002/0.7284, allocations: 0.6088 MB / 1.118 GB, free: 14.23 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.7284, allocations: 0 / 1.118 GB, free: 14.23 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0005102/0.7289, allocations: 480.4 kB / 1.118 GB, free: 13.84 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005175/0.7295, allocations: 83.66 kB / 1.118 GB, free: 13.8 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004885/0.7344, allocations: 3.353 MB / 1.122 GB, free: 11.61 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000413/0.7348, allocations: 0.8348 MB / 1.122 GB, free: 10.89 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.0002333/0.735, allocations: 58.05 kB / 1.122 GB, free: 10.88 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001482/0.7352, allocations: 110.2 kB / 1.123 GB, free: 10.79 MB / 0.8887 GB Notification: Performance of SimCode: time 4.41e-07/0.7352, allocations: 4 kB / 1.123 GB, free: 10.79 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09152/0.8267, allocations: 7.787 MB / 1.13 GB, free: 9.945 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.44/12.27, allocations: 5.625 kB / 1.13 GB, free: 9.945 MB / 0.8887 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_DC_Lines_Examples_RCModel_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_DC_Lines_Examples_RCModel.fmu > 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