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.001229/0.001229, allocations: 97.88 kB / 19.73 MB, free: 2.117 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.001367/0.001367, allocations: 218 kB / 23.03 MB, free: 4.922 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.428/1.428, allocations: 230.6 MB / 256.8 MB, free: 7.789 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 3.175/3.175, allocations: 0.49 GB / 0.7959 GB, free: 35.46 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.002085/0.002085, allocations: 69.69 kB / 1.155 GB, free: 25.48 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3414/0.3435, allocations: 176.1 MB / 1.327 GB, free: 1.539 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.RCModel): time 0.00656/0.3501, allocations: 4.281 MB / 1.331 GB, free: 13.25 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.003318/0.3534, allocations: 1.819 MB / 1.333 GB, free: 11.42 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002551/0.3537, allocations: 19.88 kB / 1.333 GB, free: 11.4 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.001752/0.3554, allocations: 0.5865 MB / 1.333 GB, free: 10.81 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0007626/0.3562, allocations: 270.6 kB / 1.333 GB, free: 10.55 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007547/0.3569, allocations: 255.4 kB / 1.334 GB, free: 10.3 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.000843/0.3578, allocations: 0.6151 MB / 1.334 GB, free: 9.68 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006594/0.3584, allocations: 343.2 kB / 1.335 GB, free: 9.34 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003552/0.3588, allocations: 263.1 kB / 1.335 GB, free: 9.082 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000563/0.3593, allocations: 278.9 kB / 1.335 GB, free: 8.809 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 7.161e-05/0.3594, allocations: 36 kB / 1.335 GB, free: 8.773 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004934/0.3599, allocations: 235.5 kB / 1.335 GB, free: 8.543 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001822/0.3601, allocations: 159.5 kB / 1.335 GB, free: 8.387 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0002305/0.3603, allocations: 179.2 kB / 1.336 GB, free: 8.211 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0007944/0.3611, allocations: 0.6149 MB / 1.336 GB, free: 7.594 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.3611, allocations: 0 / 1.336 GB, free: 7.594 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.563e-06/0.3611, allocations: 0 / 1.336 GB, free: 7.594 MB / 1.029 GB Notification: Performance of Transformations before backend: time 8.446e-06/0.3611, allocations: 4 kB / 1.336 GB, free: 7.59 MB / 1.029 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.00131/0.3624, allocations: 0.6609 MB / 1.337 GB, free: 6.898 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.703e-05/0.3625, allocations: 8.031 kB / 1.337 GB, free: 6.891 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.684e-05/0.3625, allocations: 13.19 kB / 1.337 GB, free: 6.879 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.196e-05/0.3626, allocations: 78.72 kB / 1.337 GB, free: 6.793 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001011/0.3636, allocations: 144.5 kB / 1.337 GB, free: 6.652 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005287/0.3642, allocations: 284.8 kB / 1.337 GB, free: 6.352 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.766e-05/0.3642, allocations: 33.36 kB / 1.337 GB, free: 6.316 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.117e-05/0.3643, allocations: 32.38 kB / 1.337 GB, free: 6.285 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000948/0.3652, allocations: 0.6859 MB / 1.338 GB, free: 5.527 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.253e-05/0.3652, allocations: 0 / 1.338 GB, free: 5.527 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.588e-05/0.3653, allocations: 12 kB / 1.338 GB, free: 5.516 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-05/0.3653, allocations: 32.64 kB / 1.338 GB, free: 5.484 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006275/0.3659, allocations: 390.2 kB / 1.339 GB, free: 5.105 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002554/0.3685, allocations: 1.734 MB / 1.34 GB, free: 3.289 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005509/0.3691, allocations: 238.5 kB / 1.34 GB, free: 3.047 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000172/0.3692, allocations: 98.19 kB / 1.341 GB, free: 2.949 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.632e-05/0.3692, allocations: 8 kB / 1.341 GB, free: 2.941 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.614e-05/0.3693, allocations: 34.55 kB / 1.341 GB, free: 2.898 MB / 1.029 GB Notification: Performance of pre-optimization done (n=20): time 2.305e-06/0.3693, allocations: 0 / 1.341 GB, free: 2.898 MB / 1.029 GB Notification: Performance of matching and sorting (n=23): time 0.002289/0.3716, allocations: 0.9058 MB / 1.342 GB, free: 1.953 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.656e-05/0.3716, allocations: 55.34 kB / 1.342 GB, free: 1.887 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003504/0.372, allocations: 308.4 kB / 1.342 GB, free: 1.57 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.332e-05/0.372, allocations: 37.7 kB / 1.342 GB, free: 1.527 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001709/0.3722, allocations: 232.1 kB / 1.342 GB, free: 1.297 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 7.965e-05/0.3722, allocations: 83.33 kB / 1.342 GB, free: 1.215 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001129/0.3724, allocations: 61.98 kB / 1.342 GB, free: 1.145 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001554/0.3725, allocations: 338.8 kB / 1.343 GB, free: 0.8047 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001835/0.3727, allocations: 104.6 kB / 1.343 GB, free: 0.7031 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000244/0.3729, allocations: 183.8 kB / 1.343 GB, free: 496 kB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00044/0.3734, allocations: 324.8 kB / 1.343 GB, free: 136 kB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.3734, allocations: 0 / 1.343 GB, free: 136 kB / 1.029 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008548/0.3742, allocations: 442 kB / 1.344 GB, free: 15.69 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 2.032e-05/0.3743, allocations: 11.94 kB / 1.344 GB, free: 15.68 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.644e-06/0.3743, allocations: 0 / 1.344 GB, free: 15.68 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003997/0.3747, allocations: 98.69 kB / 1.344 GB, free: 15.57 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003148/0.375, allocations: 63.91 kB / 1.344 GB, free: 15.51 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0038/0.3788, allocations: 4.07 MB / 1.348 GB, free: 11.09 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003145/0.3791, allocations: 12 kB / 1.348 GB, free: 11.08 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.792e-05/0.3791, allocations: 12 kB / 1.348 GB, free: 11.07 MB / 1.045 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.0002951/0.3794, allocations: 187.1 kB / 1.348 GB, free: 10.88 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.612e-05/0.3795, allocations: 35.75 kB / 1.348 GB, free: 10.84 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.549e-05/0.3796, allocations: 46.34 kB / 1.348 GB, free: 10.8 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.197e-06/0.3796, allocations: 4 kB / 1.348 GB, free: 10.79 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.167e-06/0.3796, allocations: 0 / 1.348 GB, free: 10.79 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.3796, allocations: 0 / 1.348 GB, free: 10.79 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005043/0.3801, allocations: 344.5 kB / 1.348 GB, free: 10.41 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.3801, allocations: 0 / 1.348 GB, free: 10.41 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002127/0.3803, allocations: 39.91 kB / 1.348 GB, free: 10.38 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003415/0.3807, allocations: 90.5 kB / 1.348 GB, free: 10.28 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.975e-05/0.3807, allocations: 4 kB / 1.348 GB, free: 10.27 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003692/0.3844, allocations: 4.065 MB / 1.352 GB, free: 5.863 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.576e-06/0.3844, allocations: 3.938 kB / 1.352 GB, free: 5.859 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009164/0.3853, allocations: 0.5619 MB / 1.353 GB, free: 5.273 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001393/0.3854, allocations: 47.81 kB / 1.353 GB, free: 5.227 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.495e-05/0.3855, allocations: 4 kB / 1.353 GB, free: 5.223 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002207/0.3857, allocations: 12 kB / 1.353 GB, free: 5.211 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.92e-05/0.3858, allocations: 23.81 kB / 1.353 GB, free: 5.188 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.135e-05/0.3858, allocations: 11.94 kB / 1.353 GB, free: 5.176 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0002432/0.386, allocations: 207.1 kB / 1.353 GB, free: 4.973 MB / 1.045 GB Notification: Performance of sort global known variables: time 6.1e-08/0.386, allocations: 0 / 1.353 GB, free: 4.973 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0005026/0.3865, allocations: 96 kB / 1.353 GB, free: 4.879 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.001233/0.3878, allocations: 1.099 MB / 1.354 GB, free: 3.746 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0009639/0.3887, allocations: 0.5965 MB / 1.355 GB, free: 3.113 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 3.327e-06/0.3887, allocations: 0 / 1.355 GB, free: 3.113 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0005558/0.3893, allocations: 459.8 kB / 1.355 GB, free: 2.625 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005346/0.3898, allocations: 90.03 kB / 1.356 GB, free: 2.543 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004908/0.3947, allocations: 3.373 MB / 1.359 GB, free: 14.99 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002802/0.395, allocations: 232.7 kB / 1.359 GB, free: 14.75 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0002446/0.3952, allocations: 58.94 kB / 1.359 GB, free: 14.69 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001737/0.3954, allocations: 111.4 kB / 1.359 GB, free: 14.58 MB / 1.061 GB Notification: Performance of SimCode: time 1.082e-06/0.3954, allocations: 0 / 1.359 GB, free: 14.58 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03985/0.4353, allocations: 8.501 MB / 1.368 GB, free: 6.34 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.4/12.84, allocations: 5.031 kB / 1.368 GB, free: 6.34 MB / 1.061 GB " [Timeout remaining time 287] (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: 19.62218171695713]