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: translateModel(Buildings.Electrical.DC.Lines.Examples.Resistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I",fileNamePrefix="Buildings_10_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_10_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.001745/0.001745, 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.001868/0.001868, 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.452/1.452, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.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.576/2.576, allocations: 437.1 MB / 0.7111 GB, free: 4.457 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.002035/0.002035, allocations: 72.88 kB / 0.8699 GB, free: 2.188 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2992/0.3013, allocations: 151.6 MB / 1.018 GB, free: 10.62 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.005739/0.3071, allocations: 3.077 MB / 1.021 GB, free: 7.531 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.002367/0.3095, allocations: 1.336 MB / 1.022 GB, free: 6.188 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001365/0.3096, allocations: 4 kB / 1.022 GB, free: 6.184 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.00114/0.3108, allocations: 343.2 kB / 1.023 GB, free: 5.848 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0003671/0.3112, allocations: 143.3 kB / 1.023 GB, free: 5.707 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003966/0.3116, allocations: 128.1 kB / 1.023 GB, free: 5.582 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0004052/0.312, allocations: 307 kB / 1.023 GB, free: 5.281 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004796/0.3125, allocations: 232.5 kB / 1.023 GB, free: 5.051 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001679/0.3127, allocations: 127.6 kB / 1.024 GB, free: 4.926 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003154/0.313, allocations: 139.5 kB / 1.024 GB, free: 4.789 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 3.95e-05/0.313, allocations: 16 kB / 1.024 GB, free: 4.773 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003624/0.3134, allocations: 175.6 kB / 1.024 GB, free: 4.602 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.000103/0.3135, allocations: 75.86 kB / 1.024 GB, free: 4.527 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0001476/0.3137, allocations: 111.5 kB / 1.024 GB, free: 4.418 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0004701/0.3141, allocations: 331 kB / 1.024 GB, free: 4.094 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.3142, allocations: 3.938 kB / 1.024 GB, free: 4.09 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.463e-06/0.3142, allocations: 0 / 1.024 GB, free: 4.09 MB / 0.795 GB Notification: Performance of Transformations before backend: time 1.355e-05/0.3142, allocations: 3.984 kB / 1.024 GB, free: 4.086 MB / 0.795 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.0009398/0.3151, allocations: 0.5147 MB / 1.025 GB, free: 3.52 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.477e-05/0.3152, allocations: 12.92 kB / 1.025 GB, free: 3.508 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005993/0.3158, allocations: 80.58 kB / 1.025 GB, free: 3.43 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003402/0.3161, allocations: 232 kB / 1.025 GB, free: 3.164 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.122e-05/0.3162, allocations: 16.73 kB / 1.025 GB, free: 3.148 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.228e-05/0.3162, allocations: 20.38 kB / 1.025 GB, free: 3.129 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005008/0.3167, allocations: 299.5 kB / 1.025 GB, free: 2.816 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.175e-05/0.3167, allocations: 0 / 1.025 GB, free: 2.816 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.256e-05/0.3168, allocations: 12 kB / 1.025 GB, free: 2.805 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.274e-05/0.3168, allocations: 12.38 kB / 1.025 GB, free: 2.793 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003461/0.3172, allocations: 208.6 kB / 1.026 GB, free: 2.59 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00182/0.319, allocations: 1.456 MB / 1.027 GB, free: 0.9727 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003272/0.3194, allocations: 183.7 kB / 1.027 GB, free: 0.7656 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.27e-05/0.3194, allocations: 32.84 kB / 1.027 GB, free: 0.7305 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 1.4e-05/0.3195, allocations: 0 / 1.027 GB, free: 0.7305 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.344e-05/0.3195, allocations: 30.56 kB / 1.027 GB, free: 0.6914 MB / 0.795 GB Notification: Performance of pre-optimization done (n=7): time 1.193e-06/0.3195, allocations: 0 / 1.027 GB, free: 0.6914 MB / 0.795 GB Notification: Performance of matching and sorting (n=7): time 0.0005752/0.3201, allocations: 235.6 kB / 1.028 GB, free: 444 kB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.658e-05/0.3201, allocations: 51.41 kB / 1.028 GB, free: 380 kB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002521/0.3204, allocations: 196 kB / 1.028 GB, free: 176 kB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.929e-05/0.3204, allocations: 37.64 kB / 1.028 GB, free: 132 kB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001771/0.3206, allocations: 171.7 kB / 1.028 GB, free: 15.96 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.887e-05/0.3207, allocations: 27.64 kB / 1.028 GB, free: 15.93 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.4e-05/0.3207, allocations: 33.62 kB / 1.028 GB, free: 15.89 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001821/0.3209, allocations: 326.8 kB / 1.028 GB, free: 15.56 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.457e-05/0.321, allocations: 43.97 kB / 1.028 GB, free: 15.52 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001224/0.3211, allocations: 95.33 kB / 1.029 GB, free: 15.4 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002137/0.3214, allocations: 148.4 kB / 1.029 GB, free: 15.22 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.3214, allocations: 4 kB / 1.029 GB, free: 15.22 MB / 0.8106 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.000326/0.3217, allocations: 186.1 kB / 1.029 GB, free: 15.03 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.054e-05/0.3217, allocations: 8 kB / 1.029 GB, free: 15.02 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.3217, allocations: 4.141 kB / 1.029 GB, free: 15.02 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001804/0.3219, allocations: 33.12 kB / 1.029 GB, free: 14.98 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001101/0.322, allocations: 27.92 kB / 1.029 GB, free: 14.95 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001306/0.3234, allocations: 1.426 MB / 1.03 GB, free: 13.39 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001242/0.3235, allocations: 15.84 kB / 1.03 GB, free: 13.38 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.114e-05/0.3235, allocations: 4 kB / 1.03 GB, free: 13.37 MB / 0.8106 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.0001651/0.3237, allocations: 157.7 kB / 1.03 GB, free: 13.21 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.2e-05/0.3237, allocations: 19.91 kB / 1.03 GB, free: 13.19 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.129e-05/0.3238, allocations: 17.41 kB / 1.03 GB, free: 13.17 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.313e-06/0.3238, allocations: 0 / 1.03 GB, free: 13.17 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.3238, allocations: 0 / 1.03 GB, free: 13.17 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/0.3238, allocations: 7.984 kB / 1.031 GB, free: 13.16 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005906/0.3244, allocations: 443.2 kB / 1.031 GB, free: 12.67 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.3244, allocations: 0 / 1.031 GB, free: 12.67 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.031e-05/0.3245, allocations: 11.98 kB / 1.031 GB, free: 12.66 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.627e-05/0.3245, allocations: 24.94 kB / 1.031 GB, free: 12.63 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.828e-06/0.3246, allocations: 7.938 kB / 1.031 GB, free: 12.62 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001217/0.3258, allocations: 1.414 MB / 1.032 GB, free: 11.06 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.3258, allocations: 4 kB / 1.032 GB, free: 11.06 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002569/0.3261, allocations: 208.3 kB / 1.033 GB, free: 10.84 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 8.897e-05/0.3262, allocations: 100.9 kB / 1.033 GB, free: 10.72 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.78e-05/0.3262, allocations: 0 / 1.033 GB, free: 10.72 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001133/0.3263, allocations: 11.98 kB / 1.033 GB, free: 10.71 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.436e-05/0.3263, allocations: 0 / 1.033 GB, free: 10.71 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.033e-05/0.3264, allocations: 4 kB / 1.033 GB, free: 10.7 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001478/0.3265, allocations: 143.2 kB / 1.033 GB, free: 10.56 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3265, allocations: 4 kB / 1.033 GB, free: 10.56 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003395/0.3269, allocations: 51.84 kB / 1.033 GB, free: 10.51 MB / 0.8106 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.0001355/0.327, allocations: 101.1 kB / 1.033 GB, free: 10.4 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0004144/0.3274, allocations: 218.4 kB / 1.033 GB, free: 10.18 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.3274, allocations: 0 / 1.033 GB, free: 10.18 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001829/0.3276, allocations: 151.2 kB / 1.033 GB, free: 10.02 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003831/0.328, allocations: 36.78 kB / 1.033 GB, free: 9.98 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007535/0.3288, allocations: 388.2 kB / 1.034 GB, free: 9.566 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004369/0.3292, allocations: 0.7514 MB / 1.034 GB, free: 8.789 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.036e-05/0.3293, allocations: 15.44 kB / 1.034 GB, free: 8.773 MB / 0.8106 GB Notification: Performance of SimCode: time 3.9e-07/0.3293, allocations: 0 / 1.034 GB, free: 8.773 MB / 0.8106 GB Notification: Performance of Templates: time 0.005685/0.335, allocations: 2.966 MB / 1.037 GB, free: 5.816 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.makefile (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 & ./Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > 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