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.006568/0.006568, allocations: 99.27 kB / 15.73 MB, free: 6.039 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.001304/0.001304, allocations: 191.9 kB / 16.67 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.342/1.342, allocations: 222.9 MB / 240.4 MB, free: 4.332 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.551/2.551, allocations: 437 MB / 0.7105 GB, free: 4.969 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001408/0.001408, allocations: 67.89 kB / 1.018 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2842/0.2856, allocations: 151.6 MB / 1.166 GB, free: 7.312 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.004637/0.2903, allocations: 3.074 MB / 1.169 GB, free: 4.219 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.002168/0.2925, allocations: 1.324 MB / 1.17 GB, free: 2.887 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002126/0.2927, allocations: 7.938 kB / 1.17 GB, free: 2.879 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.001152/0.2939, allocations: 342.7 kB / 1.171 GB, free: 2.543 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.000449/0.2944, allocations: 147.3 kB / 1.171 GB, free: 2.398 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004283/0.2948, allocations: 131.3 kB / 1.171 GB, free: 2.273 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0004131/0.2952, allocations: 303 kB / 1.171 GB, free: 1.977 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004884/0.2957, allocations: 239.1 kB / 1.172 GB, free: 1.746 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002437/0.296, allocations: 127.5 kB / 1.172 GB, free: 1.621 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003467/0.2963, allocations: 143.5 kB / 1.172 GB, free: 1.48 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 3.934e-05/0.2964, allocations: 16 kB / 1.172 GB, free: 1.465 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003091/0.2967, allocations: 163.7 kB / 1.172 GB, free: 1.305 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 9.5e-05/0.2968, allocations: 83.78 kB / 1.172 GB, free: 1.223 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0001325/0.297, allocations: 111.5 kB / 1.172 GB, free: 1.113 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0004439/0.2974, allocations: 335.8 kB / 1.172 GB, free: 0.7852 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.2974, allocations: 7.938 kB / 1.172 GB, free: 0.7773 MB / 0.92 GB Notification: Performance of FrontEnd: time 9.91e-07/0.2974, allocations: 4 kB / 1.172 GB, free: 0.7734 MB / 0.92 GB Notification: Performance of Transformations before backend: time 8.436e-06/0.2975, allocations: 0 / 1.172 GB, free: 0.7734 MB / 0.92 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.000879/0.2983, allocations: 0.5108 MB / 1.173 GB, free: 216 kB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.313e-05/0.2984, allocations: 8.031 kB / 1.173 GB, free: 208 kB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.108e-05/0.2985, allocations: 58.72 kB / 1.173 GB, free: 140 kB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006468/0.2991, allocations: 84.58 kB / 1.173 GB, free: 56 kB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003518/0.2995, allocations: 249.9 kB / 1.173 GB, free: 15.77 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.996e-05/0.2995, allocations: 16.75 kB / 1.173 GB, free: 15.76 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.524e-05/0.2996, allocations: 16.38 kB / 1.173 GB, free: 15.74 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004347/0.3, allocations: 303.3 kB / 1.174 GB, free: 15.43 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.276e-05/0.3, allocations: 4 kB / 1.174 GB, free: 15.42 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.412e-05/0.3, allocations: 4 kB / 1.174 GB, free: 15.42 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.582e-05/0.3001, allocations: 16.36 kB / 1.174 GB, free: 15.4 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003078/0.3004, allocations: 196.9 kB / 1.174 GB, free: 15.21 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001572/0.302, allocations: 1.46 MB / 1.175 GB, free: 13.59 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002634/0.3023, allocations: 179.7 kB / 1.175 GB, free: 13.38 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.194e-05/0.3023, allocations: 32.84 kB / 1.176 GB, free: 13.35 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 9.948e-06/0.3024, allocations: 0 / 1.176 GB, free: 13.35 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.657e-05/0.3024, allocations: 34.56 kB / 1.176 GB, free: 13.3 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=7): time 1.392e-06/0.3024, allocations: 0 / 1.176 GB, free: 13.3 MB / 0.9356 GB Notification: Performance of matching and sorting (n=7): time 0.0005074/0.3029, allocations: 227.6 kB / 1.176 GB, free: 13.05 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.955e-05/0.303, allocations: 55.41 kB / 1.176 GB, free: 12.99 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002108/0.3032, allocations: 207.2 kB / 1.176 GB, free: 12.78 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.659e-05/0.3032, allocations: 29.7 kB / 1.176 GB, free: 12.74 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001105/0.3033, allocations: 163.6 kB / 1.176 GB, free: 12.58 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.276e-05/0.3033, allocations: 27.8 kB / 1.176 GB, free: 12.55 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.825e-05/0.3034, allocations: 37.7 kB / 1.176 GB, free: 12.51 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001363/0.3036, allocations: 326.8 kB / 1.177 GB, free: 12.18 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.081e-05/0.3036, allocations: 39.98 kB / 1.177 GB, free: 12.14 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.83e-05/0.3037, allocations: 100.4 kB / 1.177 GB, free: 12.01 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001869/0.3039, allocations: 148.4 kB / 1.177 GB, free: 11.84 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.3039, allocations: 0 / 1.177 GB, free: 11.84 MB / 0.9356 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003237/0.3043, allocations: 190.2 kB / 1.177 GB, free: 11.64 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.958e-05/0.3043, allocations: 4 kB / 1.177 GB, free: 11.64 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.055e-06/0.3043, allocations: 7.938 kB / 1.177 GB, free: 11.63 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001759/0.3045, allocations: 24.84 kB / 1.177 GB, free: 11.6 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001151/0.3046, allocations: 36.2 kB / 1.177 GB, free: 11.57 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0012/0.3058, allocations: 1.43 MB / 1.179 GB, free: 9.996 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001206/0.306, allocations: 11.84 kB / 1.179 GB, free: 9.984 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.188e-05/0.306, allocations: 8 kB / 1.179 GB, free: 9.977 MB / 0.9356 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.0001311/0.3061, allocations: 153.6 kB / 1.179 GB, free: 9.816 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.944e-05/0.3062, allocations: 11.81 kB / 1.179 GB, free: 9.805 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.051e-05/0.3062, allocations: 21.39 kB / 1.179 GB, free: 9.781 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-06/0.3062, allocations: 4 kB / 1.179 GB, free: 9.777 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.3062, allocations: 4.062 kB / 1.179 GB, free: 9.773 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.514e-06/0.3062, allocations: 0 / 1.179 GB, free: 9.773 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004962/0.3067, allocations: 447.1 kB / 1.179 GB, free: 9.277 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.3067, allocations: 0 / 1.179 GB, free: 9.277 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.705e-05/0.3068, allocations: 4 kB / 1.179 GB, free: 9.273 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.005e-05/0.3069, allocations: 24.84 kB / 1.179 GB, free: 9.246 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.015e-06/0.3069, allocations: 48 / 1.179 GB, free: 9.246 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009459/0.3078, allocations: 1.418 MB / 1.181 GB, free: 7.688 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.3078, allocations: 0 / 1.181 GB, free: 7.688 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002275/0.3081, allocations: 220.1 kB / 1.181 GB, free: 7.453 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 7.072e-05/0.3082, allocations: 92.91 kB / 1.181 GB, free: 7.344 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.832e-05/0.3082, allocations: 4 kB / 1.181 GB, free: 7.34 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001106/0.3083, allocations: 8 kB / 1.181 GB, free: 7.332 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.824e-05/0.3083, allocations: 12.05 kB / 1.181 GB, free: 7.32 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.42e-06/0.3083, allocations: 0 / 1.181 GB, free: 7.32 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.000133/0.3085, allocations: 143.2 kB / 1.181 GB, free: 7.18 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3085, allocations: 0 / 1.181 GB, free: 7.18 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003278/0.3088, allocations: 51.84 kB / 1.181 GB, free: 7.129 MB / 0.9356 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.0005297/0.3094, allocations: 0.7482 MB / 1.182 GB, free: 6.348 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003764/0.3097, allocations: 210.6 kB / 1.182 GB, free: 6.129 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.3098, allocations: 0 / 1.182 GB, free: 6.129 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001548/0.3099, allocations: 146.7 kB / 1.182 GB, free: 5.973 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000343/0.3103, allocations: 40.48 kB / 1.182 GB, free: 5.938 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002216/0.3125, allocations: 2.05 MB / 1.184 GB, free: 3.754 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003469/0.3129, allocations: 0.7553 MB / 1.185 GB, free: 2.973 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 8.713e-05/0.313, allocations: 21.53 kB / 1.185 GB, free: 2.949 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.742e-05/0.313, allocations: 55.41 kB / 1.185 GB, free: 2.895 MB / 0.9356 GB Notification: Performance of SimCode: time 2.6e-07/0.313, allocations: 4 kB / 1.185 GB, free: 2.891 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02451/0.3376, allocations: 3.715 MB / 1.189 GB, free: 15.3 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.438/9.776, allocations: 4.969 kB / 1.189 GB, free: 15.3 MB / 0.9512 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