Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.009334/0.009334, allocations: 101.3 kB / 15.73 MB, free: 6.422 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.001796/0.001796, allocations: 188.8 kB / 16.67 MB, free: 6.352 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.425/1.425, allocations: 222.9 MB / 240.4 MB, free: 4.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.58/2.58, allocations: 390.2 MB / 0.6648 GB, free: 224 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001269/0.001269, allocations: 62.25 kB / 0.9508 GB, free: 5.789 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.359/0.3603, allocations: 140.4 MB / 1.088 GB, free: 1.695 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.005063/0.3654, allocations: 3.076 MB / 1.091 GB, free: 14.61 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002252/0.3677, allocations: 1.321 MB / 1.092 GB, free: 13.28 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001411/0.3679, allocations: 8 kB / 1.092 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001069/0.3689, allocations: 338.7 kB / 1.093 GB, free: 12.94 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0003582/0.3693, allocations: 147.3 kB / 1.093 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003562/0.3697, allocations: 139.4 kB / 1.093 GB, free: 12.66 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003616/0.37, allocations: 310.7 kB / 1.093 GB, free: 12.36 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004737/0.3705, allocations: 236.2 kB / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001576/0.3707, allocations: 123.6 kB / 1.093 GB, free: 12 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003013/0.371, allocations: 139.5 kB / 1.094 GB, free: 11.87 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.315e-05/0.371, allocations: 27.94 kB / 1.094 GB, free: 11.84 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002806/0.3713, allocations: 163.7 kB / 1.094 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 9.432e-05/0.3714, allocations: 83.73 kB / 1.094 GB, free: 11.6 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001216/0.3716, allocations: 107.5 kB / 1.094 GB, free: 11.49 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004012/0.372, allocations: 331 kB / 1.094 GB, free: 11.17 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.372, allocations: 0 / 1.094 GB, free: 11.17 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.904e-06/0.372, allocations: 0 / 1.094 GB, free: 11.17 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.158e-05/0.372, allocations: 0 / 1.094 GB, free: 11.17 MB / 0.8575 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.0008711/0.3729, allocations: 0.5225 MB / 1.095 GB, free: 10.59 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.376e-05/0.3729, allocations: 8.031 kB / 1.095 GB, free: 10.59 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005754/0.3735, allocations: 80.58 kB / 1.095 GB, free: 10.51 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003145/0.3739, allocations: 250 kB / 1.095 GB, free: 10.23 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.84e-05/0.3739, allocations: 8.75 kB / 1.095 GB, free: 10.22 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.959e-05/0.3739, allocations: 20.38 kB / 1.095 GB, free: 10.2 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000438/0.3744, allocations: 307.2 kB / 1.095 GB, free: 9.879 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.337e-05/0.3744, allocations: 3.984 kB / 1.095 GB, free: 9.875 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.016e-05/0.3744, allocations: 8 kB / 1.095 GB, free: 9.867 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.309e-05/0.3745, allocations: 16.36 kB / 1.095 GB, free: 9.852 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003146/0.3748, allocations: 193 kB / 1.096 GB, free: 9.664 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001468/0.3763, allocations: 1.46 MB / 1.097 GB, free: 8.043 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000256/0.3765, allocations: 175.7 kB / 1.097 GB, free: 7.844 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.496e-05/0.3766, allocations: 32.84 kB / 1.097 GB, free: 7.809 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 8.837e-06/0.3766, allocations: 3.938 kB / 1.097 GB, free: 7.805 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.676e-05/0.3766, allocations: 34.56 kB / 1.097 GB, free: 7.762 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.493e-06/0.3766, allocations: 0 / 1.097 GB, free: 7.762 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7): time 0.0004912/0.3771, allocations: 231.7 kB / 1.097 GB, free: 7.508 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.479e-05/0.3772, allocations: 51.41 kB / 1.098 GB, free: 7.445 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001966/0.3774, allocations: 198.4 kB / 1.098 GB, free: 7.242 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.692e-05/0.3774, allocations: 29.7 kB / 1.098 GB, free: 7.207 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 9.871e-05/0.3775, allocations: 159.6 kB / 1.098 GB, free: 7.047 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.261e-05/0.3776, allocations: 31.64 kB / 1.098 GB, free: 7.016 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.75e-05/0.3776, allocations: 37.62 kB / 1.098 GB, free: 6.973 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.000127/0.3777, allocations: 330.8 kB / 1.098 GB, free: 6.641 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.504e-05/0.3778, allocations: 31.98 kB / 1.098 GB, free: 6.609 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001014/0.3779, allocations: 106.4 kB / 1.098 GB, free: 6.477 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001728/0.3781, allocations: 144.4 kB / 1.099 GB, free: 6.305 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.3781, allocations: 0 / 1.099 GB, free: 6.305 MB / 0.8575 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002947/0.3784, allocations: 186.3 kB / 1.099 GB, free: 6.113 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2e-05/0.3784, allocations: 12 kB / 1.099 GB, free: 6.102 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/0.3785, allocations: 7.984 kB / 1.099 GB, free: 6.094 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001876/0.3786, allocations: 24.84 kB / 1.099 GB, free: 6.066 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001051/0.3788, allocations: 23.94 kB / 1.099 GB, free: 6.043 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001119/0.3799, allocations: 1.434 MB / 1.1 GB, free: 4.469 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001158/0.38, allocations: 15.88 kB / 1.1 GB, free: 4.453 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.103e-05/0.38, allocations: 4 kB / 1.1 GB, free: 4.449 MB / 0.8575 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.0001363/0.3802, allocations: 153.8 kB / 1.1 GB, free: 4.289 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.285e-05/0.3802, allocations: 15.81 kB / 1.1 GB, free: 4.273 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.271e-05/0.3803, allocations: 21.39 kB / 1.1 GB, free: 4.25 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.393e-06/0.3803, allocations: 0 / 1.1 GB, free: 4.25 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.895e-06/0.3803, allocations: 4 kB / 1.1 GB, free: 4.246 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-06/0.3803, allocations: 0 / 1.1 GB, free: 4.246 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004954/0.3808, allocations: 443.2 kB / 1.101 GB, free: 3.754 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.3808, allocations: 0 / 1.101 GB, free: 3.754 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.556e-05/0.3808, allocations: 12 kB / 1.101 GB, free: 3.742 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.569e-05/0.3809, allocations: 28.78 kB / 1.101 GB, free: 3.711 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.646e-06/0.3809, allocations: 0 / 1.101 GB, free: 3.711 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000973/0.3819, allocations: 1.406 MB / 1.102 GB, free: 2.16 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.3819, allocations: 3.938 kB / 1.102 GB, free: 2.156 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002197/0.3822, allocations: 220.2 kB / 1.102 GB, free: 1.922 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 7.07e-05/0.3822, allocations: 97.09 kB / 1.103 GB, free: 1.809 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.708e-05/0.3823, allocations: 7.938 kB / 1.103 GB, free: 1.801 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001019/0.3824, allocations: 4 kB / 1.103 GB, free: 1.797 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.99e-05/0.3824, allocations: 4 kB / 1.103 GB, free: 1.793 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.491e-06/0.3824, allocations: 0 / 1.103 GB, free: 1.793 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001329/0.3825, allocations: 148.9 kB / 1.103 GB, free: 1.648 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3825, allocations: 0 / 1.103 GB, free: 1.648 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003357/0.3829, allocations: 55.75 kB / 1.103 GB, free: 1.594 MB / 0.8575 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.0001182/0.383, allocations: 107.7 kB / 1.103 GB, free: 1.477 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003817/0.3834, allocations: 206.5 kB / 1.103 GB, free: 1.262 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.3834, allocations: 0 / 1.103 GB, free: 1.262 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001522/0.3836, allocations: 151.2 kB / 1.103 GB, free: 1.102 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003565/0.3839, allocations: 41.39 kB / 1.103 GB, free: 1.062 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006498/0.3846, allocations: 348.1 kB / 1.104 GB, free: 0.6992 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004007/0.385, allocations: 0.7475 MB / 1.104 GB, free: 15.93 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 8.073e-05/0.3851, allocations: 21.53 kB / 1.104 GB, free: 15.91 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.205e-05/0.3851, allocations: 23.38 kB / 1.104 GB, free: 15.89 MB / 0.8731 GB Notification: Performance of SimCode: time 2.01e-07/0.3851, allocations: 0 / 1.104 GB, free: 15.89 MB / 0.8731 GB Notification: Performance of Templates: time 0.00466/0.3898, allocations: 1.76 MB / 1.106 GB, free: 14.14 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & ./Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Lines_Examples_Resistance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches