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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.001061/0.001061, allocations: 88.2 kB / 16.03 MB, free: 56 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001772/0.001772, allocations: 187.8 kB / 16.94 MB, free: 6.891 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.361/1.361, allocations: 223.3 MB / 241 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.723/2.723, allocations: 462.7 MB / 0.7371 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00052/0.0005201, allocations: 15.28 kB / 0.9034 GB, free: 36.5 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3451/0.3456, allocations: 159.6 MB / 1.059 GB, free: 4.938 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.004734/0.3504, allocations: 3.496 MB / 1.063 GB, free: 1.426 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.003002/0.3535, allocations: 1.699 MB / 1.064 GB, free: 15.72 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002851/0.3538, allocations: 7.938 kB / 1.064 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0002827/0.3541, allocations: 59.56 kB / 1.064 GB, free: 15.65 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0006941/0.3548, allocations: 215 kB / 1.065 GB, free: 15.44 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006253/0.3554, allocations: 195.6 kB / 1.065 GB, free: 15.25 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0007374/0.3562, allocations: 0.6621 MB / 1.065 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004576/0.3566, allocations: 314.3 kB / 1.066 GB, free: 14.26 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002563/0.3569, allocations: 155.3 kB / 1.066 GB, free: 14.11 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004234/0.3573, allocations: 203.2 kB / 1.066 GB, free: 13.91 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.73e-05/0.3574, allocations: 12 kB / 1.066 GB, free: 13.9 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005399/0.3579, allocations: 299.4 kB / 1.066 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001362/0.3581, allocations: 123.6 kB / 1.067 GB, free: 13.48 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002077/0.3583, allocations: 172.9 kB / 1.067 GB, free: 13.31 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004868/0.3588, allocations: 387.3 kB / 1.067 GB, free: 12.93 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.3588, allocations: 0 / 1.067 GB, free: 12.93 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.803e-06/0.3588, allocations: 0 / 1.067 GB, free: 12.93 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.122e-05/0.3588, allocations: 0 / 1.067 GB, free: 12.93 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.000972/0.3598, allocations: 0.5732 MB / 1.068 GB, free: 12.31 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.823e-05/0.3599, allocations: 19.91 kB / 1.068 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009717/0.3609, allocations: 140.3 kB / 1.068 GB, free: 12.15 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004042/0.3613, allocations: 283.7 kB / 1.068 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.051e-05/0.3613, allocations: 29.02 kB / 1.068 GB, free: 11.81 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.794e-05/0.3614, allocations: 28.38 kB / 1.068 GB, free: 11.78 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007135/0.3621, allocations: 467.8 kB / 1.069 GB, free: 11.28 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.254e-05/0.3621, allocations: 8 kB / 1.069 GB, free: 11.27 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.842e-05/0.3622, allocations: 12 kB / 1.069 GB, free: 11.26 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.837e-05/0.3622, allocations: 28.55 kB / 1.069 GB, free: 11.23 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005101/0.3627, allocations: 321.9 kB / 1.069 GB, free: 10.92 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00236/0.3651, allocations: 2.189 MB / 1.071 GB, free: 8.52 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004078/0.3655, allocations: 255.8 kB / 1.071 GB, free: 8.242 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002583/0.3658, allocations: 116.8 kB / 1.071 GB, free: 8.125 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.279e-05/0.3658, allocations: 0 / 1.071 GB, free: 8.125 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.271e-05/0.3659, allocations: 30.56 kB / 1.071 GB, free: 8.086 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=14): time 1.754e-06/0.3659, allocations: 4 kB / 1.071 GB, free: 8.082 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14): time 0.0006251/0.3665, allocations: 306.9 kB / 1.072 GB, free: 7.758 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.804e-05/0.3665, allocations: 55.41 kB / 1.072 GB, free: 7.691 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002985/0.3669, allocations: 270.5 kB / 1.072 GB, free: 7.422 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.163e-05/0.3669, allocations: 25.7 kB / 1.072 GB, free: 7.391 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001365/0.367, allocations: 207.8 kB / 1.072 GB, free: 7.184 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.908e-05/0.3671, allocations: 47.3 kB / 1.072 GB, free: 7.137 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.95e-05/0.3671, allocations: 29.72 kB / 1.072 GB, free: 7.102 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001321/0.3673, allocations: 338.7 kB / 1.073 GB, free: 6.762 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001164/0.3674, allocations: 56.44 kB / 1.073 GB, free: 6.703 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001611/0.3676, allocations: 152.7 kB / 1.073 GB, free: 6.516 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002715/0.3678, allocations: 218.9 kB / 1.073 GB, free: 6.262 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.636e-06/0.3678, allocations: 0 / 1.073 GB, free: 6.262 MB / 0.8262 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004439/0.3683, allocations: 268.3 kB / 1.073 GB, free: 5.992 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.055e-05/0.3683, allocations: 5.562 kB / 1.073 GB, free: 5.988 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.3683, allocations: 4 kB / 1.073 GB, free: 5.984 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000186/0.3685, allocations: 28.84 kB / 1.073 GB, free: 5.953 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001882/0.3687, allocations: 48.3 kB / 1.073 GB, free: 5.906 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001073/0.3698, allocations: 1.315 MB / 1.075 GB, free: 4.457 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001847/0.37, allocations: 35.75 kB / 1.075 GB, free: 4.422 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.864e-05/0.37, allocations: 8 kB / 1.075 GB, free: 4.414 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.000179/0.3702, allocations: 168.2 kB / 1.075 GB, free: 4.242 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.537e-05/0.3703, allocations: 27.75 kB / 1.075 GB, free: 4.215 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.765e-05/0.3704, allocations: 37.7 kB / 1.075 GB, free: 4.18 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.834e-06/0.3704, allocations: 0 / 1.075 GB, free: 4.18 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.685e-06/0.3704, allocations: 0 / 1.075 GB, free: 4.18 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.3704, allocations: 0 / 1.075 GB, free: 4.18 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009553/0.3713, allocations: 0.7025 MB / 1.076 GB, free: 3.387 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.975e-06/0.3714, allocations: 4.188 kB / 1.076 GB, free: 3.383 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.836e-05/0.3715, allocations: 27.92 kB / 1.076 GB, free: 3.355 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.908e-05/0.3716, allocations: 28.83 kB / 1.076 GB, free: 3.324 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.272e-05/0.3716, allocations: 8.062 kB / 1.076 GB, free: 3.316 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009945/0.3726, allocations: 1.315 MB / 1.077 GB, free: 1.867 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.3726, allocations: 4.031 kB / 1.077 GB, free: 1.863 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003467/0.373, allocations: 317.1 kB / 1.077 GB, free: 1.516 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001186/0.3731, allocations: 112.8 kB / 1.077 GB, free: 1.387 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.144e-05/0.3731, allocations: 4 kB / 1.077 GB, free: 1.383 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001703/0.3733, allocations: 15.98 kB / 1.077 GB, free: 1.367 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.379e-05/0.3733, allocations: 11.98 kB / 1.077 GB, free: 1.355 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.38e-05/0.3734, allocations: 15.94 kB / 1.077 GB, free: 1.34 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001893/0.3736, allocations: 190 kB / 1.078 GB, free: 1.16 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.753e-06/0.3736, allocations: 0 / 1.078 GB, free: 1.16 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004184/0.374, allocations: 83.66 kB / 1.078 GB, free: 1.078 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.0001268/0.3741, allocations: 103.2 kB / 1.078 GB, free: 0.9648 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000462/0.3746, allocations: 262.5 kB / 1.078 GB, free: 0.6953 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.3746, allocations: 0 / 1.078 GB, free: 0.6953 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002191/0.3748, allocations: 183.7 kB / 1.078 GB, free: 0.5039 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000555/0.3754, allocations: 67.17 kB / 1.078 GB, free: 452 kB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001022/0.3764, allocations: 0.7023 MB / 1.079 GB, free: 15.69 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004015/0.3769, allocations: 0.799 MB / 1.08 GB, free: 14.86 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.52e-05/0.3769, allocations: 19.44 kB / 1.08 GB, free: 14.84 MB / 0.8419 GB Notification: Performance of SimCode: time 3.9e-07/0.3769, allocations: 4 kB / 1.08 GB, free: 14.84 MB / 0.8419 GB Notification: Performance of Templates: time 0.007072/0.384, allocations: 4.339 MB / 1.084 GB, free: 10.5 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/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