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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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: "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.RCModel,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Lines_Examples_RCModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.RCModel,fileNamePrefix="Buildings_latest_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.005395/0.005395, allocations: 100.7 kB / 15.73 MB, free: 6.004 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.001269/0.001269, allocations: 196.8 kB / 16.67 MB, free: 5.926 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.276/1.276, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.471/2.471, allocations: 461.9 MB / 0.7348 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001264/0.001264, allocations: 67.84 kB / 1.054 GB, free: 8.211 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7919/0.7932, allocations: 157.4 MB / 1.207 GB, free: 13.57 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.006891/0.8002, allocations: 4.358 MB / 1.212 GB, free: 9.203 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.003191/0.8034, allocations: 1.858 MB / 1.213 GB, free: 7.336 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003406/0.8037, allocations: 11.94 kB / 1.213 GB, free: 7.324 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.001638/0.8054, allocations: 0.5875 MB / 1.214 GB, free: 6.734 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0006904/0.8061, allocations: 262.6 kB / 1.214 GB, free: 6.477 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006803/0.8068, allocations: 251.4 kB / 1.214 GB, free: 6.23 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0007789/0.8076, allocations: 0.6189 MB / 1.215 GB, free: 5.609 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006806/0.8083, allocations: 469 kB / 1.215 GB, free: 5.148 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003382/0.8086, allocations: 251.1 kB / 1.216 GB, free: 4.902 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005139/0.8091, allocations: 267 kB / 1.216 GB, free: 4.641 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 6.867e-05/0.8092, allocations: 36 kB / 1.216 GB, free: 4.605 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004462/0.8097, allocations: 259.4 kB / 1.216 GB, free: 4.352 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001512/0.8098, allocations: 143.7 kB / 1.216 GB, free: 4.211 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0002384/0.8101, allocations: 226.9 kB / 1.217 GB, free: 3.988 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0007135/0.8108, allocations: 0.5997 MB / 1.217 GB, free: 3.387 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.642e-06/0.8108, allocations: 4 kB / 1.217 GB, free: 3.383 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.263e-06/0.8108, allocations: 3.938 kB / 1.217 GB, free: 3.379 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.687e-05/0.8108, allocations: 0 / 1.217 GB, free: 3.379 MB / 0.9356 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.001293/0.8121, allocations: 0.7213 MB / 1.218 GB, free: 2.609 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.85e-05/0.8122, allocations: 12.03 kB / 1.218 GB, free: 2.598 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.255e-05/0.8123, allocations: 74.7 kB / 1.218 GB, free: 2.516 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009563/0.8132, allocations: 152.2 kB / 1.218 GB, free: 2.367 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005081/0.8137, allocations: 334.6 kB / 1.218 GB, free: 2.004 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.958e-05/0.8138, allocations: 25.36 kB / 1.218 GB, free: 1.98 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.174e-05/0.8138, allocations: 32.38 kB / 1.218 GB, free: 1.949 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007366/0.8146, allocations: 0.5393 MB / 1.219 GB, free: 1.371 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.405e-05/0.8146, allocations: 4 kB / 1.219 GB, free: 1.367 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.641e-05/0.8147, allocations: 12 kB / 1.219 GB, free: 1.355 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.598e-05/0.8147, allocations: 36.64 kB / 1.219 GB, free: 1.32 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006062/0.8153, allocations: 386.3 kB / 1.219 GB, free: 0.9453 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002502/0.8178, allocations: 2.395 MB / 1.222 GB, free: 14.33 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004859/0.8183, allocations: 262.5 kB / 1.222 GB, free: 14.06 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001623/0.8185, allocations: 108.8 kB / 1.222 GB, free: 13.95 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.562e-05/0.8185, allocations: 8 kB / 1.222 GB, free: 13.95 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.118e-05/0.8185, allocations: 30.56 kB / 1.222 GB, free: 13.91 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=20): time 2.445e-06/0.8186, allocations: 3.938 kB / 1.222 GB, free: 13.9 MB / 0.9512 GB Notification: Performance of matching and sorting (n=23): time 0.002068/0.8206, allocations: 1.139 MB / 1.223 GB, free: 12.67 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.971e-05/0.8207, allocations: 51.41 kB / 1.223 GB, free: 12.61 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002885/0.821, allocations: 300.5 kB / 1.224 GB, free: 12.3 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.204e-05/0.821, allocations: 29.7 kB / 1.224 GB, free: 12.27 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001425/0.8212, allocations: 231.6 kB / 1.224 GB, free: 12.04 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 7.099e-05/0.8212, allocations: 82.75 kB / 1.224 GB, free: 11.95 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.164e-05/0.8213, allocations: 58.03 kB / 1.224 GB, free: 11.89 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001225/0.8215, allocations: 342.8 kB / 1.224 GB, free: 11.54 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001598/0.8216, allocations: 104.6 kB / 1.224 GB, free: 11.44 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002023/0.8218, allocations: 191.7 kB / 1.225 GB, free: 11.21 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000369/0.8222, allocations: 319.5 kB / 1.225 GB, free: 10.87 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.8222, allocations: 0 / 1.225 GB, free: 10.87 MB / 0.9512 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007127/0.8229, allocations: 445.8 kB / 1.225 GB, free: 10.42 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.624e-05/0.823, allocations: 4 kB / 1.225 GB, free: 10.41 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.744e-06/0.823, allocations: 4 kB / 1.225 GB, free: 10.41 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003457/0.8233, allocations: 98.62 kB / 1.225 GB, free: 10.3 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002582/0.8236, allocations: 63.91 kB / 1.225 GB, free: 10.24 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003173/0.8268, allocations: 4.395 MB / 1.23 GB, free: 5.422 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002022/0.827, allocations: 8 kB / 1.23 GB, free: 5.414 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.35e-05/0.827, allocations: 16 kB / 1.23 GB, free: 5.398 MB / 0.9512 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.0001838/0.8272, allocations: 181.8 kB / 1.23 GB, free: 5.211 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.83e-05/0.8273, allocations: 35.56 kB / 1.23 GB, free: 5.176 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.938e-05/0.8273, allocations: 38.31 kB / 1.23 GB, free: 5.141 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-06/0.8274, allocations: 0 / 1.23 GB, free: 5.141 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.593e-06/0.8274, allocations: 4 kB / 1.23 GB, free: 5.137 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.8274, allocations: 3.984 kB / 1.23 GB, free: 5.133 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000414/0.8278, allocations: 393.4 kB / 1.23 GB, free: 4.699 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.36e-06/0.8278, allocations: 7.922 kB / 1.23 GB, free: 4.691 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001834/0.828, allocations: 35.98 kB / 1.23 GB, free: 4.656 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002838/0.8283, allocations: 94.5 kB / 1.231 GB, free: 4.555 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.806e-05/0.8283, allocations: 4 kB / 1.231 GB, free: 4.551 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003029/0.8313, allocations: 4.395 MB / 1.235 GB, free: 15.73 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.8314, allocations: 3.938 kB / 1.235 GB, free: 15.73 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007439/0.8321, allocations: 0.5499 MB / 1.235 GB, free: 15.16 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001362/0.8323, allocations: 124.7 kB / 1.236 GB, free: 15.02 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.347e-05/0.8323, allocations: 4 kB / 1.236 GB, free: 15.02 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001922/0.8325, allocations: 19.98 kB / 1.236 GB, free: 15 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.749e-05/0.8326, allocations: 19.98 kB / 1.236 GB, free: 14.98 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.539e-05/0.8326, allocations: 8 kB / 1.236 GB, free: 14.97 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001767/0.8328, allocations: 211.1 kB / 1.236 GB, free: 14.76 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8328, allocations: 0 / 1.236 GB, free: 14.76 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0004174/0.8332, allocations: 107.9 kB / 1.236 GB, free: 14.66 MB / 0.9669 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.001031/0.8342, allocations: 1.103 MB / 1.237 GB, free: 13.52 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0007829/0.835, allocations: 0.6057 MB / 1.238 GB, free: 12.88 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.835, allocations: 0 / 1.238 GB, free: 12.88 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0004682/0.8355, allocations: 476.2 kB / 1.238 GB, free: 12.38 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004577/0.836, allocations: 70.27 kB / 1.238 GB, free: 12.31 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00405/0.84, allocations: 3.36 MB / 1.241 GB, free: 8.781 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003718/0.8404, allocations: 0.8311 MB / 1.242 GB, free: 7.926 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.0001781/0.8406, allocations: 58.92 kB / 1.242 GB, free: 7.867 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001342/0.8407, allocations: 111.4 kB / 1.242 GB, free: 7.758 MB / 0.9669 GB Notification: Performance of SimCode: time 2.6e-07/0.8408, allocations: 0 / 1.242 GB, free: 7.758 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0357/0.8765, allocations: 7.907 MB / 1.25 GB, free: 16 kB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.327/10.2, allocations: 7.188 kB / 1.25 GB, free: 12 kB / 0.9669 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_DC_Lines_Examples_RCModel_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_DC_Lines_Examples_RCModel.fmu > 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/jenkins1/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