Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001305/0.001305, allocations: 116.7 kB / 17.17 MB, free: 5.977 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001433/0.001433, allocations: 209.6 kB / 20.13 MB, free: 3.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.447/1.447, allocations: 230.6 MB / 253.5 MB, free: 15.07 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 2.833/2.833, allocations: 0.49 GB / 0.7923 GB, free: 1.27 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.RCModel,fileNamePrefix="Buildings_12_Buildings_Electrical_DC_Lines_Examples_RCModel",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.RCModel,fileNamePrefix="Buildings_12_Buildings_Electrical_DC_Lines_Examples_RCModel",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002436/0.002436, allocations: 59.91 kB / 1.149 GB, free: 14.54 MB / 0.8887 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9467/0.9491, allocations: 176.1 MB / 1.321 GB, free: 7.746 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.006313/0.9554, allocations: 4.43 MB / 1.326 GB, free: 4.34 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.003279/0.9587, allocations: 1.926 MB / 1.328 GB, free: 2.812 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002984/0.959, allocations: 16 kB / 1.328 GB, free: 2.805 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.001737/0.9607, allocations: 0.6127 MB / 1.328 GB, free: 2.34 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.000751/0.9615, allocations: 266.4 kB / 1.329 GB, free: 2.129 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007729/0.9623, allocations: 252 kB / 1.329 GB, free: 1.938 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0009617/0.9632, allocations: 0.6073 MB / 1.329 GB, free: 1.594 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007735/0.964, allocations: 365.8 kB / 1.33 GB, free: 1.391 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005165/0.9645, allocations: 258.5 kB / 1.33 GB, free: 1.25 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000724/0.9652, allocations: 274.7 kB / 1.33 GB, free: 1.086 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.000113/0.9654, allocations: 36.69 kB / 1.33 GB, free: 1.086 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006174/0.966, allocations: 270.5 kB / 1.331 GB, free: 0.957 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.0002126/0.9662, allocations: 153.2 kB / 1.331 GB, free: 0.8555 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0003505/0.9665, allocations: 228 kB / 1.331 GB, free: 0.707 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0009481/0.9675, allocations: 0.6049 MB / 1.331 GB, free: 316 kB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.9675, allocations: 0 / 1.331 GB, free: 316 kB / 1.014 GB Notification: Performance of FrontEnd: time 1.512e-06/0.9675, allocations: 0 / 1.331 GB, free: 316 kB / 1.014 GB Notification: Performance of Transformations before backend: time 2.675e-05/0.9675, allocations: 1.375 kB / 1.331 GB, free: 316 kB / 1.014 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.001752/0.9693, allocations: 0.737 MB / 1.332 GB, free: 15.68 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.775e-05/0.9693, allocations: 13.58 kB / 1.332 GB, free: 15.68 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.861e-05/0.9693, allocations: 10.81 kB / 1.332 GB, free: 15.67 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001154/0.9695, allocations: 80.45 kB / 1.332 GB, free: 15.6 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001053/0.9705, allocations: 154.2 kB / 1.332 GB, free: 15.53 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000573/0.9711, allocations: 337.9 kB / 1.333 GB, free: 15.22 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.533e-05/0.9711, allocations: 27.94 kB / 1.333 GB, free: 15.21 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.367e-05/0.9712, allocations: 30.5 kB / 1.333 GB, free: 15.2 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008778/0.9721, allocations: 0.538 MB / 1.333 GB, free: 14.83 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.43e-05/0.9721, allocations: 1.156 kB / 1.333 GB, free: 14.83 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.975e-05/0.9721, allocations: 16.53 kB / 1.333 GB, free: 14.82 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.062e-05/0.9722, allocations: 27.89 kB / 1.333 GB, free: 14.82 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006482/0.9728, allocations: 390.9 kB / 1.334 GB, free: 14.62 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002934/0.9758, allocations: 2.402 MB / 1.336 GB, free: 12.35 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005572/0.9763, allocations: 233.8 kB / 1.336 GB, free: 12.22 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001801/0.9765, allocations: 102.5 kB / 1.336 GB, free: 12.17 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.814e-05/0.9765, allocations: 6.203 kB / 1.336 GB, free: 12.16 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.145e-05/0.9766, allocations: 40.72 kB / 1.336 GB, free: 12.12 MB / 1.029 GB Notification: Performance of pre-optimization done (n=20): time 1.393e-06/0.9766, allocations: 0 / 1.336 GB, free: 12.12 MB / 1.029 GB Notification: Performance of matching and sorting (n=23): time 0.002437/0.979, allocations: 1.135 MB / 1.338 GB, free: 11.26 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.333e-05/0.979, allocations: 69.25 kB / 1.338 GB, free: 11.18 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003598/0.9794, allocations: 300.5 kB / 1.338 GB, free: 10.98 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.968e-05/0.9794, allocations: 31.17 kB / 1.338 GB, free: 10.95 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001816/0.9796, allocations: 230.1 kB / 1.338 GB, free: 10.74 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 8.569e-05/0.9797, allocations: 85.67 kB / 1.338 GB, free: 10.66 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001133/0.9798, allocations: 61.52 kB / 1.338 GB, free: 10.62 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001613/0.98, allocations: 337.7 kB / 1.339 GB, free: 10.29 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001778/0.9802, allocations: 105.8 kB / 1.339 GB, free: 10.23 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002379/0.9804, allocations: 195.5 kB / 1.339 GB, free: 10.07 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004468/0.9808, allocations: 317.2 kB / 1.339 GB, free: 9.844 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.9808, allocations: 0 / 1.339 GB, free: 9.844 MB / 1.029 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007782/0.9816, allocations: 446.2 kB / 1.34 GB, free: 9.59 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.117e-05/0.9816, allocations: 6.125 kB / 1.34 GB, free: 9.59 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.317e-06/0.9816, allocations: 3.5 kB / 1.34 GB, free: 9.59 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003954/0.982, allocations: 98.53 kB / 1.34 GB, free: 9.527 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002817/0.9823, allocations: 65.16 kB / 1.34 GB, free: 9.512 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003793/0.9861, allocations: 4.397 MB / 1.344 GB, free: 5.031 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002766/0.9864, allocations: 7.625 kB / 1.344 GB, free: 5.027 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.882e-05/0.9864, allocations: 14.06 kB / 1.344 GB, free: 5.023 MB / 1.029 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.0002504/0.9867, allocations: 179.3 kB / 1.344 GB, free: 4.867 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.542e-05/0.9868, allocations: 39.75 kB / 1.344 GB, free: 4.844 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.001e-05/0.9868, allocations: 38.08 kB / 1.344 GB, free: 4.816 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.751e-06/0.9869, allocations: 6.203 kB / 1.344 GB, free: 4.812 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.007e-05/0.9869, allocations: 2.188 kB / 1.344 GB, free: 4.812 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/0.9869, allocations: 3.984 kB / 1.344 GB, free: 4.809 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005528/0.9874, allocations: 396.9 kB / 1.345 GB, free: 4.473 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.9874, allocations: 1.094 kB / 1.345 GB, free: 4.473 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001906/0.9876, allocations: 38.34 kB / 1.345 GB, free: 4.461 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003337/0.988, allocations: 95.38 kB / 1.345 GB, free: 4.398 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.715e-05/0.988, allocations: 1.125 kB / 1.345 GB, free: 4.398 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003759/0.9917, allocations: 4.383 MB / 1.349 GB, free: 15.93 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.141e-06/0.9917, allocations: 9.141 kB / 1.349 GB, free: 15.93 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009684/0.9927, allocations: 0.5476 MB / 1.35 GB, free: 15.56 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001838/0.9929, allocations: 128.8 kB / 1.35 GB, free: 15.43 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.348e-05/0.9929, allocations: 6.062 kB / 1.35 GB, free: 15.43 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002178/0.9932, allocations: 10.23 kB / 1.35 GB, free: 15.42 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.566e-05/0.9932, allocations: 32.44 kB / 1.35 GB, free: 15.4 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.138e-05/0.9933, allocations: 12.41 kB / 1.35 GB, free: 15.39 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0002723/0.9935, allocations: 209.7 kB / 1.35 GB, free: 15.25 MB / 1.045 GB Notification: Performance of sort global known variables: time 8e-08/0.9935, allocations: 0 / 1.35 GB, free: 15.25 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0006267/0.9942, allocations: 95.59 kB / 1.35 GB, free: 15.24 MB / 1.045 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.001307/0.9955, allocations: 1.101 MB / 1.351 GB, free: 14.33 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.001042/0.9965, allocations: 0.5897 MB / 1.352 GB, free: 13.86 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 3.055e-06/0.9965, allocations: 1.156 kB / 1.352 GB, free: 13.86 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0006278/0.9971, allocations: 472.6 kB / 1.352 GB, free: 13.45 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005767/0.9977, allocations: 83.19 kB / 1.352 GB, free: 13.4 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005711/1.003, allocations: 3.372 MB / 1.356 GB, free: 10.9 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006369/1.004, allocations: 0.8352 MB / 1.356 GB, free: 10.13 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.0002689/1.004, allocations: 58.05 kB / 1.357 GB, free: 10.11 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002047/1.005, allocations: 111.4 kB / 1.357 GB, free: 10.01 MB / 1.045 GB Notification: Performance of SimCode: time 9.32e-07/1.005, allocations: 4 kB / 1.357 GB, free: 10.01 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03719/1.042, allocations: 7.868 MB / 1.364 GB, free: 6.152 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.38/11.43, allocations: 14.92 kB / 1.364 GB, free: 6.141 MB / 1.045 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat --tempDir=temp_Buildings_12_Buildings_Electrical_DC_Lines_Examples_RCModel_fmu --startTime=0 --stopTime=15 --stepSize=0.006 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Electrical_DC_Lines_Examples_RCModel.fmu > Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Electrical_DC_Lines_Examples_RCModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Electrical.DC.Lines.Examples.RCModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 17.725163033988792]