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.00215/0.00215, allocations: 100.1 kB / 15.88 MB, free: 12 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.002916/0.002915, allocations: 200.4 kB / 16.79 MB, free: 6.809 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.769/1.769, allocations: 222.9 MB / 240.5 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.826/2.826, allocations: 461.8 MB / 0.7348 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001295/0.001296, allocations: 70.86 kB / 0.899 GB, free: 37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2896/0.2909, allocations: 157.4 MB / 1.053 GB, free: 8.344 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.006097/0.2971, allocations: 3.88 MB / 1.057 GB, free: 4.445 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00267/0.2998, allocations: 1.734 MB / 1.058 GB, free: 2.703 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001398/0.2999, allocations: 7.938 kB / 1.058 GB, free: 2.695 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001206/0.3011, allocations: 470.5 kB / 1.059 GB, free: 2.234 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0004072/0.3016, allocations: 207.1 kB / 1.059 GB, free: 2.031 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004051/0.302, allocations: 191.6 kB / 1.059 GB, free: 1.844 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0005635/0.3026, allocations: 0.6622 MB / 1.06 GB, free: 1.18 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003614/0.3029, allocations: 253.2 kB / 1.06 GB, free: 0.9336 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001943/0.3031, allocations: 159.4 kB / 1.06 GB, free: 0.7773 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000347/0.3035, allocations: 219.2 kB / 1.06 GB, free: 0.5625 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.69e-05/0.3035, allocations: 20 kB / 1.06 GB, free: 0.543 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004361/0.304, allocations: 307.3 kB / 1.061 GB, free: 248 kB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001181/0.3041, allocations: 119.7 kB / 1.061 GB, free: 128 kB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001716/0.3043, allocations: 163.2 kB / 1.061 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003834/0.3047, allocations: 391.3 kB / 1.061 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.3047, allocations: 4 kB / 1.061 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of FrontEnd: time 7.82e-07/0.3047, allocations: 3.938 kB / 1.061 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.836e-06/0.3047, allocations: 0 / 1.061 GB, free: 15.57 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.0009595/0.3057, allocations: 0.6276 MB / 1.062 GB, free: 14.9 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.471e-05/0.3057, allocations: 15.91 kB / 1.062 GB, free: 14.88 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009221/0.3067, allocations: 140.4 kB / 1.062 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003297/0.307, allocations: 283.6 kB / 1.062 GB, free: 14.43 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.984e-05/0.307, allocations: 21.03 kB / 1.062 GB, free: 14.41 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.724e-05/0.3071, allocations: 32.36 kB / 1.062 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006263/0.3077, allocations: 459.9 kB / 1.063 GB, free: 13.89 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.151e-05/0.3077, allocations: 0 / 1.063 GB, free: 13.89 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.716e-05/0.3078, allocations: 19.98 kB / 1.063 GB, free: 13.87 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.523e-05/0.3078, allocations: 28.55 kB / 1.063 GB, free: 13.84 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004728/0.3083, allocations: 321.9 kB / 1.063 GB, free: 13.53 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002178/0.3105, allocations: 2.193 MB / 1.065 GB, free: 11.12 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003612/0.3109, allocations: 247.8 kB / 1.066 GB, free: 10.85 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002438/0.3111, allocations: 115.7 kB / 1.066 GB, free: 10.74 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.351e-05/0.3111, allocations: 4 kB / 1.066 GB, free: 10.73 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.184e-05/0.3112, allocations: 34.56 kB / 1.066 GB, free: 10.69 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=14): time 1.222e-06/0.3112, allocations: 0 / 1.066 GB, free: 10.69 MB / 0.8262 GB Notification: Performance of matching and sorting (n=14): time 0.0005987/0.3118, allocations: 299.3 kB / 1.066 GB, free: 10.37 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.181e-05/0.3118, allocations: 55.59 kB / 1.066 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002742/0.3121, allocations: 266.6 kB / 1.066 GB, free: 10.04 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.924e-05/0.3121, allocations: 29.7 kB / 1.066 GB, free: 10 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001244/0.3123, allocations: 211.8 kB / 1.066 GB, free: 9.793 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.631e-05/0.3123, allocations: 51.3 kB / 1.067 GB, free: 9.742 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.874e-05/0.3124, allocations: 49.84 kB / 1.067 GB, free: 9.684 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001193/0.3125, allocations: 338.8 kB / 1.067 GB, free: 9.344 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.761e-05/0.3126, allocations: 56.44 kB / 1.067 GB, free: 9.289 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001473/0.3128, allocations: 148 kB / 1.067 GB, free: 9.105 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002485/0.313, allocations: 211 kB / 1.067 GB, free: 8.859 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.058e-06/0.313, allocations: 8 kB / 1.067 GB, free: 8.852 MB / 0.8262 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004296/0.3135, allocations: 267.9 kB / 1.068 GB, free: 8.582 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.571e-05/0.3135, allocations: 8 kB / 1.068 GB, free: 8.574 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.138e-05/0.3135, allocations: 3.984 kB / 1.068 GB, free: 8.57 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001558/0.3137, allocations: 29.22 kB / 1.068 GB, free: 8.539 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001822/0.3139, allocations: 55.84 kB / 1.068 GB, free: 8.484 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009937/0.3149, allocations: 1.315 MB / 1.069 GB, free: 7.035 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001668/0.3151, allocations: 35.75 kB / 1.069 GB, free: 7 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.64e-05/0.3151, allocations: 15.94 kB / 1.069 GB, free: 6.984 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.000162/0.3152, allocations: 161.8 kB / 1.069 GB, free: 6.816 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.046e-05/0.3153, allocations: 27.66 kB / 1.069 GB, free: 6.789 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.716e-05/0.3154, allocations: 25.84 kB / 1.069 GB, free: 6.766 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.3154, allocations: 8.078 kB / 1.069 GB, free: 6.758 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.464e-06/0.3154, allocations: 0 / 1.069 GB, free: 6.758 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.866e-06/0.3154, allocations: 0 / 1.069 GB, free: 6.758 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008761/0.3163, allocations: 0.6986 MB / 1.07 GB, free: 5.969 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.3163, allocations: 7.938 kB / 1.07 GB, free: 5.961 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.839e-05/0.3164, allocations: 19.98 kB / 1.07 GB, free: 5.941 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.805e-05/0.3165, allocations: 24.84 kB / 1.07 GB, free: 5.914 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.356e-05/0.3165, allocations: 8 kB / 1.07 GB, free: 5.906 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008932/0.3174, allocations: 1.323 MB / 1.071 GB, free: 4.449 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.3174, allocations: 4.031 kB / 1.071 GB, free: 4.445 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003101/0.3177, allocations: 317.2 kB / 1.072 GB, free: 4.098 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 9.694e-05/0.3178, allocations: 108.8 kB / 1.072 GB, free: 3.973 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.276e-05/0.3179, allocations: 11.98 kB / 1.072 GB, free: 3.961 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00016/0.318, allocations: 8 kB / 1.072 GB, free: 3.953 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.286e-05/0.3181, allocations: 19.92 kB / 1.072 GB, free: 3.934 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.939e-06/0.3181, allocations: 4 kB / 1.072 GB, free: 3.93 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001853/0.3183, allocations: 190 kB / 1.072 GB, free: 3.75 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3183, allocations: 0 / 1.072 GB, free: 3.75 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003698/0.3186, allocations: 87.72 kB / 1.072 GB, free: 3.664 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.000116/0.3188, allocations: 99.25 kB / 1.072 GB, free: 3.555 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004204/0.3192, allocations: 266.4 kB / 1.072 GB, free: 3.281 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.3192, allocations: 0.75 kB / 1.072 GB, free: 3.281 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002067/0.3194, allocations: 182.8 kB / 1.072 GB, free: 3.09 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004745/0.3199, allocations: 62.84 kB / 1.073 GB, free: 3.031 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008696/0.3208, allocations: 0.6927 MB / 1.073 GB, free: 2.285 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003562/0.3212, allocations: 0.7912 MB / 1.074 GB, free: 1.465 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.458e-05/0.3212, allocations: 23.42 kB / 1.074 GB, free: 1.441 MB / 0.8262 GB Notification: Performance of SimCode: time 2.3e-07/0.3212, allocations: 0 / 1.074 GB, free: 1.441 MB / 0.8262 GB Notification: Performance of Templates: time 0.006189/0.3274, allocations: 4.383 MB / 1.078 GB, free: 13.07 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