Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.Loads.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen1.I",fileNamePrefix="Buildings_10_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_10_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.001372/0.001372, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002828/0.002828, allocations: 191.1 kB / 16.14 MB, free: 6.652 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.513/1.513, allocations: 222.9 MB / 239.8 MB, free: 4.512 MB / 190.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.562/2.562, allocations: 437 MB / 0.7099 GB, free: 5.379 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002373/0.002374, allocations: 67.91 kB / 0.8685 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.775/0.7774, allocations: 151.6 MB / 1.017 GB, free: 2.832 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.005312/0.7827, allocations: 3.871 MB / 1.02 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.00267/0.7854, allocations: 1.737 MB / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001754/0.7856, allocations: 7.938 kB / 1.022 GB, free: 13.19 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001207/0.7869, allocations: 470.4 kB / 1.023 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0004134/0.7873, allocations: 211.1 kB / 1.023 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004412/0.7878, allocations: 195.6 kB / 1.023 GB, free: 12.33 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0005363/0.7883, allocations: 0.6622 MB / 1.024 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000337/0.7886, allocations: 241.2 kB / 1.024 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001552/0.7888, allocations: 163.4 kB / 1.024 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003147/0.7891, allocations: 219.2 kB / 1.024 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.501e-05/0.7892, allocations: 20 kB / 1.024 GB, free: 11.03 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004217/0.7896, allocations: 311.3 kB / 1.024 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001074/0.7897, allocations: 115.7 kB / 1.025 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001491/0.7899, allocations: 163.2 kB / 1.025 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004897/0.7904, allocations: 0.5081 MB / 1.025 GB, free: 9.945 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.7904, allocations: 0 / 1.025 GB, free: 9.945 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.021e-06/0.7904, allocations: 0 / 1.025 GB, free: 9.945 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.234e-06/0.7904, allocations: 0 / 1.025 GB, free: 9.945 MB / 0.7794 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.0009009/0.7913, allocations: 0.6393 MB / 1.026 GB, free: 9.258 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.431e-05/0.7914, allocations: 11.98 kB / 1.026 GB, free: 9.246 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009433/0.7923, allocations: 132.4 kB / 1.026 GB, free: 9.117 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003439/0.7927, allocations: 292.2 kB / 1.026 GB, free: 8.793 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.671e-05/0.7927, allocations: 21.02 kB / 1.026 GB, free: 8.773 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.181e-05/0.7927, allocations: 28.38 kB / 1.026 GB, free: 8.746 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000633/0.7934, allocations: 471.9 kB / 1.027 GB, free: 8.246 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.18e-05/0.7934, allocations: 3.938 kB / 1.027 GB, free: 8.242 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.391e-05/0.7934, allocations: 12 kB / 1.027 GB, free: 8.23 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.735e-05/0.7935, allocations: 36.53 kB / 1.027 GB, free: 8.195 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004739/0.794, allocations: 317.9 kB / 1.027 GB, free: 7.887 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002055/0.796, allocations: 2.185 MB / 1.029 GB, free: 5.488 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003612/0.7964, allocations: 247.8 kB / 1.03 GB, free: 5.219 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002552/0.7967, allocations: 120.8 kB / 1.03 GB, free: 5.098 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.417e-05/0.7967, allocations: 0 / 1.03 GB, free: 5.098 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.572e-05/0.7967, allocations: 38.56 kB / 1.03 GB, free: 5.051 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=14): time 1.112e-06/0.7967, allocations: 0 / 1.03 GB, free: 5.051 MB / 0.7794 GB Notification: Performance of matching and sorting (n=14): time 0.0006755/0.7974, allocations: 302.8 kB / 1.03 GB, free: 4.73 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.31e-05/0.7975, allocations: 63.34 kB / 1.03 GB, free: 4.656 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002742/0.7978, allocations: 262.6 kB / 1.03 GB, free: 4.395 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.893e-05/0.7978, allocations: 29.7 kB / 1.03 GB, free: 4.359 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001231/0.7979, allocations: 211.7 kB / 1.03 GB, free: 4.148 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.256e-05/0.798, allocations: 39.36 kB / 1.031 GB, free: 4.109 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.413e-05/0.798, allocations: 53.84 kB / 1.031 GB, free: 4.047 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001085/0.7981, allocations: 338.8 kB / 1.031 GB, free: 3.707 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000122/0.7983, allocations: 56.44 kB / 1.031 GB, free: 3.652 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001417/0.7984, allocations: 148 kB / 1.031 GB, free: 3.469 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002597/0.7987, allocations: 217.8 kB / 1.031 GB, free: 3.219 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.999e-06/0.7987, allocations: 3.984 kB / 1.031 GB, free: 3.215 MB / 0.7794 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004309/0.7991, allocations: 258.3 kB / 1.032 GB, free: 2.953 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.568e-05/0.7992, allocations: 11.94 kB / 1.032 GB, free: 2.941 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.7992, allocations: 4 kB / 1.032 GB, free: 2.938 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001659/0.7994, allocations: 24.84 kB / 1.032 GB, free: 2.91 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001862/0.7996, allocations: 51.91 kB / 1.032 GB, free: 2.859 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001015/0.8006, allocations: 1.319 MB / 1.033 GB, free: 1.41 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001666/0.8008, allocations: 27.59 kB / 1.033 GB, free: 1.383 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.705e-05/0.8008, allocations: 16.06 kB / 1.033 GB, free: 1.367 MB / 0.7794 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.0001622/0.8009, allocations: 169.8 kB / 1.033 GB, free: 1.191 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.669e-05/0.801, allocations: 27.75 kB / 1.033 GB, free: 1.164 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.373e-05/0.8011, allocations: 25.84 kB / 1.033 GB, free: 1.133 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.8011, allocations: 7.984 kB / 1.033 GB, free: 1.125 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.425e-06/0.8011, allocations: 0 / 1.033 GB, free: 1.125 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.8011, allocations: 0 / 1.033 GB, free: 1.125 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008869/0.802, allocations: 0.7024 MB / 1.034 GB, free: 340 kB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.802, allocations: 0 / 1.034 GB, free: 340 kB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.065e-05/0.8021, allocations: 27.92 kB / 1.034 GB, free: 312 kB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.179e-05/0.8022, allocations: 24.84 kB / 1.034 GB, free: 284 kB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.136e-05/0.8022, allocations: 8.188 kB / 1.034 GB, free: 276 kB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008884/0.8031, allocations: 1.315 MB / 1.035 GB, free: 14.82 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.8031, allocations: 4.156 kB / 1.035 GB, free: 14.82 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003538/0.8035, allocations: 313.1 kB / 1.036 GB, free: 14.47 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 9.064e-05/0.8036, allocations: 120.7 kB / 1.036 GB, free: 14.34 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.889e-05/0.8036, allocations: 4.094 kB / 1.036 GB, free: 14.33 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001835/0.8038, allocations: 15.94 kB / 1.036 GB, free: 14.32 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.078e-05/0.8039, allocations: 7.984 kB / 1.036 GB, free: 14.31 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.187e-05/0.8039, allocations: 8 kB / 1.036 GB, free: 14.3 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0001797/0.8041, allocations: 194 kB / 1.036 GB, free: 14.11 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.503e-06/0.8041, allocations: 0 / 1.036 GB, free: 14.11 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0004086/0.8045, allocations: 83.72 kB / 1.036 GB, free: 14.03 MB / 0.795 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.0001001/0.8046, allocations: 99.25 kB / 1.036 GB, free: 13.93 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0004228/0.805, allocations: 271.1 kB / 1.036 GB, free: 13.65 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.805, allocations: 0 / 1.036 GB, free: 13.65 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0002016/0.8052, allocations: 190.5 kB / 1.036 GB, free: 13.45 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00049/0.8057, allocations: 54.67 kB / 1.037 GB, free: 13.4 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008694/0.8066, allocations: 0.6523 MB / 1.037 GB, free: 12.7 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003627/0.807, allocations: 0.795 MB / 1.038 GB, free: 11.88 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0001558/0.8072, allocations: 42.27 kB / 1.038 GB, free: 11.84 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.422e-05/0.8072, allocations: 19.44 kB / 1.038 GB, free: 11.82 MB / 0.795 GB Notification: Performance of SimCode: time 2.71e-07/0.8072, allocations: 0 / 1.038 GB, free: 11.82 MB / 0.795 GB Notification: Performance of Templates: time 0.006269/0.8135, allocations: 2.586 MB / 1.041 GB, free: 9.262 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.makefile (rm -f Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & ./Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_DC_Loads_Examples_Resistor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.DC.Loads.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches