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.001493/0.001493, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001666/0.001666, allocations: 196.6 kB / 16.26 MB, free: 6.629 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.571/1.571, allocations: 222.9 MB / 239.9 MB, free: 4.535 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.421/2.421, allocations: 390.2 MB / 0.6643 GB, free: 0.6133 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001561/0.001561, allocations: 55.91 kB / 0.812 GB, free: 14.83 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7852/0.7868, allocations: 140.4 MB / 0.9491 GB, free: 9.203 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.005112/0.7919, allocations: 3.875 MB / 0.9529 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002503/0.7945, allocations: 1.705 MB / 0.9545 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001801/0.7947, allocations: 10.12 kB / 0.9546 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001228/0.7959, allocations: 480.1 kB / 0.955 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0004687/0.7964, allocations: 203.2 kB / 0.9552 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004649/0.7969, allocations: 193.5 kB / 0.9554 GB, free: 4.227 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0005293/0.7974, allocations: 470.9 kB / 0.9558 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005863/0.798, allocations: 408.1 kB / 0.9562 GB, free: 3.75 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002085/0.7983, allocations: 198.6 kB / 0.9564 GB, free: 3.641 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000338/0.7986, allocations: 225.4 kB / 0.9566 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.935e-05/0.7987, allocations: 28.38 kB / 0.9567 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003971/0.7991, allocations: 244.5 kB / 0.9569 GB, free: 3.395 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001265/0.7992, allocations: 125.5 kB / 0.957 GB, free: 3.312 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001622/0.7994, allocations: 172 kB / 0.9572 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0005506/0.7999, allocations: 0.5148 MB / 0.9577 GB, free: 2.867 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.7999, allocations: 0 / 0.9577 GB, free: 2.867 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.385e-06/0.7999, allocations: 0.75 kB / 0.9577 GB, free: 2.867 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.604e-06/0.8, allocations: 0 / 0.9577 GB, free: 2.867 MB / 0.7169 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.0009015/0.8009, allocations: 0.6236 MB / 0.9583 GB, free: 2.312 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.954e-05/0.8009, allocations: 9.625 kB / 0.9583 GB, free: 2.312 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009399/0.8019, allocations: 134.6 kB / 0.9584 GB, free: 2.254 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002875/0.8022, allocations: 287.3 kB / 0.9587 GB, free: 1.977 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.467e-05/0.8022, allocations: 24.84 kB / 0.9587 GB, free: 1.965 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.538e-05/0.8022, allocations: 31.02 kB / 0.9588 GB, free: 1.953 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006276/0.8029, allocations: 461.9 kB / 0.9592 GB, free: 1.637 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.603e-05/0.8029, allocations: 8.719 kB / 0.9592 GB, free: 1.629 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.605e-05/0.8029, allocations: 12.25 kB / 0.9592 GB, free: 1.621 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.699e-05/0.803, allocations: 29.73 kB / 0.9592 GB, free: 1.613 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004758/0.8035, allocations: 325.9 kB / 0.9596 GB, free: 1.457 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002059/0.8056, allocations: 2.188 MB / 0.9617 GB, free: 15.34 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004242/0.806, allocations: 255.4 kB / 0.9619 GB, free: 15.15 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002676/0.8063, allocations: 113.3 kB / 0.962 GB, free: 15.1 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.725e-05/0.8063, allocations: 4.906 kB / 0.962 GB, free: 15.09 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.93e-05/0.8063, allocations: 32.03 kB / 0.9621 GB, free: 15.05 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=14): time 1.273e-06/0.8063, allocations: 1.031 kB / 0.9621 GB, free: 15.05 MB / 0.7325 GB Notification: Performance of matching and sorting (n=14): time 0.000723/0.8071, allocations: 305.9 kB / 0.9624 GB, free: 14.83 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.753e-05/0.8071, allocations: 52.41 kB / 0.9624 GB, free: 14.77 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003683/0.8075, allocations: 266.2 kB / 0.9627 GB, free: 14.58 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.255e-05/0.8075, allocations: 27.14 kB / 0.9627 GB, free: 14.55 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001539/0.8077, allocations: 209.5 kB / 0.9629 GB, free: 14.36 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 4.233e-05/0.8077, allocations: 50.77 kB / 0.9629 GB, free: 14.32 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.536e-05/0.8078, allocations: 55.31 kB / 0.963 GB, free: 14.27 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.000159/0.808, allocations: 336.9 kB / 0.9633 GB, free: 13.94 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001224/0.8081, allocations: 58.05 kB / 0.9634 GB, free: 13.91 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001826/0.8083, allocations: 143.7 kB / 0.9635 GB, free: 13.77 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000271/0.8086, allocations: 218.5 kB / 0.9637 GB, free: 13.59 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.8086, allocations: 0 / 0.9637 GB, free: 13.59 MB / 0.7325 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004378/0.809, allocations: 256.2 kB / 0.964 GB, free: 13.45 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.918e-05/0.8091, allocations: 8.531 kB / 0.964 GB, free: 13.45 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.785e-06/0.8091, allocations: 2.844 kB / 0.964 GB, free: 13.45 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001704/0.8093, allocations: 26.59 kB / 0.964 GB, free: 13.43 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000188/0.8095, allocations: 54.56 kB / 0.9641 GB, free: 13.42 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001152/0.8106, allocations: 1.427 MB / 0.9654 GB, free: 11.95 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001824/0.8108, allocations: 28.22 kB / 0.9655 GB, free: 11.93 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.199e-05/0.8108, allocations: 16.7 kB / 0.9655 GB, free: 11.92 MB / 0.7325 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.0001737/0.811, allocations: 165.7 kB / 0.9656 GB, free: 11.77 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.085e-05/0.8111, allocations: 31.42 kB / 0.9657 GB, free: 11.75 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.985e-05/0.8111, allocations: 28.27 kB / 0.9657 GB, free: 11.73 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.245e-06/0.8111, allocations: 4.812 kB / 0.9657 GB, free: 11.73 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/0.8112, allocations: 5.188 kB / 0.9657 GB, free: 11.73 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.8112, allocations: 0 / 0.9657 GB, free: 11.73 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009806/0.8121, allocations: 0.7103 MB / 0.9664 GB, free: 11.09 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.771e-06/0.8122, allocations: 2.406 kB / 0.9664 GB, free: 11.09 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001162/0.8123, allocations: 25.8 kB / 0.9664 GB, free: 11.09 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001402/0.8124, allocations: 29.22 kB / 0.9665 GB, free: 11.07 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.595e-05/0.8125, allocations: 2.188 kB / 0.9665 GB, free: 11.07 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001466/0.8139, allocations: 1.41 MB / 0.9678 GB, free: 9.613 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.814, allocations: 1.062 kB / 0.9678 GB, free: 9.613 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005027/0.8145, allocations: 323.3 kB / 0.9682 GB, free: 9.34 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001439/0.8146, allocations: 117.5 kB / 0.9683 GB, free: 9.219 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.181e-05/0.8147, allocations: 3.094 kB / 0.9683 GB, free: 9.219 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001885/0.8149, allocations: 10.47 kB / 0.9683 GB, free: 9.215 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.844e-05/0.8149, allocations: 17.98 kB / 0.9683 GB, free: 9.203 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.098e-05/0.8149, allocations: 13 kB / 0.9683 GB, free: 9.195 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.000272/0.8152, allocations: 191.2 kB / 0.9685 GB, free: 9.066 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.61e-07/0.8152, allocations: 5.219 kB / 0.9685 GB, free: 9.062 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.00075/0.816, allocations: 75.44 kB / 0.9686 GB, free: 9.047 MB / 0.7325 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.0001741/0.8162, allocations: 105.7 kB / 0.9687 GB, free: 8.953 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0006783/0.8168, allocations: 269.1 kB / 0.9689 GB, free: 8.773 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/0.8169, allocations: 5.125 kB / 0.9689 GB, free: 8.77 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002495/0.8171, allocations: 181.2 kB / 0.9691 GB, free: 8.625 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005538/0.8177, allocations: 55.83 kB / 0.9692 GB, free: 8.598 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001088/0.8188, allocations: 0.6511 MB / 0.9698 GB, free: 8.086 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004184/0.8192, allocations: 0.7966 MB / 0.9706 GB, free: 7.332 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001662/0.8194, allocations: 44.22 kB / 0.9706 GB, free: 7.312 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.361e-05/0.8194, allocations: 24 kB / 0.9706 GB, free: 7.301 MB / 0.7325 GB Notification: Performance of SimCode: time 2.3e-07/0.8194, allocations: 0 / 0.9706 GB, free: 7.301 MB / 0.7325 GB Notification: Performance of Templates: time 0.006287/0.8257, allocations: 2.692 MB / 0.9733 GB, free: 5.992 MB / 0.7325 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