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.001591/0.001591, allocations: 104.5 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.001996/0.001996, allocations: 190.3 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.362/1.362, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.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.496/2.496, allocations: 437 MB / 0.711 GB, free: 4.52 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001426/0.001426, allocations: 64.47 kB / 0.8699 GB, free: 2.238 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2648/0.2663, allocations: 151.6 MB / 1.018 GB, free: 10.7 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.Resistor): time 0.005732/0.272, allocations: 3.845 MB / 1.022 GB, free: 6.836 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.002812/0.2749, allocations: 1.73 MB / 1.023 GB, free: 5.098 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002349/0.2751, allocations: 4 kB / 1.023 GB, free: 5.094 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.001419/0.2766, allocations: 0.4907 MB / 1.024 GB, free: 4.605 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0005608/0.2772, allocations: 222.9 kB / 1.024 GB, free: 4.387 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005545/0.2778, allocations: 215.5 kB / 1.024 GB, free: 4.176 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0005322/0.2783, allocations: 466.4 kB / 1.025 GB, free: 3.719 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005892/0.2789, allocations: 377.3 kB / 1.025 GB, free: 3.348 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002483/0.2792, allocations: 187.4 kB / 1.025 GB, free: 3.164 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000379/0.2795, allocations: 215.2 kB / 1.025 GB, free: 2.953 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 6.171e-05/0.2796, allocations: 28 kB / 1.026 GB, free: 2.926 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004424/0.2801, allocations: 243.5 kB / 1.026 GB, free: 2.688 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001427/0.2802, allocations: 127.7 kB / 1.026 GB, free: 2.562 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0001961/0.2804, allocations: 179.1 kB / 1.026 GB, free: 2.387 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0006098/0.281, allocations: 498.5 kB / 1.027 GB, free: 1.898 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.2811, allocations: 0 / 1.027 GB, free: 1.898 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.232e-06/0.2811, allocations: 0 / 1.027 GB, free: 1.898 MB / 0.795 GB Notification: Performance of Transformations before backend: time 1.13e-05/0.2811, allocations: 4 kB / 1.027 GB, free: 1.895 MB / 0.795 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.001051/0.2821, allocations: 0.6353 MB / 1.027 GB, free: 1.211 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.028e-05/0.2822, allocations: 12.62 kB / 1.027 GB, free: 1.199 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009576/0.2831, allocations: 132.4 kB / 1.027 GB, free: 1.07 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003731/0.2835, allocations: 287.6 kB / 1.028 GB, free: 0.75 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.673e-05/0.2836, allocations: 21.03 kB / 1.028 GB, free: 0.7305 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.454e-05/0.2836, allocations: 32.36 kB / 1.028 GB, free: 0.6992 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006502/0.2843, allocations: 459.9 kB / 1.028 GB, free: 216 kB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.298e-05/0.2843, allocations: 4 kB / 1.028 GB, free: 212 kB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.87e-05/0.2843, allocations: 15.98 kB / 1.028 GB, free: 196 kB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.762e-05/0.2844, allocations: 28.55 kB / 1.028 GB, free: 168 kB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005132/0.2849, allocations: 326 kB / 1.028 GB, free: 15.84 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002188/0.2871, allocations: 2.193 MB / 1.031 GB, free: 13.44 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003668/0.2875, allocations: 247.8 kB / 1.031 GB, free: 13.17 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002478/0.2878, allocations: 112.8 kB / 1.031 GB, free: 13.06 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.046e-05/0.2878, allocations: 4 kB / 1.031 GB, free: 13.05 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.223e-05/0.2878, allocations: 38.56 kB / 1.031 GB, free: 13.01 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=14): time 1.794e-06/0.2878, allocations: 0 / 1.031 GB, free: 13.01 MB / 0.8106 GB Notification: Performance of matching and sorting (n=14): time 0.0005927/0.2884, allocations: 299.5 kB / 1.031 GB, free: 12.69 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.408e-05/0.2885, allocations: 55.41 kB / 1.031 GB, free: 12.62 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002748/0.2888, allocations: 262.6 kB / 1.032 GB, free: 12.36 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.032e-05/0.2888, allocations: 33.7 kB / 1.032 GB, free: 12.32 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001247/0.2889, allocations: 211.7 kB / 1.032 GB, free: 12.11 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.398e-05/0.289, allocations: 51.3 kB / 1.032 GB, free: 12.06 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.562e-05/0.289, allocations: 49.84 kB / 1.032 GB, free: 12 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001082/0.2892, allocations: 334.8 kB / 1.032 GB, free: 11.67 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.702e-05/0.2893, allocations: 56.42 kB / 1.032 GB, free: 11.61 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001427/0.2894, allocations: 144.1 kB / 1.032 GB, free: 11.43 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002578/0.2897, allocations: 222.9 kB / 1.033 GB, free: 11.18 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.594e-06/0.2897, allocations: 0 / 1.033 GB, free: 11.18 MB / 0.8106 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004296/0.2901, allocations: 265.8 kB / 1.033 GB, free: 10.91 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.78e-05/0.2902, allocations: 8 kB / 1.033 GB, free: 10.9 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.406e-06/0.2902, allocations: 4.375 kB / 1.033 GB, free: 10.89 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001622/0.2903, allocations: 28.84 kB / 1.033 GB, free: 10.86 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001884/0.2905, allocations: 51.91 kB / 1.033 GB, free: 10.81 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001061/0.2916, allocations: 1.43 MB / 1.034 GB, free: 9.246 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001834/0.2918, allocations: 23.69 kB / 1.034 GB, free: 9.223 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.798e-05/0.2918, allocations: 12 kB / 1.034 GB, free: 9.211 MB / 0.8106 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.0001623/0.292, allocations: 173.7 kB / 1.034 GB, free: 9.031 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.013e-05/0.2921, allocations: 23.72 kB / 1.035 GB, free: 9.008 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.963e-05/0.2921, allocations: 33.83 kB / 1.035 GB, free: 8.969 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.2921, allocations: 0 / 1.035 GB, free: 8.969 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.2921, allocations: 0 / 1.035 GB, free: 8.969 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.2921, allocations: 4 kB / 1.035 GB, free: 8.965 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008878/0.293, allocations: 0.6987 MB / 1.035 GB, free: 8.176 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.293, allocations: 4.094 kB / 1.035 GB, free: 8.172 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.09e-05/0.2931, allocations: 23.94 kB / 1.035 GB, free: 8.148 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.814e-05/0.2932, allocations: 28.97 kB / 1.035 GB, free: 8.117 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.215e-05/0.2933, allocations: 7.984 kB / 1.035 GB, free: 8.109 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009669/0.2942, allocations: 1.411 MB / 1.037 GB, free: 6.559 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.201e-06/0.2943, allocations: 7.969 kB / 1.037 GB, free: 6.551 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003336/0.2946, allocations: 319 kB / 1.037 GB, free: 6.203 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000102/0.2947, allocations: 116.7 kB / 1.037 GB, free: 6.07 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.268e-05/0.2947, allocations: 4 kB / 1.037 GB, free: 6.066 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001783/0.2949, allocations: 8 kB / 1.037 GB, free: 6.059 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.346e-05/0.295, allocations: 23.92 kB / 1.037 GB, free: 6.035 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.106e-05/0.295, allocations: 7.938 kB / 1.037 GB, free: 6.027 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001781/0.2952, allocations: 190 kB / 1.037 GB, free: 5.844 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.71e-07/0.2952, allocations: 0 / 1.037 GB, free: 5.844 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0004064/0.2956, allocations: 75.84 kB / 1.037 GB, free: 5.77 MB / 0.8106 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.0001093/0.2957, allocations: 108.7 kB / 1.037 GB, free: 5.656 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0004573/0.2962, allocations: 274.4 kB / 1.038 GB, free: 5.375 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.2962, allocations: 4 kB / 1.038 GB, free: 5.371 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0002094/0.2964, allocations: 183.4 kB / 1.038 GB, free: 5.18 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004864/0.2969, allocations: 68.58 kB / 1.038 GB, free: 5.113 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009079/0.2978, allocations: 0.5826 MB / 1.039 GB, free: 4.48 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003321/0.2982, allocations: 0.787 MB / 1.039 GB, free: 3.668 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.731e-05/0.2982, allocations: 23.44 kB / 1.039 GB, free: 3.645 MB / 0.8106 GB Notification: Performance of SimCode: time 3.9e-07/0.2982, allocations: 4.188 kB / 1.039 GB, free: 3.641 MB / 0.8106 GB Notification: Performance of Templates: time 0.006453/0.3047, allocations: 4.379 MB / 1.044 GB, free: 15.27 MB / 0.8262 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/jenkins1/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