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.004187/0.004187, allocations: 97.62 kB / 15.73 MB, free: 6.059 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.001289/0.001289, allocations: 197.6 kB / 16.68 MB, free: 5.977 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.334/1.334, 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.479/2.479, allocations: 437.1 MB / 0.7106 GB, free: 4.984 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002526/0.002526, allocations: 59.91 kB / 1.018 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2727/0.2753, allocations: 151.6 MB / 1.166 GB, free: 7.27 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.004297/0.2796, allocations: 3.075 MB / 1.169 GB, free: 4.172 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001862/0.2815, allocations: 1.328 MB / 1.17 GB, free: 2.836 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.378e-05/0.2816, allocations: 4 kB / 1.17 GB, free: 2.832 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0009026/0.2825, allocations: 342.7 kB / 1.171 GB, free: 2.496 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0002791/0.2828, allocations: 143.3 kB / 1.171 GB, free: 2.355 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002914/0.2831, allocations: 131.6 kB / 1.171 GB, free: 2.227 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0003278/0.2834, allocations: 318.9 kB / 1.171 GB, free: 1.914 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003699/0.2838, allocations: 228.5 kB / 1.172 GB, free: 1.691 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000132/0.2839, allocations: 127.6 kB / 1.172 GB, free: 1.566 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002521/0.2842, allocations: 135.5 kB / 1.172 GB, free: 1.434 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 3.806e-05/0.2842, allocations: 20 kB / 1.172 GB, free: 1.414 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002565/0.2845, allocations: 167.6 kB / 1.172 GB, free: 1.25 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 8.8e-05/0.2846, allocations: 79.78 kB / 1.172 GB, free: 1.172 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.000112/0.2847, allocations: 115.4 kB / 1.172 GB, free: 1.059 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0003994/0.2851, allocations: 330.8 kB / 1.173 GB, free: 0.7344 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.2851, allocations: 4 kB / 1.173 GB, free: 0.7305 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.122e-06/0.2851, allocations: 0 / 1.173 GB, free: 0.7305 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.969e-06/0.2852, allocations: 0 / 1.173 GB, free: 0.7305 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.0007084/0.2859, allocations: 0.5181 MB / 1.173 GB, free: 164 kB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.088e-05/0.2859, allocations: 12.03 kB / 1.173 GB, free: 152 kB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.203e-05/0.286, allocations: 62.7 kB / 1.173 GB, free: 80 kB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005386/0.2865, allocations: 88.66 kB / 1.173 GB, free: 15.99 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002642/0.2868, allocations: 234.6 kB / 1.173 GB, free: 15.73 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.83e-05/0.2868, allocations: 20.75 kB / 1.173 GB, free: 15.71 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.54e-05/0.2868, allocations: 16.38 kB / 1.173 GB, free: 15.69 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00043/0.2873, allocations: 307.3 kB / 1.174 GB, free: 15.37 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.2873, allocations: 0 / 1.174 GB, free: 15.37 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.489e-05/0.2873, allocations: 12 kB / 1.174 GB, free: 15.36 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.218e-05/0.2874, allocations: 12.38 kB / 1.174 GB, free: 15.34 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002986/0.2877, allocations: 200.7 kB / 1.174 GB, free: 15.15 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0014/0.2891, allocations: 1.46 MB / 1.175 GB, free: 13.52 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002479/0.2893, allocations: 183.7 kB / 1.176 GB, free: 13.32 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.471e-05/0.2894, allocations: 32.84 kB / 1.176 GB, free: 13.28 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 6.712e-06/0.2894, allocations: 0 / 1.176 GB, free: 13.28 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.143e-05/0.2894, allocations: 30.56 kB / 1.176 GB, free: 13.24 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=7): time 7.91e-07/0.2894, allocations: 0 / 1.176 GB, free: 13.24 MB / 0.9356 GB Notification: Performance of matching and sorting (n=7): time 0.0004386/0.2899, allocations: 235.4 kB / 1.176 GB, free: 12.98 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.098e-05/0.2899, allocations: 51.41 kB / 1.176 GB, free: 12.92 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001872/0.2901, allocations: 199.3 kB / 1.176 GB, free: 12.72 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.964e-05/0.2901, allocations: 33.7 kB / 1.176 GB, free: 12.68 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 9.882e-05/0.2903, allocations: 167.9 kB / 1.176 GB, free: 12.51 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 2.531e-05/0.2903, allocations: 35.88 kB / 1.176 GB, free: 12.48 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.103e-05/0.2903, allocations: 25.72 kB / 1.176 GB, free: 12.45 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001208/0.2905, allocations: 330.8 kB / 1.177 GB, free: 12.11 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.457e-05/0.2905, allocations: 43.97 kB / 1.177 GB, free: 12.07 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.899e-05/0.2906, allocations: 95.02 kB / 1.177 GB, free: 11.95 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001736/0.2908, allocations: 152.4 kB / 1.177 GB, free: 11.77 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.2908, allocations: 4 kB / 1.177 GB, free: 11.77 MB / 0.9356 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002828/0.2911, allocations: 186.2 kB / 1.177 GB, free: 11.57 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.454e-05/0.2911, allocations: 8 kB / 1.177 GB, free: 11.57 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.2912, allocations: 0 / 1.177 GB, free: 11.57 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001345/0.2913, allocations: 25.12 kB / 1.177 GB, free: 11.54 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000101/0.2914, allocations: 31.98 kB / 1.177 GB, free: 11.51 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00104/0.2924, allocations: 1.426 MB / 1.179 GB, free: 9.941 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001077/0.2926, allocations: 23.78 kB / 1.179 GB, free: 9.918 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.005e-05/0.2926, allocations: 4 kB / 1.179 GB, free: 9.914 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.0001213/0.2927, allocations: 149.8 kB / 1.179 GB, free: 9.758 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.423e-05/0.2928, allocations: 11.95 kB / 1.179 GB, free: 9.746 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.145e-05/0.2928, allocations: 17.41 kB / 1.179 GB, free: 9.727 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.323e-06/0.2928, allocations: 4.062 kB / 1.179 GB, free: 9.723 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.224e-06/0.2928, allocations: 0 / 1.179 GB, free: 9.723 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.14e-06/0.2928, allocations: 7.984 kB / 1.179 GB, free: 9.715 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004863/0.2933, allocations: 439.2 kB / 1.179 GB, free: 9.227 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/0.2933, allocations: 4.109 kB / 1.179 GB, free: 9.223 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.96e-05/0.2934, allocations: 15.97 kB / 1.179 GB, free: 9.207 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.099e-05/0.2934, allocations: 20.94 kB / 1.179 GB, free: 9.184 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.863e-06/0.2935, allocations: 7.875 kB / 1.179 GB, free: 9.176 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009568/0.2944, allocations: 1.422 MB / 1.181 GB, free: 7.613 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.2944, allocations: 0 / 1.181 GB, free: 7.613 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002133/0.2946, allocations: 212.6 kB / 1.181 GB, free: 7.387 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 7.373e-05/0.2947, allocations: 100.9 kB / 1.181 GB, free: 7.27 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.682e-05/0.2948, allocations: 0 / 1.181 GB, free: 7.27 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001032/0.2949, allocations: 11.98 kB / 1.181 GB, free: 7.258 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.386e-05/0.2949, allocations: 4.062 kB / 1.181 GB, free: 7.254 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.923e-06/0.2949, allocations: 4 kB / 1.181 GB, free: 7.25 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001164/0.295, allocations: 139.2 kB / 1.181 GB, free: 7.113 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.71e-07/0.295, allocations: 0 / 1.181 GB, free: 7.113 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002952/0.2953, allocations: 55.89 kB / 1.181 GB, free: 7.059 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.0004818/0.2958, allocations: 0.7522 MB / 1.182 GB, free: 6.273 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003185/0.2961, allocations: 210.5 kB / 1.182 GB, free: 6.055 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2961, allocations: 0 / 1.182 GB, free: 6.055 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001498/0.2963, allocations: 147.2 kB / 1.182 GB, free: 5.898 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003082/0.2966, allocations: 37.75 kB / 1.182 GB, free: 5.863 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002004/0.2986, allocations: 2.045 MB / 1.184 GB, free: 3.684 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003357/0.299, allocations: 0.7514 MB / 1.185 GB, free: 2.906 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 7.426e-05/0.2991, allocations: 21.53 kB / 1.185 GB, free: 2.883 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.278e-05/0.2991, allocations: 55.61 kB / 1.185 GB, free: 2.828 MB / 0.9356 GB Notification: Performance of SimCode: time 2.61e-07/0.2991, allocations: 3.938 kB / 1.185 GB, free: 2.824 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.111/1.41, allocations: 3.719 MB / 1.189 GB, free: 15.23 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.45/19.86, allocations: 9.172 kB / 1.189 GB, free: 15.23 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=400 --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