Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.Resistance,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Lines_Examples_Resistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Lines_Examples_Resistance",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.007412/0.007412, allocations: 103.6 kB / 15.74 MB, free: 6.043 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.002107/0.002107, allocations: 202.5 kB / 16.68 MB, free: 5.965 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.352/1.352, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.659/2.659, allocations: 482.6 MB / 0.755 GB, free: 10.6 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001732/0.001732, allocations: 63.89 kB / 1.083 GB, free: 12.26 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2592/0.2609, allocations: 162.3 MB / 1.242 GB, free: 9.848 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.004151/0.2651, allocations: 3.074 MB / 1.245 GB, free: 6.758 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001823/0.2669, allocations: 1.336 MB / 1.246 GB, free: 5.414 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.969e-05/0.267, allocations: 4 kB / 1.246 GB, free: 5.41 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0008908/0.2679, allocations: 326.1 kB / 1.246 GB, free: 5.094 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002812/0.2682, allocations: 139.3 kB / 1.247 GB, free: 4.957 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000296/0.2685, allocations: 139.6 kB / 1.247 GB, free: 4.82 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0003299/0.2689, allocations: 306.9 kB / 1.247 GB, free: 4.52 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003809/0.2693, allocations: 232.3 kB / 1.247 GB, free: 4.293 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001286/0.2694, allocations: 123.6 kB / 1.247 GB, free: 4.172 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002588/0.2697, allocations: 143.5 kB / 1.247 GB, free: 4.031 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 3.351e-05/0.2697, allocations: 16 kB / 1.248 GB, free: 4.016 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000265/0.27, allocations: 171.6 kB / 1.248 GB, free: 3.848 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 8.577e-05/0.2701, allocations: 71.86 kB / 1.248 GB, free: 3.777 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001159/0.2702, allocations: 111.5 kB / 1.248 GB, free: 3.668 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003962/0.2706, allocations: 346.6 kB / 1.248 GB, free: 3.328 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.2706, allocations: 0 / 1.248 GB, free: 3.328 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.152e-06/0.2706, allocations: 0 / 1.248 GB, free: 3.328 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.839e-06/0.2706, allocations: 4 kB / 1.248 GB, free: 3.324 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0007209/0.2713, allocations: 0.5182 MB / 1.249 GB, free: 2.754 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.386e-05/0.2714, allocations: 8.031 kB / 1.249 GB, free: 2.746 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.972e-05/0.2714, allocations: 58.73 kB / 1.249 GB, free: 2.68 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000508/0.272, allocations: 80.72 kB / 1.249 GB, free: 2.602 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000281/0.2723, allocations: 249.8 kB / 1.249 GB, free: 2.32 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.726e-05/0.2723, allocations: 20.73 kB / 1.249 GB, free: 2.301 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.715e-05/0.2723, allocations: 12.38 kB / 1.249 GB, free: 2.289 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004151/0.2727, allocations: 299.3 kB / 1.249 GB, free: 1.973 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.478e-06/0.2727, allocations: 0 / 1.249 GB, free: 1.973 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.532e-05/0.2728, allocations: 12 kB / 1.249 GB, free: 1.961 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.881e-05/0.2728, allocations: 16.36 kB / 1.249 GB, free: 1.945 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002876/0.2731, allocations: 196.9 kB / 1.25 GB, free: 1.754 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001338/0.2744, allocations: 1.46 MB / 1.251 GB, free: 132 kB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.4498/0.7243, allocations: 174 kB / 1.251 GB, free: 15.12 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.779e-05/0.7244, allocations: 34.45 kB / 1.251 GB, free: 15.11 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.445e-05/0.7244, allocations: 1.281 kB / 1.251 GB, free: 15.11 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.446e-05/0.7244, allocations: 32.83 kB / 1.251 GB, free: 15.07 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=7): time 1.362e-06/0.7244, allocations: 0 / 1.251 GB, free: 15.07 MB / 0.9981 GB Notification: Performance of matching and sorting (n=7): time 0.0004256/0.7248, allocations: 231.4 kB / 1.251 GB, free: 14.94 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.824e-05/0.7249, allocations: 52.88 kB / 1.252 GB, free: 14.88 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001681/0.7251, allocations: 196.4 kB / 1.252 GB, free: 14.78 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 9.167e-06/0.7251, allocations: 28.05 kB / 1.252 GB, free: 14.75 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 6.282e-05/0.7251, allocations: 168.6 kB / 1.252 GB, free: 14.64 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.523e-05/0.7252, allocations: 28 kB / 1.252 GB, free: 14.62 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.915e-05/0.7252, allocations: 34.7 kB / 1.252 GB, free: 14.61 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 3.956e-05/0.7253, allocations: 328.6 kB / 1.252 GB, free: 14.3 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.77e-05/0.7253, allocations: 33.84 kB / 1.252 GB, free: 14.3 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.131e-05/0.7254, allocations: 103.7 kB / 1.252 GB, free: 14.22 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001317/0.7255, allocations: 149.6 kB / 1.253 GB, free: 14.14 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.7255, allocations: 2.062 kB / 1.253 GB, free: 14.14 MB / 0.9981 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002555/0.7258, allocations: 189.8 kB / 1.253 GB, free: 14.09 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.41e-05/0.7258, allocations: 5.75 kB / 1.253 GB, free: 14.09 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.7258, allocations: 5.969 kB / 1.253 GB, free: 14.09 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001322/0.726, allocations: 26.42 kB / 1.253 GB, free: 14.08 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001357/0.7261, allocations: 33.61 kB / 1.253 GB, free: 14.07 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006469/0.7268, allocations: 1.421 MB / 1.254 GB, free: 12.72 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001043/0.7269, allocations: 25.11 kB / 1.254 GB, free: 12.71 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.127e-05/0.7269, allocations: 9.281 kB / 1.254 GB, free: 12.71 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 8.838e-05/0.727, allocations: 150.1 kB / 1.254 GB, free: 12.59 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.257e-05/0.727, allocations: 11.98 kB / 1.254 GB, free: 12.59 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.574e-05/0.7271, allocations: 19.36 kB / 1.254 GB, free: 12.59 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.324e-06/0.7271, allocations: 1.453 kB / 1.254 GB, free: 12.59 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.854e-06/0.7271, allocations: 0.8438 kB / 1.254 GB, free: 12.59 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-06/0.7271, allocations: 1.469 kB / 1.254 GB, free: 12.59 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003897/0.7275, allocations: 451.2 kB / 1.255 GB, free: 12.27 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.7275, allocations: 0.875 kB / 1.255 GB, free: 12.27 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.401e-05/0.7275, allocations: 7.75 kB / 1.255 GB, free: 12.27 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.223e-05/0.7276, allocations: 25.55 kB / 1.255 GB, free: 12.27 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.081e-06/0.7276, allocations: 0.9062 kB / 1.255 GB, free: 12.27 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005587/0.7282, allocations: 1.417 MB / 1.256 GB, free: 10.91 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.7282, allocations: 0.6562 kB / 1.256 GB, free: 10.91 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001576/0.7283, allocations: 214.7 kB / 1.256 GB, free: 10.76 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.272e-05/0.7284, allocations: 97.73 kB / 1.257 GB, free: 10.66 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.831e-05/0.7284, allocations: 6.547 kB / 1.257 GB, free: 10.66 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001025/0.7285, allocations: 6.25 kB / 1.257 GB, free: 10.66 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.353e-05/0.7286, allocations: 12.14 kB / 1.257 GB, free: 10.66 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.272e-06/0.7286, allocations: 5.547 kB / 1.257 GB, free: 10.66 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 9.601e-05/0.7287, allocations: 146.2 kB / 1.257 GB, free: 10.58 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1e-07/0.7287, allocations: 3.719 kB / 1.257 GB, free: 10.58 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002955/0.729, allocations: 56.08 kB / 1.257 GB, free: 10.57 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002845/0.7293, allocations: 0.7446 MB / 1.257 GB, free: 9.895 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002798/0.7296, allocations: 206.1 kB / 1.258 GB, free: 9.785 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.7296, allocations: 0 / 1.258 GB, free: 9.785 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001102/0.7297, allocations: 148 kB / 1.258 GB, free: 9.672 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003094/0.73, allocations: 42.89 kB / 1.258 GB, free: 9.66 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001587/0.7316, allocations: 2.05 MB / 1.26 GB, free: 8.031 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000158/0.7318, allocations: 0.7541 MB / 1.261 GB, free: 7.324 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 8.016e-05/0.7319, allocations: 22.31 kB / 1.261 GB, free: 7.324 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.899e-05/0.7319, allocations: 50.98 kB / 1.261 GB, free: 7.285 MB / 0.9981 GB Notification: Performance of SimCode: time 2.2e-07/0.7319, allocations: 4.281 kB / 1.261 GB, free: 7.281 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.758/2.49, allocations: 3.734 MB / 1.264 GB, free: 6.738 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.79/19.28, allocations: 1.375 kB / 1.264 GB, free: 6.738 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_DC_Lines_Examples_Resistance_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_DC_Lines_Examples_Resistance.fmu > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Lines_Examples_Resistance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches