Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_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_latest_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.00127/0.00127, allocations: 106.1 kB / 16.27 MB, free: 6.414 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.001332/0.001332, allocations: 189.7 kB / 17.2 MB, free: 5.953 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.336/1.336, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.674/2.674, allocations: 482.4 MB / 0.7553 GB, free: 7 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001857/0.001857, allocations: 63.66 kB / 0.9245 GB, free: 52 kB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7689/0.7707, allocations: 162.2 MB / 1.083 GB, free: 1.664 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.005508/0.7763, allocations: 3.835 MB / 1.087 GB, free: 15.07 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.002948/0.7793, allocations: 1.729 MB / 1.088 GB, free: 13.87 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002018/0.7795, allocations: 6.125 kB / 1.088 GB, free: 13.87 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.001461/0.781, allocations: 0.4908 MB / 1.089 GB, free: 13.57 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0005628/0.7815, allocations: 216 kB / 1.089 GB, free: 13.45 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005879/0.7821, allocations: 214.1 kB / 1.089 GB, free: 13.35 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.000539/0.7827, allocations: 476.4 kB / 1.09 GB, free: 13.14 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005741/0.7833, allocations: 361.9 kB / 1.09 GB, free: 12.99 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002292/0.7835, allocations: 190.4 kB / 1.09 GB, free: 12.91 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003802/0.7839, allocations: 215.6 kB / 1.09 GB, free: 12.82 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 5.379e-05/0.784, allocations: 31.78 kB / 1.09 GB, free: 12.81 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004639/0.7844, allocations: 244.1 kB / 1.091 GB, free: 12.73 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001536/0.7846, allocations: 125.2 kB / 1.091 GB, free: 12.68 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0002083/0.7848, allocations: 171.1 kB / 1.091 GB, free: 12.58 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0006776/0.7855, allocations: 0.4959 MB / 1.091 GB, free: 12.41 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.7855, allocations: 0 / 1.091 GB, free: 12.41 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.134e-06/0.7855, allocations: 0.7188 kB / 1.091 GB, free: 12.41 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 7.294e-06/0.7855, allocations: 0 / 1.091 GB, free: 12.41 MB / 0.8419 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.001074/0.7866, allocations: 0.6359 MB / 1.092 GB, free: 11.88 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.285e-05/0.7866, allocations: 8.594 kB / 1.092 GB, free: 11.88 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008878/0.7875, allocations: 134.6 kB / 1.092 GB, free: 11.86 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003947/0.7879, allocations: 289.9 kB / 1.092 GB, free: 11.6 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.78e-05/0.788, allocations: 23.73 kB / 1.093 GB, free: 11.59 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.491e-05/0.788, allocations: 31.16 kB / 1.093 GB, free: 11.58 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000759/0.7888, allocations: 461.7 kB / 1.093 GB, free: 11.34 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.277e-05/0.7888, allocations: 0 / 1.093 GB, free: 11.34 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.691e-05/0.7889, allocations: 15.84 kB / 1.093 GB, free: 11.32 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.346e-05/0.7889, allocations: 31.19 kB / 1.093 GB, free: 11.32 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005537/0.7895, allocations: 317.4 kB / 1.093 GB, free: 11.21 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002535/0.792, allocations: 2.191 MB / 1.095 GB, free: 9.277 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004108/0.7925, allocations: 251.8 kB / 1.096 GB, free: 9.105 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002732/0.7927, allocations: 116.5 kB / 1.096 GB, free: 9.062 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.246e-05/0.7928, allocations: 3.109 kB / 1.096 GB, free: 9.062 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.659e-05/0.7928, allocations: 35.72 kB / 1.096 GB, free: 9.02 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=14): time 1.363e-06/0.7928, allocations: 0 / 1.096 GB, free: 9.02 MB / 0.8419 GB Notification: Performance of matching and sorting (n=14): time 0.0006451/0.7935, allocations: 304.2 kB / 1.096 GB, free: 8.824 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.332e-05/0.7935, allocations: 56.69 kB / 1.096 GB, free: 8.758 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000311/0.7938, allocations: 272.5 kB / 1.096 GB, free: 8.598 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.376e-05/0.7939, allocations: 31.33 kB / 1.096 GB, free: 8.562 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001463/0.794, allocations: 204.3 kB / 1.097 GB, free: 8.391 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 5.106e-05/0.7941, allocations: 50.86 kB / 1.097 GB, free: 8.352 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.917e-05/0.7941, allocations: 45.41 kB / 1.097 GB, free: 8.316 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001606/0.7943, allocations: 340.9 kB / 1.097 GB, free: 7.988 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001011/0.7944, allocations: 57.7 kB / 1.097 GB, free: 7.969 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001751/0.7946, allocations: 140.8 kB / 1.097 GB, free: 7.844 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002708/0.7949, allocations: 220.6 kB / 1.098 GB, free: 7.672 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.7949, allocations: 0 / 1.098 GB, free: 7.672 MB / 0.8419 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004383/0.7953, allocations: 274.5 kB / 1.098 GB, free: 7.539 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/0.7954, allocations: 6.375 kB / 1.098 GB, free: 7.539 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.7954, allocations: 2.719 kB / 1.098 GB, free: 7.539 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001775/0.7956, allocations: 27.09 kB / 1.098 GB, free: 7.527 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001818/0.7957, allocations: 47.3 kB / 1.098 GB, free: 7.523 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001211/0.797, allocations: 1.417 MB / 1.099 GB, free: 6.109 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001765/0.7972, allocations: 31.47 kB / 1.099 GB, free: 6.086 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.968e-05/0.7972, allocations: 17.44 kB / 1.099 GB, free: 6.078 MB / 0.8419 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.0001917/0.7974, allocations: 164.7 kB / 1.099 GB, free: 5.938 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.554e-05/0.7974, allocations: 24.16 kB / 1.099 GB, free: 5.926 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.26e-05/0.7975, allocations: 27.98 kB / 1.099 GB, free: 5.906 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.7975, allocations: 1.281 kB / 1.099 GB, free: 5.906 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.7975, allocations: 1.219 kB / 1.099 GB, free: 5.906 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.7975, allocations: 1.594 kB / 1.099 GB, free: 5.906 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001003/0.7985, allocations: 0.7071 MB / 1.1 GB, free: 5.355 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.426e-06/0.7986, allocations: 6.625 kB / 1.1 GB, free: 5.352 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.806e-05/0.7986, allocations: 29.22 kB / 1.1 GB, free: 5.344 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.324e-05/0.7987, allocations: 24.84 kB / 1.1 GB, free: 5.332 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.393e-05/0.7988, allocations: 6.156 kB / 1.1 GB, free: 5.328 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001232/0.8, allocations: 1.411 MB / 1.102 GB, free: 3.918 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.8, allocations: 2.344 kB / 1.102 GB, free: 3.918 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003669/0.8004, allocations: 318.6 kB / 1.102 GB, free: 3.664 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001191/0.8005, allocations: 119.1 kB / 1.102 GB, free: 3.547 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.172e-05/0.8006, allocations: 7.938 kB / 1.102 GB, free: 3.543 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001561/0.8007, allocations: 7.406 kB / 1.102 GB, free: 3.543 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.289e-05/0.8008, allocations: 19.08 kB / 1.102 GB, free: 3.535 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.059e-05/0.8008, allocations: 4.812 kB / 1.102 GB, free: 3.535 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.000206/0.801, allocations: 190.5 kB / 1.102 GB, free: 3.422 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1e-07/0.801, allocations: 0 / 1.102 GB, free: 3.422 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004145/0.8014, allocations: 89.28 kB / 1.102 GB, free: 3.395 MB / 0.8419 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.0001459/0.8016, allocations: 102.7 kB / 1.102 GB, free: 3.301 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0004975/0.8021, allocations: 276.5 kB / 1.103 GB, free: 3.137 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.8021, allocations: 3.938 kB / 1.103 GB, free: 3.133 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002299/0.8023, allocations: 190.2 kB / 1.103 GB, free: 2.992 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004817/0.8028, allocations: 63.84 kB / 1.103 GB, free: 2.969 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009873/0.8038, allocations: 0.5856 MB / 1.104 GB, free: 2.566 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004643/0.8043, allocations: 0.7909 MB / 1.104 GB, free: 1.859 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.472e-05/0.8043, allocations: 20.22 kB / 1.104 GB, free: 1.852 MB / 0.8419 GB Notification: Performance of SimCode: time 2.2e-07/0.8043, allocations: 1.344 kB / 1.104 GB, free: 1.852 MB / 0.8419 GB Notification: Performance of Templates: time 0.007826/0.8122, allocations: 4.391 MB / 1.109 GB, free: 1.504 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & ./Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Loads_Examples_Resistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches