Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.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.Loads.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen1.I",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor") translateModel(Buildings.Electrical.DC.Loads.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen1.I",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008994/0.008994, allocations: 99.64 kB / 15.73 MB, free: 6.031 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.001645/0.001645, allocations: 189.7 kB / 16.67 MB, free: 5.965 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.465/1.465, allocations: 222.9 MB / 240.4 MB, free: 4.176 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.608/2.608, allocations: 390.2 MB / 0.6648 GB, free: 200 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001172/0.001172, allocations: 66.86 kB / 0.9508 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3257/0.3269, allocations: 140.4 MB / 1.088 GB, free: 1.5 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.005788/0.3327, allocations: 3.84 MB / 1.092 GB, free: 13.64 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002945/0.3357, allocations: 1.718 MB / 1.093 GB, free: 11.91 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002103/0.3359, allocations: 11.94 kB / 1.093 GB, free: 11.9 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001513/0.3374, allocations: 0.4916 MB / 1.094 GB, free: 11.41 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0005473/0.338, allocations: 218.9 kB / 1.094 GB, free: 11.2 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005753/0.3386, allocations: 207.5 kB / 1.094 GB, free: 10.99 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0005129/0.3391, allocations: 490 kB / 1.095 GB, free: 10.51 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005943/0.3397, allocations: 357.1 kB / 1.095 GB, free: 10.16 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002078/0.3399, allocations: 195.4 kB / 1.095 GB, free: 9.969 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003611/0.3403, allocations: 219.1 kB / 1.095 GB, free: 9.754 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.997e-05/0.3404, allocations: 36 kB / 1.095 GB, free: 9.719 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000398/0.3408, allocations: 243.4 kB / 1.096 GB, free: 9.48 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001201/0.3409, allocations: 123.7 kB / 1.096 GB, free: 9.359 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.000171/0.3411, allocations: 175.1 kB / 1.096 GB, free: 9.188 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0005471/0.3416, allocations: 0.4984 MB / 1.096 GB, free: 8.688 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.3416, allocations: 7.984 kB / 1.096 GB, free: 8.68 MB / 0.8575 GB Notification: Performance of FrontEnd: time 8.32e-07/0.3416, allocations: 0 / 1.096 GB, free: 8.68 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.845e-06/0.3417, allocations: 0 / 1.096 GB, free: 8.68 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.0009597/0.3426, allocations: 0.6238 MB / 1.097 GB, free: 8.008 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.514e-05/0.3427, allocations: 8.031 kB / 1.097 GB, free: 8 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008815/0.3436, allocations: 136.4 kB / 1.097 GB, free: 7.867 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003696/0.3439, allocations: 296.2 kB / 1.098 GB, free: 7.539 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.221e-05/0.344, allocations: 21.03 kB / 1.098 GB, free: 7.52 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.246e-05/0.344, allocations: 28.36 kB / 1.098 GB, free: 7.492 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006297/0.3446, allocations: 467.9 kB / 1.098 GB, free: 6.996 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.228e-05/0.3447, allocations: 0 / 1.098 GB, free: 6.996 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.654e-05/0.3447, allocations: 15.98 kB / 1.098 GB, free: 6.98 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.511e-05/0.3448, allocations: 28.53 kB / 1.098 GB, free: 6.953 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004789/0.3453, allocations: 321.9 kB / 1.098 GB, free: 6.641 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002103/0.3474, allocations: 2.185 MB / 1.1 GB, free: 4.242 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000389/0.3478, allocations: 251.8 kB / 1.101 GB, free: 3.969 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002252/0.348, allocations: 107.3 kB / 1.101 GB, free: 3.863 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.921e-05/0.348, allocations: 3.984 kB / 1.101 GB, free: 3.859 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.77e-05/0.3481, allocations: 38.56 kB / 1.101 GB, free: 3.812 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=14): time 1.683e-06/0.3481, allocations: 3.938 kB / 1.101 GB, free: 3.809 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14): time 0.0005729/0.3487, allocations: 299.5 kB / 1.101 GB, free: 3.488 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.457e-05/0.3487, allocations: 51.41 kB / 1.101 GB, free: 3.426 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002735/0.349, allocations: 270.5 kB / 1.101 GB, free: 3.156 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.126e-05/0.349, allocations: 29.7 kB / 1.101 GB, free: 3.121 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001273/0.3492, allocations: 207.8 kB / 1.102 GB, free: 2.914 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.33e-05/0.3492, allocations: 47.34 kB / 1.102 GB, free: 2.867 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.331e-05/0.3493, allocations: 45.86 kB / 1.102 GB, free: 2.812 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001321/0.3494, allocations: 342.8 kB / 1.102 GB, free: 2.469 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.552e-05/0.3495, allocations: 60.38 kB / 1.102 GB, free: 2.41 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001447/0.3497, allocations: 140.1 kB / 1.102 GB, free: 2.234 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002575/0.3499, allocations: 221.1 kB / 1.103 GB, free: 1.98 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.3499, allocations: 0 / 1.103 GB, free: 1.98 MB / 0.8575 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004026/0.3503, allocations: 266 kB / 1.103 GB, free: 1.711 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/0.3504, allocations: 5.875 kB / 1.103 GB, free: 1.707 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.126e-06/0.3504, allocations: 4 kB / 1.103 GB, free: 1.703 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001697/0.3506, allocations: 28.78 kB / 1.103 GB, free: 1.672 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001731/0.3507, allocations: 43.98 kB / 1.103 GB, free: 1.629 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001112/0.3519, allocations: 1.43 MB / 1.104 GB, free: 60 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001586/0.352, allocations: 27.69 kB / 1.104 GB, free: 32 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.788e-05/0.3521, allocations: 16 kB / 1.104 GB, free: 16 kB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (27): * Single equations (assignments): 26 * 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.0001806/0.3522, allocations: 173.6 kB / 1.104 GB, free: 15.84 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.699e-05/0.3523, allocations: 23.72 kB / 1.104 GB, free: 15.81 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.758e-05/0.3524, allocations: 25.83 kB / 1.104 GB, free: 15.79 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-06/0.3524, allocations: 4 kB / 1.104 GB, free: 15.78 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.495e-06/0.3524, allocations: 0 / 1.104 GB, free: 15.78 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.608e-06/0.3524, allocations: 8.047 kB / 1.105 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008446/0.3532, allocations: 0.6947 MB / 1.105 GB, free: 14.99 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.856e-06/0.3532, allocations: 192 / 1.105 GB, free: 14.99 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.344e-05/0.3533, allocations: 31.92 kB / 1.105 GB, free: 14.96 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.254e-05/0.3534, allocations: 28.78 kB / 1.105 GB, free: 14.93 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.08e-05/0.3534, allocations: 4.125 kB / 1.105 GB, free: 14.92 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009571/0.3544, allocations: 1.414 MB / 1.107 GB, free: 13.37 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.3544, allocations: 7.969 kB / 1.107 GB, free: 13.36 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003277/0.3548, allocations: 325.2 kB / 1.107 GB, free: 13 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 9.723e-05/0.3549, allocations: 112.8 kB / 1.107 GB, free: 12.88 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.68e-05/0.3549, allocations: 8 kB / 1.107 GB, free: 12.87 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001519/0.3551, allocations: 11.98 kB / 1.107 GB, free: 12.86 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.209e-05/0.3551, allocations: 23.86 kB / 1.107 GB, free: 12.83 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.069e-05/0.3551, allocations: 4 kB / 1.107 GB, free: 12.83 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.000187/0.3553, allocations: 194 kB / 1.107 GB, free: 12.64 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3553, allocations: 0 / 1.107 GB, free: 12.64 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0004007/0.3557, allocations: 75.84 kB / 1.107 GB, free: 12.57 MB / 0.8731 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (14): * Single equations (assignments): 13 * 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.0001387/0.3559, allocations: 100.9 kB / 1.107 GB, free: 12.46 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.000563/0.3564, allocations: 277.1 kB / 1.108 GB, free: 12.18 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.3565, allocations: 0 / 1.108 GB, free: 12.18 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0002245/0.3567, allocations: 195.7 kB / 1.108 GB, free: 11.97 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004907/0.3572, allocations: 56.52 kB / 1.108 GB, free: 11.92 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009457/0.3581, allocations: 0.5319 MB / 1.108 GB, free: 11.34 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004508/0.3586, allocations: 0.787 MB / 1.109 GB, free: 10.53 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001291/0.3587, allocations: 46.25 kB / 1.109 GB, free: 10.48 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.149e-05/0.3588, allocations: 19.44 kB / 1.109 GB, free: 10.47 MB / 0.8731 GB Notification: Performance of SimCode: time 2.01e-07/0.3588, allocations: 0 / 1.109 GB, free: 10.47 MB / 0.8731 GB Notification: Performance of Templates: time 0.007051/0.3659, allocations: 2.767 MB / 1.112 GB, free: 7.73 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & ./Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Loads_Examples_Resistor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.DC.Loads.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches