Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Resistance,fileNamePrefix="Buildings_10_Buildings_Electrical_DC_Lines_Examples_Resistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_10_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.001489/0.001489, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001747/0.001747, allocations: 196.1 kB / 16.53 MB, free: 6.664 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.403/1.403, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.452/2.452, allocations: 437.1 MB / 0.7104 GB, free: 5.113 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001197/0.001197, allocations: 68.12 kB / 0.8693 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4671/0.4683, allocations: 151.6 MB / 1.017 GB, free: 2.637 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.004166/0.4725, allocations: 3.076 MB / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.00193/0.4745, allocations: 1.324 MB / 1.022 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001513/0.4747, allocations: 7.938 kB / 1.022 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0009199/0.4756, allocations: 338.7 kB / 1.022 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0003593/0.476, allocations: 147.2 kB / 1.022 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.000343/0.4763, allocations: 131.7 kB / 1.022 GB, free: 13.6 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003201/0.4767, allocations: 307 kB / 1.023 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003849/0.4771, allocations: 246.5 kB / 1.023 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001401/0.4772, allocations: 119.6 kB / 1.023 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002574/0.4775, allocations: 139.5 kB / 1.023 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.251e-05/0.4775, allocations: 23.94 kB / 1.023 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002733/0.4778, allocations: 163.6 kB / 1.023 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 7.993e-05/0.4779, allocations: 83.78 kB / 1.023 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001053/0.478, allocations: 107.5 kB / 1.023 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003706/0.4784, allocations: 338.9 kB / 1.024 GB, free: 12.1 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.4784, allocations: 0 / 1.024 GB, free: 12.1 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.323e-06/0.4784, allocations: 0 / 1.024 GB, free: 12.1 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.352e-06/0.4784, allocations: 0 / 1.024 GB, free: 12.1 MB / 0.7794 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.0006833/0.4791, allocations: 0.5146 MB / 1.024 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.194e-05/0.4791, allocations: 8.031 kB / 1.024 GB, free: 11.53 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.423e-05/0.4792, allocations: 54.73 kB / 1.024 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005392/0.4797, allocations: 84.58 kB / 1.024 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000244/0.48, allocations: 240 kB / 1.025 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.233e-05/0.48, allocations: 12.75 kB / 1.025 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.851e-05/0.48, allocations: 16.38 kB / 1.025 GB, free: 11.08 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003874/0.4804, allocations: 303.3 kB / 1.025 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/0.4804, allocations: 8 kB / 1.025 GB, free: 10.76 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.343e-05/0.4805, allocations: 4 kB / 1.025 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.028e-05/0.4805, allocations: 20.36 kB / 1.025 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002774/0.4808, allocations: 196.9 kB / 1.025 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001251/0.482, allocations: 1.46 MB / 1.027 GB, free: 8.922 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002316/0.4823, allocations: 179.6 kB / 1.027 GB, free: 8.719 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.9e-05/0.4824, allocations: 32.84 kB / 1.027 GB, free: 8.684 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 7.294e-06/0.4824, allocations: 0 / 1.027 GB, free: 8.684 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.097e-05/0.4824, allocations: 38.56 kB / 1.027 GB, free: 8.637 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 9.02e-07/0.4824, allocations: 0 / 1.027 GB, free: 8.637 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0004158/0.4828, allocations: 227.3 kB / 1.027 GB, free: 8.387 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.496e-05/0.4829, allocations: 55.34 kB / 1.027 GB, free: 8.32 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000166/0.483, allocations: 199.5 kB / 1.027 GB, free: 8.117 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.327e-05/0.483, allocations: 25.7 kB / 1.027 GB, free: 8.086 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.886e-05/0.4831, allocations: 167.6 kB / 1.027 GB, free: 7.918 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.703e-05/0.4832, allocations: 23.66 kB / 1.028 GB, free: 7.895 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.131e-05/0.4832, allocations: 41.61 kB / 1.028 GB, free: 7.848 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.673e-05/0.4833, allocations: 326.8 kB / 1.028 GB, free: 7.52 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.894e-05/0.4834, allocations: 31.98 kB / 1.028 GB, free: 7.488 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.799e-05/0.4835, allocations: 108.5 kB / 1.028 GB, free: 7.352 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001491/0.4836, allocations: 152.5 kB / 1.028 GB, free: 7.172 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.4836, allocations: 0 / 1.028 GB, free: 7.172 MB / 0.7794 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002755/0.4839, allocations: 186.3 kB / 1.028 GB, free: 6.98 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.526e-05/0.4839, allocations: 13.75 kB / 1.028 GB, free: 6.969 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-06/0.4839, allocations: 0 / 1.028 GB, free: 6.969 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000131/0.4841, allocations: 24.84 kB / 1.028 GB, free: 6.941 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.937e-05/0.4842, allocations: 31.92 kB / 1.028 GB, free: 6.91 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008539/0.485, allocations: 1.422 MB / 1.03 GB, free: 5.352 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000113/0.4852, allocations: 19.81 kB / 1.03 GB, free: 5.332 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.098e-05/0.4852, allocations: 12.12 kB / 1.03 GB, free: 5.32 MB / 0.7794 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 0.0001016/0.4853, allocations: 141.8 kB / 1.03 GB, free: 5.172 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.801e-05/0.4853, allocations: 19.8 kB / 1.03 GB, free: 5.152 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.64e-05/0.4854, allocations: 17.41 kB / 1.03 GB, free: 5.137 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.313e-06/0.4854, allocations: 0 / 1.03 GB, free: 5.137 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.287e-06/0.4854, allocations: 4 kB / 1.03 GB, free: 5.133 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.054e-06/0.4854, allocations: 3.938 kB / 1.03 GB, free: 5.129 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000419/0.4858, allocations: 439.3 kB / 1.03 GB, free: 4.641 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.4858, allocations: 64 / 1.03 GB, free: 4.641 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.818e-05/0.4859, allocations: 12 kB / 1.03 GB, free: 4.629 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.056e-05/0.4859, allocations: 28.78 kB / 1.03 GB, free: 4.598 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.442e-06/0.486, allocations: 0 / 1.03 GB, free: 4.598 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007961/0.4868, allocations: 1.41 MB / 1.032 GB, free: 3.039 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.4868, allocations: 4.094 kB / 1.032 GB, free: 3.035 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001859/0.487, allocations: 220.5 kB / 1.032 GB, free: 2.801 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.067e-05/0.487, allocations: 101 kB / 1.032 GB, free: 2.684 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.759e-05/0.487, allocations: 3.938 kB / 1.032 GB, free: 2.68 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001029/0.4872, allocations: 4 kB / 1.032 GB, free: 2.676 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.697e-05/0.4872, allocations: 11.92 kB / 1.032 GB, free: 2.664 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.12e-06/0.4872, allocations: 0 / 1.032 GB, free: 2.664 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001078/0.4873, allocations: 147.2 kB / 1.032 GB, free: 2.52 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.21e-07/0.4873, allocations: 0 / 1.032 GB, free: 2.52 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002892/0.4876, allocations: 51.84 kB / 1.032 GB, free: 2.469 MB / 0.7794 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.000381/0.488, allocations: 0.7482 MB / 1.033 GB, free: 1.691 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002962/0.4883, allocations: 214.5 kB / 1.033 GB, free: 1.469 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.4883, allocations: 0 / 1.033 GB, free: 1.469 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001349/0.4884, allocations: 154.6 kB / 1.033 GB, free: 1.305 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000314/0.4888, allocations: 33.36 kB / 1.033 GB, free: 1.273 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001825/0.4906, allocations: 2.031 MB / 1.035 GB, free: 15.09 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002484/0.4909, allocations: 0.7552 MB / 1.036 GB, free: 14.31 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 8.397e-05/0.491, allocations: 17.55 kB / 1.036 GB, free: 14.3 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.631e-05/0.491, allocations: 55.41 kB / 1.036 GB, free: 14.24 MB / 0.795 GB Notification: Performance of SimCode: time 2.4e-07/0.491, allocations: 4 kB / 1.036 GB, free: 14.24 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5679/1.059, allocations: 3.633 MB / 1.04 GB, free: 10.72 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.04/16.1, allocations: 2.078 kB / 1.04 GB, free: 10.72 MB / 0.795 GB (rm -f Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat --tempDir=temp_Buildings_10_Buildings_Electrical_DC_Lines_Examples_Resistance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Electrical_DC_Lines_Examples_Resistance.fmu > Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_DC_Lines_Examples_Resistance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches