Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.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.LinearizedLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|error|sen_nlin.I|sen_lin.I|sen_nlin.V|sen_lin.V|sen_nlin.P|sen_lin.P",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad") translateModel(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|error|sen_nlin.I|sen_lin.I|sen_nlin.V|sen_lin.V|sen_nlin.P|sen_lin.P",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001127/0.001127, allocations: 97.78 kB / 16.02 MB, free: 76 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.001687/0.001687, allocations: 187.3 kB / 16.92 MB, free: 6.75 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.443/1.443, 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.742/2.742, allocations: 443.2 MB / 0.7181 GB, free: 1.547 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003302/0.0003305, allocations: 8.969 kB / 0.8801 GB, free: 42.24 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2736/0.274, allocations: 155.2 MB / 1.032 GB, free: 4.711 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad): time 0.00477/0.2788, allocations: 3.758 MB / 1.035 GB, free: 0.9375 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002503/0.2813, allocations: 1.57 MB / 1.037 GB, free: 15.36 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001827/0.2815, allocations: 11.88 kB / 1.037 GB, free: 15.35 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.000217/0.2818, allocations: 63.5 kB / 1.037 GB, free: 15.29 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0005174/0.2823, allocations: 223 kB / 1.037 GB, free: 15.07 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004918/0.2828, allocations: 187.7 kB / 1.037 GB, free: 14.88 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0008375/0.2836, allocations: 0.7792 MB / 1.038 GB, free: 14.1 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005686/0.2842, allocations: 440 kB / 1.038 GB, free: 13.64 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002502/0.2845, allocations: 175.4 kB / 1.039 GB, free: 13.46 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004301/0.2849, allocations: 247 kB / 1.039 GB, free: 13.22 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 4.457e-05/0.285, allocations: 20 kB / 1.039 GB, free: 13.2 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003632/0.2853, allocations: 187.6 kB / 1.039 GB, free: 13.02 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001343/0.2855, allocations: 127.6 kB / 1.039 GB, free: 12.89 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0001903/0.2857, allocations: 200.8 kB / 1.039 GB, free: 12.69 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0004203/0.2861, allocations: 411.2 kB / 1.04 GB, free: 12.29 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.2861, allocations: 0 / 1.04 GB, free: 12.29 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.894e-06/0.2861, allocations: 0 / 1.04 GB, free: 12.29 MB / 0.795 GB Notification: Performance of Transformations before backend: time 7.404e-06/0.2862, allocations: 0 / 1.04 GB, free: 12.29 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001105/0.2873, allocations: 0.6203 MB / 1.04 GB, free: 11.62 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.383e-05/0.2873, allocations: 11.97 kB / 1.04 GB, free: 11.61 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007066/0.288, allocations: 112.4 kB / 1.04 GB, free: 11.5 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003606/0.2884, allocations: 307.6 kB / 1.041 GB, free: 11.16 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.272e-05/0.2885, allocations: 51.27 kB / 1.041 GB, free: 11.11 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.707e-05/0.2885, allocations: 28.38 kB / 1.041 GB, free: 11.08 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008356/0.2894, allocations: 0.5126 MB / 1.041 GB, free: 10.54 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.54e-05/0.2894, allocations: 4 kB / 1.041 GB, free: 10.54 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.164e-05/0.2895, allocations: 16 kB / 1.041 GB, free: 10.52 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.1e-05/0.2895, allocations: 36.97 kB / 1.041 GB, free: 10.48 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007081/0.2902, allocations: 387.7 kB / 1.042 GB, free: 10.11 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002371/0.2926, allocations: 2.204 MB / 1.044 GB, free: 7.672 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007004/0.2933, allocations: 270.6 kB / 1.044 GB, free: 7.398 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00038/0.2937, allocations: 160.7 kB / 1.044 GB, free: 7.238 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.695e-05/0.2938, allocations: 7.984 kB / 1.044 GB, free: 7.23 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.563e-05/0.2938, allocations: 34.56 kB / 1.044 GB, free: 7.188 MB / 0.795 GB Notification: Performance of pre-optimization done (n=19): time 1.603e-06/0.2938, allocations: 0 / 1.044 GB, free: 7.188 MB / 0.795 GB Notification: Performance of matching and sorting (n=19): time 0.001645/0.2955, allocations: 0.5883 MB / 1.045 GB, free: 6.551 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.527e-05/0.2955, allocations: 55.41 kB / 1.045 GB, free: 6.484 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002297/0.2957, allocations: 224.9 kB / 1.045 GB, free: 6.254 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.777e-05/0.2958, allocations: 33.7 kB / 1.045 GB, free: 6.215 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.000133/0.2959, allocations: 211.7 kB / 1.045 GB, free: 6 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 5.156e-05/0.296, allocations: 63.05 kB / 1.046 GB, free: 5.938 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.237e-05/0.296, allocations: 29.64 kB / 1.046 GB, free: 5.902 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001229/0.2961, allocations: 334.8 kB / 1.046 GB, free: 5.566 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002207/0.2964, allocations: 91.94 kB / 1.046 GB, free: 5.477 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000306/0.2967, allocations: 191 kB / 1.046 GB, free: 5.25 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000581/0.2973, allocations: 286.9 kB / 1.046 GB, free: 4.938 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.51e-06/0.2973, allocations: 4 kB / 1.046 GB, free: 4.934 MB / 0.795 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008864/0.2982, allocations: 396.1 kB / 1.047 GB, free: 4.535 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001089/0.2983, allocations: 165.6 kB / 1.047 GB, free: 4.336 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.2983, allocations: 0 / 1.047 GB, free: 4.336 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005061/0.2988, allocations: 113.6 kB / 1.047 GB, free: 4.219 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002099/0.2991, allocations: 51.91 kB / 1.047 GB, free: 4.168 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003135/0.3022, allocations: 2.83 MB / 1.05 GB, free: 1.07 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002565/0.3025, allocations: 35.77 kB / 1.05 GB, free: 1.035 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.047e-05/0.3025, allocations: 16.03 kB / 1.05 GB, free: 1.02 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 6.893e-06/0.3025, allocations: 4 kB / 1.05 GB, free: 1.016 MB / 0.795 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007565/0.3033, allocations: 310.1 kB / 1.05 GB, free: 0.7109 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.397e-06/0.3033, allocations: 4 kB / 1.05 GB, free: 0.707 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000292/0.3036, allocations: 80.91 kB / 1.05 GB, free: 0.625 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002194/0.3038, allocations: 55.91 kB / 1.05 GB, free: 0.5703 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001939/0.3058, allocations: 1.508 MB / 1.052 GB, free: 14.93 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002239/0.306, allocations: 31.73 kB / 1.052 GB, free: 14.9 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.099e-05/0.306, allocations: 12 kB / 1.052 GB, free: 14.89 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0002286/0.3063, allocations: 249 kB / 1.052 GB, free: 14.63 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.895e-05/0.3063, allocations: 19.81 kB / 1.052 GB, free: 14.61 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.068e-05/0.3064, allocations: 34.17 kB / 1.052 GB, free: 14.58 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.408e-06/0.3064, allocations: 7.938 kB / 1.052 GB, free: 14.57 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.935e-06/0.3064, allocations: 3.938 kB / 1.052 GB, free: 14.57 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.566e-06/0.3064, allocations: 0 / 1.052 GB, free: 14.57 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001383/0.3078, allocations: 0.8326 MB / 1.053 GB, free: 13.66 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.3078, allocations: 0 / 1.053 GB, free: 13.66 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001551/0.308, allocations: 47.97 kB / 1.053 GB, free: 13.61 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003825/0.3084, allocations: 101.6 kB / 1.053 GB, free: 13.5 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.585e-05/0.3084, allocations: 4 kB / 1.053 GB, free: 13.5 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002821/0.3112, allocations: 2.806 MB / 1.056 GB, free: 10.42 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.3113, allocations: 3.938 kB / 1.056 GB, free: 10.42 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007971/0.3121, allocations: 428.7 kB / 1.056 GB, free: 9.973 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001096/0.3122, allocations: 116.8 kB / 1.056 GB, free: 9.84 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.86e-05/0.3122, allocations: 4 kB / 1.056 GB, free: 9.836 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001766/0.3124, allocations: 15.98 kB / 1.056 GB, free: 9.82 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.287e-05/0.3125, allocations: 19.91 kB / 1.056 GB, free: 9.801 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.624e-05/0.3125, allocations: 8.141 kB / 1.056 GB, free: 9.793 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001506/0.3127, allocations: 164.5 kB / 1.057 GB, free: 9.637 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.61e-07/0.3127, allocations: 4 kB / 1.057 GB, free: 9.633 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0006152/0.3133, allocations: 171.3 kB / 1.057 GB, free: 9.465 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (17): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001345/0.3134, allocations: 107.2 kB / 1.057 GB, free: 9.348 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.00189/0.3153, allocations: 0.7622 MB / 1.058 GB, free: 8.547 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.3154, allocations: 0 / 1.058 GB, free: 8.547 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0007873/0.3161, allocations: 375.1 kB / 1.058 GB, free: 8.156 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004645/0.3166, allocations: 60 kB / 1.058 GB, free: 8.098 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001092/0.3177, allocations: 0.774 MB / 1.059 GB, free: 7.289 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004103/0.3182, allocations: 0.8145 MB / 1.06 GB, free: 6.449 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.465e-05/0.3182, allocations: 19.44 kB / 1.06 GB, free: 6.43 MB / 0.8106 GB Notification: Performance of SimCode: time 5.21e-07/0.3182, allocations: 0 / 1.06 GB, free: 6.43 MB / 0.8106 GB Notification: Performance of Templates: time 0.008216/0.3265, allocations: 6.12 MB / 1.066 GB, free: 328 kB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.sim & ./Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Loads_Examples_LinearizedLoad.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches