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: translateModel(Buildings.Electrical.DC.Lines.Examples.Resistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance") translateModel(Buildings.Electrical.DC.Lines.Examples.Resistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00136/0.00136, allocations: 101.1 kB / 16.27 MB, free: 6.414 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.001511/0.001511, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.36/1.36, allocations: 222.9 MB / 240.9 MB, free: 15.25 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.678/2.678, allocations: 482.4 MB / 0.7553 GB, free: 6.984 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001892/0.001892, allocations: 61.33 kB / 0.9245 GB, free: 15.98 MB / 0.7012 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7309/0.7328, allocations: 162.2 MB / 1.083 GB, free: 1.879 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.004273/0.7371, allocations: 3.074 MB / 1.086 GB, free: 15.8 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.002143/0.7393, allocations: 1.32 MB / 1.087 GB, free: 14.89 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001097/0.7394, allocations: 7.938 kB / 1.087 GB, free: 14.89 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.001009/0.7404, allocations: 330.3 kB / 1.088 GB, free: 14.7 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0003521/0.7408, allocations: 152.2 kB / 1.088 GB, free: 14.61 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003549/0.7411, allocations: 131.7 kB / 1.088 GB, free: 14.54 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0003699/0.7415, allocations: 304.8 kB / 1.088 GB, free: 14.41 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004685/0.742, allocations: 248 kB / 1.088 GB, free: 14.3 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001568/0.7422, allocations: 119.9 kB / 1.088 GB, free: 14.25 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002801/0.7424, allocations: 134.9 kB / 1.089 GB, free: 14.19 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 3.658e-05/0.7425, allocations: 18.72 kB / 1.089 GB, free: 14.19 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003137/0.7428, allocations: 176.2 kB / 1.089 GB, free: 14.12 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 9.736e-05/0.7429, allocations: 80.03 kB / 1.089 GB, free: 14.09 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001346/0.7431, allocations: 112.8 kB / 1.089 GB, free: 14.03 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0004451/0.7435, allocations: 328.7 kB / 1.089 GB, free: 13.92 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.7435, allocations: 1.375 kB / 1.089 GB, free: 13.92 MB / 0.8419 GB Notification: Performance of FrontEnd: time 9.21e-07/0.7435, allocations: 0 / 1.089 GB, free: 13.92 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 6.653e-06/0.7435, allocations: 0 / 1.089 GB, free: 13.92 MB / 0.8419 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.0008351/0.7444, allocations: 0.5175 MB / 1.09 GB, free: 13.45 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.134e-05/0.7444, allocations: 12.44 kB / 1.09 GB, free: 13.45 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005591/0.745, allocations: 75.47 kB / 1.09 GB, free: 13.44 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002873/0.7453, allocations: 245.1 kB / 1.09 GB, free: 13.2 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.835e-05/0.7453, allocations: 12.25 kB / 1.09 GB, free: 13.2 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.581e-05/0.7453, allocations: 20.98 kB / 1.09 GB, free: 13.19 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004534/0.7458, allocations: 299.8 kB / 1.09 GB, free: 13.03 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/0.7458, allocations: 0 / 1.09 GB, free: 13.03 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.808e-05/0.7459, allocations: 11.36 kB / 1.09 GB, free: 13.02 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.331e-05/0.7459, allocations: 18.77 kB / 1.09 GB, free: 13.02 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003172/0.7462, allocations: 198.1 kB / 1.091 GB, free: 12.95 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001575/0.7478, allocations: 1.461 MB / 1.092 GB, free: 11.62 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002695/0.7481, allocations: 176.5 kB / 1.092 GB, free: 11.47 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.363e-05/0.7482, allocations: 31.72 kB / 1.092 GB, free: 11.46 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 8.425e-06/0.7482, allocations: 8.594 kB / 1.092 GB, free: 11.45 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.779e-05/0.7482, allocations: 37.38 kB / 1.092 GB, free: 11.41 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=7): time 1.082e-06/0.7482, allocations: 0 / 1.092 GB, free: 11.41 MB / 0.8419 GB Notification: Performance of matching and sorting (n=7): time 0.0004893/0.7487, allocations: 226 kB / 1.092 GB, free: 11.23 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.883e-05/0.7488, allocations: 53.42 kB / 1.093 GB, free: 11.17 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002221/0.749, allocations: 200.4 kB / 1.093 GB, free: 11.04 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.932e-05/0.749, allocations: 30.5 kB / 1.093 GB, free: 11 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001094/0.7491, allocations: 162.9 kB / 1.093 GB, free: 10.86 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.724e-05/0.7492, allocations: 25.31 kB / 1.093 GB, free: 10.84 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.245e-05/0.7492, allocations: 36.42 kB / 1.093 GB, free: 10.82 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001377/0.7494, allocations: 330 kB / 1.093 GB, free: 10.49 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.787e-05/0.7494, allocations: 35.11 kB / 1.093 GB, free: 10.48 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001141/0.7496, allocations: 103.7 kB / 1.093 GB, free: 10.38 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001876/0.7498, allocations: 148 kB / 1.094 GB, free: 10.26 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.7498, allocations: 1.391 kB / 1.094 GB, free: 10.26 MB / 0.8419 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003095/0.7501, allocations: 192.3 kB / 1.094 GB, free: 10.16 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.418e-05/0.7501, allocations: 5.625 kB / 1.094 GB, free: 10.16 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.7501, allocations: 2.062 kB / 1.094 GB, free: 10.16 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001495/0.7503, allocations: 26.14 kB / 1.094 GB, free: 10.14 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001023/0.7504, allocations: 25.84 kB / 1.094 GB, free: 10.14 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001169/0.7516, allocations: 1.428 MB / 1.095 GB, free: 8.715 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001158/0.7517, allocations: 21.72 kB / 1.095 GB, free: 8.699 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.128e-05/0.7517, allocations: 6.344 kB / 1.095 GB, free: 8.699 MB / 0.8419 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.0001353/0.7518, allocations: 143.7 kB / 1.095 GB, free: 8.57 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.881e-05/0.7519, allocations: 15.25 kB / 1.095 GB, free: 8.562 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.923e-05/0.7519, allocations: 20.45 kB / 1.095 GB, free: 8.555 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/0.7519, allocations: 4.562 kB / 1.095 GB, free: 8.551 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/0.7519, allocations: 1.469 kB / 1.095 GB, free: 8.551 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.305e-06/0.7519, allocations: 4.062 kB / 1.095 GB, free: 8.547 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005416/0.7525, allocations: 444.6 kB / 1.096 GB, free: 8.18 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.7525, allocations: 1.656 kB / 1.096 GB, free: 8.18 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.555e-05/0.7525, allocations: 6.531 kB / 1.096 GB, free: 8.18 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.41e-05/0.7526, allocations: 24.05 kB / 1.096 GB, free: 8.168 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.372e-05/0.7526, allocations: 4.062 kB / 1.096 GB, free: 8.164 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001062/0.7537, allocations: 1.415 MB / 1.097 GB, free: 6.742 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.7537, allocations: 1.594 kB / 1.097 GB, free: 6.742 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00023/0.754, allocations: 213.9 kB / 1.097 GB, free: 6.566 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 8.653e-05/0.7541, allocations: 102.9 kB / 1.098 GB, free: 6.457 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.904e-05/0.7541, allocations: 1.719 kB / 1.098 GB, free: 6.457 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001068/0.7542, allocations: 8.219 kB / 1.098 GB, free: 6.453 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.921e-05/0.7542, allocations: 4.75 kB / 1.098 GB, free: 6.453 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.626e-06/0.7542, allocations: 6.562 kB / 1.098 GB, free: 6.449 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.000138/0.7544, allocations: 148.1 kB / 1.098 GB, free: 6.348 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.41e-07/0.7544, allocations: 0 / 1.098 GB, free: 6.348 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003205/0.7547, allocations: 48.69 kB / 1.098 GB, free: 6.34 MB / 0.8419 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.0001212/0.7548, allocations: 104.9 kB / 1.098 GB, free: 6.242 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0003853/0.7552, allocations: 218.2 kB / 1.098 GB, free: 6.09 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 5.841e-06/0.7552, allocations: 0.875 kB / 1.098 GB, free: 6.09 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001606/0.7554, allocations: 149.2 kB / 1.098 GB, free: 5.965 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000339/0.7558, allocations: 33.97 kB / 1.098 GB, free: 5.957 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006359/0.7564, allocations: 394.7 kB / 1.099 GB, free: 5.691 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003831/0.7568, allocations: 0.7551 MB / 1.099 GB, free: 4.98 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.55e-05/0.7568, allocations: 20.44 kB / 1.099 GB, free: 4.969 MB / 0.8419 GB Notification: Performance of SimCode: time 2.2e-07/0.7568, allocations: 0 / 1.099 GB, free: 4.969 MB / 0.8419 GB Notification: Performance of Templates: time 0.005339/0.7622, allocations: 2.971 MB / 1.102 GB, free: 4.73 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.makefile (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 & ./Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > 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