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.001898/0.001898, allocations: 105.2 kB / 15.99 MB, free: 6.348 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.00215/0.002149, allocations: 198.9 kB / 16.91 MB, free: 6.188 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.649/1.649, allocations: 222.9 MB / 240.6 MB, free: 15.43 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.579/2.579, allocations: 437.1 MB / 0.7107 GB, free: 4.629 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.002105/0.002105, allocations: 60.88 kB / 0.8694 GB, free: 2.543 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3053/0.3075, allocations: 151.6 MB / 1.017 GB, free: 10.98 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.005236/0.3128, allocations: 3.127 MB / 1.021 GB, free: 7.836 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.002277/0.3151, allocations: 1.32 MB / 1.022 GB, free: 6.508 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001743/0.3153, allocations: 8 kB / 1.022 GB, free: 6.5 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.00112/0.3164, allocations: 317.1 kB / 1.022 GB, free: 6.191 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0003966/0.3168, allocations: 131.4 kB / 1.022 GB, free: 6.062 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003818/0.3172, allocations: 119.7 kB / 1.022 GB, free: 5.945 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0004092/0.3176, allocations: 306.9 kB / 1.023 GB, free: 5.645 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004877/0.3181, allocations: 268.5 kB / 1.023 GB, free: 5.379 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001703/0.3183, allocations: 119.6 kB / 1.023 GB, free: 5.262 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003067/0.3186, allocations: 143.5 kB / 1.023 GB, free: 5.121 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 3.557e-05/0.3186, allocations: 23.94 kB / 1.023 GB, free: 5.098 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003002/0.319, allocations: 163.6 kB / 1.023 GB, free: 4.938 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001052/0.3191, allocations: 79.8 kB / 1.023 GB, free: 4.859 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0001397/0.3192, allocations: 111.5 kB / 1.024 GB, free: 4.75 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0003585/0.3196, allocations: 263.4 kB / 1.024 GB, free: 4.492 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.3196, allocations: 4 kB / 1.024 GB, free: 4.488 MB / 0.795 GB Notification: Performance of FrontEnd: time 3.757e-06/0.3196, allocations: 0 / 1.024 GB, free: 4.488 MB / 0.795 GB Notification: Performance of Transformations before backend: time 7.424e-06/0.3196, allocations: 3.938 kB / 1.024 GB, free: 4.484 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.0008992/0.3205, allocations: 0.5146 MB / 1.024 GB, free: 3.918 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.923e-05/0.3206, allocations: 8.922 kB / 1.024 GB, free: 3.91 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000605/0.3212, allocations: 84.58 kB / 1.024 GB, free: 3.828 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003109/0.3215, allocations: 234.2 kB / 1.025 GB, free: 3.562 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.258e-05/0.3215, allocations: 20.73 kB / 1.025 GB, free: 3.543 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.227e-05/0.3216, allocations: 16.38 kB / 1.025 GB, free: 3.527 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004937/0.3221, allocations: 295.5 kB / 1.025 GB, free: 3.219 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.261e-05/0.3221, allocations: 7.938 kB / 1.025 GB, free: 3.211 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.813e-05/0.3221, allocations: 12 kB / 1.025 GB, free: 3.199 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.693e-05/0.3222, allocations: 16.36 kB / 1.025 GB, free: 3.184 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003339/0.3225, allocations: 196.7 kB / 1.025 GB, free: 2.992 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001754/0.3243, allocations: 1.468 MB / 1.027 GB, free: 1.363 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002979/0.3246, allocations: 171.7 kB / 1.027 GB, free: 1.168 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.525e-05/0.3247, allocations: 40.78 kB / 1.027 GB, free: 1.125 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 7.915e-06/0.3247, allocations: 0 / 1.027 GB, free: 1.125 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.243e-05/0.3247, allocations: 38.56 kB / 1.027 GB, free: 1.078 MB / 0.795 GB Notification: Performance of pre-optimization done (n=7): time 1.252e-06/0.3247, allocations: 0 / 1.027 GB, free: 1.078 MB / 0.795 GB Notification: Performance of matching and sorting (n=7): time 0.0005149/0.3252, allocations: 223.4 kB / 1.027 GB, free: 0.832 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.71e-05/0.3253, allocations: 59.39 kB / 1.027 GB, free: 0.7617 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002185/0.3255, allocations: 196 kB / 1.027 GB, free: 0.5625 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.184e-05/0.3256, allocations: 25.7 kB / 1.027 GB, free: 0.5312 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001275/0.3257, allocations: 171.7 kB / 1.027 GB, free: 368 kB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 2.496e-05/0.3257, allocations: 27.66 kB / 1.027 GB, free: 340 kB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.215e-05/0.3258, allocations: 37.61 kB / 1.028 GB, free: 296 kB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001835/0.326, allocations: 330.8 kB / 1.028 GB, free: 15.96 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.762e-05/0.326, allocations: 31.98 kB / 1.028 GB, free: 15.93 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001213/0.3262, allocations: 104.5 kB / 1.028 GB, free: 15.79 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001994/0.3264, allocations: 144.4 kB / 1.028 GB, free: 15.62 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.3264, allocations: 0 / 1.028 GB, free: 15.62 MB / 0.8106 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003336/0.3267, allocations: 190.3 kB / 1.028 GB, free: 15.43 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.815e-05/0.3268, allocations: 8 kB / 1.028 GB, free: 15.42 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.3268, allocations: 4 kB / 1.028 GB, free: 15.41 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001586/0.3269, allocations: 24.94 kB / 1.028 GB, free: 15.39 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001153/0.3271, allocations: 35.86 kB / 1.028 GB, free: 15.35 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001315/0.3284, allocations: 1.418 MB / 1.03 GB, free: 13.8 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001351/0.3285, allocations: 19.91 kB / 1.03 GB, free: 13.78 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.391e-05/0.3286, allocations: 8.125 kB / 1.03 GB, free: 13.77 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.0001695/0.3287, allocations: 150.3 kB / 1.03 GB, free: 13.61 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.107e-05/0.3288, allocations: 19.75 kB / 1.03 GB, free: 13.59 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.8e-05/0.3288, allocations: 21.39 kB / 1.03 GB, free: 13.57 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-06/0.3288, allocations: 0 / 1.03 GB, free: 13.57 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.3288, allocations: 0 / 1.03 GB, free: 13.57 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.224e-06/0.3288, allocations: 0 / 1.03 GB, free: 13.57 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005834/0.3294, allocations: 451.2 kB / 1.03 GB, free: 13.07 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.3294, allocations: 48 / 1.03 GB, free: 13.07 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.274e-05/0.3295, allocations: 11.92 kB / 1.03 GB, free: 13.06 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.198e-05/0.3296, allocations: 20.84 kB / 1.03 GB, free: 13.04 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.131e-05/0.3296, allocations: 4 kB / 1.03 GB, free: 13.04 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00121/0.3308, allocations: 1.41 MB / 1.032 GB, free: 11.48 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.3308, allocations: 8.125 kB / 1.032 GB, free: 11.47 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002665/0.3311, allocations: 212.5 kB / 1.032 GB, free: 11.24 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 8.723e-05/0.3312, allocations: 93 kB / 1.032 GB, free: 11.13 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.871e-05/0.3312, allocations: 0 / 1.032 GB, free: 11.13 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001114/0.3313, allocations: 8 kB / 1.032 GB, free: 11.12 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.107e-05/0.3314, allocations: 7.984 kB / 1.032 GB, free: 11.12 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.514e-06/0.3314, allocations: 0 / 1.032 GB, free: 11.12 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001568/0.3316, allocations: 151.2 kB / 1.032 GB, free: 10.97 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3316, allocations: 0 / 1.032 GB, free: 10.97 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003443/0.3319, allocations: 51.84 kB / 1.032 GB, free: 10.92 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.0001228/0.332, allocations: 95.25 kB / 1.032 GB, free: 10.82 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0004165/0.3325, allocations: 227 kB / 1.033 GB, free: 10.58 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.3325, allocations: 4.062 kB / 1.033 GB, free: 10.58 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001788/0.3327, allocations: 146.7 kB / 1.033 GB, free: 10.42 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003744/0.333, allocations: 41.42 kB / 1.033 GB, free: 10.39 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007804/0.3338, allocations: 480.1 kB / 1.033 GB, free: 9.883 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004153/0.3343, allocations: 0.7436 MB / 1.034 GB, free: 9.113 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.254e-05/0.3343, allocations: 19.42 kB / 1.034 GB, free: 9.094 MB / 0.8106 GB Notification: Performance of SimCode: time 2.21e-07/0.3343, allocations: 0 / 1.034 GB, free: 9.094 MB / 0.8106 GB Notification: Performance of Templates: time 0.005496/0.3398, allocations: 2.955 MB / 1.037 GB, free: 6.148 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