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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001015/0.001015, allocations: 98.19 kB / 15.36 MB, free: 0.7344 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.008722/0.008722, allocations: 169.2 kB / 16.26 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.416/1.416, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.791/2.791, allocations: 462.7 MB / 0.7364 GB, free: 264 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003394/0.0003395, allocations: 7.719 kB / 0.9028 GB, free: 36.51 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3314/0.3317, allocations: 159.6 MB / 1.059 GB, free: 5.449 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.005475/0.3373, allocations: 3.515 MB / 1.062 GB, free: 1.918 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.003125/0.3404, allocations: 1.691 MB / 1.064 GB, free: 224 kB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003725/0.3408, allocations: 11.94 kB / 1.064 GB, free: 212 kB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0003676/0.3412, allocations: 59.55 kB / 1.064 GB, free: 152 kB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0008438/0.3421, allocations: 207.1 kB / 1.064 GB, free: 15.95 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007341/0.3428, allocations: 199.6 kB / 1.064 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0009786/0.3438, allocations: 0.6622 MB / 1.065 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005489/0.3444, allocations: 314.3 kB / 1.065 GB, free: 14.76 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003399/0.3447, allocations: 155.4 kB / 1.065 GB, free: 14.61 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005647/0.3453, allocations: 203.2 kB / 1.065 GB, free: 14.41 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.834e-05/0.3454, allocations: 16 kB / 1.066 GB, free: 14.39 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005854/0.346, allocations: 303.3 kB / 1.066 GB, free: 14.1 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001612/0.3461, allocations: 107.7 kB / 1.066 GB, free: 13.99 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002151/0.3464, allocations: 180.8 kB / 1.066 GB, free: 13.81 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0007486/0.3471, allocations: 0.4908 MB / 1.067 GB, free: 13.32 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.3471, allocations: 0 / 1.067 GB, free: 13.32 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.094e-06/0.3471, allocations: 0 / 1.067 GB, free: 13.32 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.284e-05/0.3472, allocations: 0 / 1.067 GB, free: 13.32 MB / 0.8262 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.001185/0.3484, allocations: 0.5771 MB / 1.067 GB, free: 12.69 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 7.661e-05/0.3484, allocations: 12.03 kB / 1.067 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00107/0.3495, allocations: 140.3 kB / 1.067 GB, free: 12.54 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004542/0.35, allocations: 287.6 kB / 1.068 GB, free: 12.22 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.527e-05/0.35, allocations: 21.03 kB / 1.068 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.405e-05/0.3501, allocations: 28.38 kB / 1.068 GB, free: 12.18 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008462/0.3509, allocations: 467.8 kB / 1.068 GB, free: 11.68 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.392e-05/0.351, allocations: 4 kB / 1.068 GB, free: 11.67 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.188e-05/0.351, allocations: 12 kB / 1.068 GB, free: 11.66 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.501e-05/0.3511, allocations: 28.55 kB / 1.068 GB, free: 11.63 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005275/0.3516, allocations: 321.9 kB / 1.068 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002607/0.3542, allocations: 2.201 MB / 1.071 GB, free: 8.906 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004159/0.3547, allocations: 247.8 kB / 1.071 GB, free: 8.637 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002503/0.3549, allocations: 112.8 kB / 1.071 GB, free: 8.523 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.064e-05/0.3549, allocations: 4 kB / 1.071 GB, free: 8.52 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.332e-05/0.355, allocations: 38.5 kB / 1.071 GB, free: 8.473 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=14): time 1.674e-06/0.355, allocations: 4 kB / 1.071 GB, free: 8.469 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14): time 0.0006579/0.3556, allocations: 294.2 kB / 1.071 GB, free: 8.156 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.203e-05/0.3557, allocations: 55.41 kB / 1.071 GB, free: 8.09 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003493/0.3561, allocations: 270.6 kB / 1.072 GB, free: 7.82 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.387e-05/0.3561, allocations: 33.64 kB / 1.072 GB, free: 7.781 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.00013/0.3562, allocations: 207.8 kB / 1.072 GB, free: 7.574 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.553e-05/0.3563, allocations: 47.28 kB / 1.072 GB, free: 7.527 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.642e-05/0.3563, allocations: 29.8 kB / 1.072 GB, free: 7.492 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001225/0.3565, allocations: 334.7 kB / 1.072 GB, free: 7.156 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.816e-05/0.3566, allocations: 64.38 kB / 1.072 GB, free: 7.09 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00016/0.3567, allocations: 148.8 kB / 1.072 GB, free: 6.906 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002891/0.357, allocations: 224.9 kB / 1.073 GB, free: 6.648 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.357, allocations: 0 / 1.073 GB, free: 6.648 MB / 0.8262 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004432/0.3575, allocations: 265.9 kB / 1.073 GB, free: 6.379 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.728e-05/0.3575, allocations: 4.375 kB / 1.073 GB, free: 6.375 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.3575, allocations: 8 kB / 1.073 GB, free: 6.367 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000188/0.3577, allocations: 32.78 kB / 1.073 GB, free: 6.332 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001798/0.3579, allocations: 47.91 kB / 1.073 GB, free: 6.285 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001171/0.3591, allocations: 1.315 MB / 1.074 GB, free: 4.836 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001843/0.3593, allocations: 31.59 kB / 1.074 GB, free: 4.805 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.834e-05/0.3593, allocations: 12 kB / 1.074 GB, free: 4.793 MB / 0.8262 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.0002038/0.3595, allocations: 163.3 kB / 1.074 GB, free: 4.625 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.358e-05/0.3596, allocations: 31.75 kB / 1.074 GB, free: 4.594 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.438e-05/0.3597, allocations: 29.83 kB / 1.074 GB, free: 4.566 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.3597, allocations: 0 / 1.074 GB, free: 4.566 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.3597, allocations: 0 / 1.074 GB, free: 4.566 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.3597, allocations: 3.984 kB / 1.074 GB, free: 4.562 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009402/0.3606, allocations: 0.7065 MB / 1.075 GB, free: 3.766 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.3606, allocations: 4 kB / 1.075 GB, free: 3.762 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.672e-05/0.3607, allocations: 27.92 kB / 1.075 GB, free: 3.734 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.38e-05/0.3608, allocations: 20.84 kB / 1.075 GB, free: 3.711 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.203e-05/0.3608, allocations: 4 kB / 1.075 GB, free: 3.707 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001047/0.3619, allocations: 1.315 MB / 1.076 GB, free: 2.258 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.3619, allocations: 4.156 kB / 1.076 GB, free: 2.254 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003581/0.3623, allocations: 323.3 kB / 1.077 GB, free: 1.902 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001078/0.3624, allocations: 108.8 kB / 1.077 GB, free: 1.777 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.785e-05/0.3624, allocations: 8 kB / 1.077 GB, free: 1.77 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001658/0.3626, allocations: 11.98 kB / 1.077 GB, free: 1.758 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.859e-05/0.3627, allocations: 19.86 kB / 1.077 GB, free: 1.738 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.161e-05/0.3627, allocations: 8 kB / 1.077 GB, free: 1.73 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001892/0.3629, allocations: 190 kB / 1.077 GB, free: 1.551 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.61e-07/0.3629, allocations: 4 kB / 1.077 GB, free: 1.547 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000413/0.3633, allocations: 83.81 kB / 1.077 GB, free: 1.465 MB / 0.8262 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.0001299/0.3634, allocations: 103.2 kB / 1.077 GB, free: 1.352 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004705/0.3639, allocations: 267.1 kB / 1.078 GB, free: 1.078 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.3639, allocations: 0 / 1.078 GB, free: 1.078 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002201/0.3641, allocations: 182.5 kB / 1.078 GB, free: 0.8867 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005247/0.3647, allocations: 54.59 kB / 1.078 GB, free: 0.8359 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001059/0.3658, allocations: 0.6737 MB / 1.078 GB, free: 120 kB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004088/0.3662, allocations: 0.7911 MB / 1.079 GB, free: 15.3 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001641/0.3663, allocations: 42.27 kB / 1.079 GB, free: 15.26 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.431e-05/0.3664, allocations: 19.44 kB / 1.079 GB, free: 15.24 MB / 0.8419 GB Notification: Performance of SimCode: time 8.41e-07/0.3664, allocations: 0 / 1.079 GB, free: 15.24 MB / 0.8419 GB Notification: Performance of Templates: time 0.006337/0.3728, allocations: 2.575 MB / 1.082 GB, free: 12.7 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=480 -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/jenkins/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