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.008359/0.008359, allocations: 101.4 kB / 15.88 MB, free: 5.863 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.001705/0.001705, allocations: 191.3 kB / 16.79 MB, free: 5.805 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.451/1.451, allocations: 222.9 MB / 240.5 MB, free: 4.547 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.8/2.8, allocations: 461.9 MB / 0.7348 GB, free: 14.21 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 69.41 kB / 0.899 GB, free: 36.98 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2842/0.2854, allocations: 157.4 MB / 1.053 GB, free: 8.332 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad): time 0.006093/0.2916, allocations: 4.135 MB / 1.057 GB, free: 4.176 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002776/0.2944, allocations: 1.593 MB / 1.058 GB, free: 2.574 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002681/0.2947, allocations: 4 kB / 1.058 GB, free: 2.57 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001625/0.2963, allocations: 0.5634 MB / 1.059 GB, free: 2.008 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0005651/0.2969, allocations: 219 kB / 1.059 GB, free: 1.793 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005308/0.2974, allocations: 191.7 kB / 1.059 GB, free: 1.605 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0008335/0.2983, allocations: 0.7714 MB / 1.06 GB, free: 0.832 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005467/0.2988, allocations: 321.9 kB / 1.06 GB, free: 0.5195 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003239/0.2992, allocations: 191.3 kB / 1.061 GB, free: 340 kB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004812/0.2996, allocations: 263 kB / 1.061 GB, free: 76 kB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 8.03e-05/0.2997, allocations: 28 kB / 1.061 GB, free: 48 kB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004364/0.3002, allocations: 203.6 kB / 1.061 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001642/0.3004, allocations: 139.7 kB / 1.061 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002241/0.3006, allocations: 183.1 kB / 1.061 GB, free: 15.53 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004473/0.301, allocations: 411.3 kB / 1.062 GB, free: 15.13 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.032e-06/0.3011, allocations: 11.94 kB / 1.062 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of FrontEnd: time 7.51e-07/0.3011, allocations: 0 / 1.062 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.708e-06/0.3011, allocations: 0 / 1.062 GB, free: 15.12 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001304/0.3024, allocations: 0.671 MB / 1.062 GB, free: 14.39 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.457e-05/0.3024, allocations: 11.97 kB / 1.062 GB, free: 14.38 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007528/0.3032, allocations: 104.4 kB / 1.062 GB, free: 14.28 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004118/0.3036, allocations: 303.6 kB / 1.063 GB, free: 13.95 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.207e-05/0.3037, allocations: 55.27 kB / 1.063 GB, free: 13.89 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.001e-05/0.3038, allocations: 40.36 kB / 1.063 GB, free: 13.85 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008842/0.3047, allocations: 0.5009 MB / 1.063 GB, free: 13.32 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.437e-05/0.3047, allocations: 0 / 1.063 GB, free: 13.32 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.212e-05/0.3048, allocations: 15.94 kB / 1.063 GB, free: 13.3 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.138e-05/0.3048, allocations: 40.97 kB / 1.063 GB, free: 13.26 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000726/0.3056, allocations: 379.6 kB / 1.064 GB, free: 12.89 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002514/0.3081, allocations: 2.204 MB / 1.066 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007236/0.3088, allocations: 258.6 kB / 1.066 GB, free: 10.19 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003785/0.3092, allocations: 160.7 kB / 1.066 GB, free: 10.03 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.947e-05/0.3093, allocations: 4 kB / 1.066 GB, free: 10.03 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.338e-05/0.3093, allocations: 30.56 kB / 1.066 GB, free: 9.988 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=19): time 2.054e-06/0.3093, allocations: 0 / 1.066 GB, free: 9.988 MB / 0.8262 GB Notification: Performance of matching and sorting (n=19): time 0.001576/0.3109, allocations: 0.565 MB / 1.067 GB, free: 9.375 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.804e-05/0.3109, allocations: 55.41 kB / 1.067 GB, free: 9.309 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002196/0.3112, allocations: 232.9 kB / 1.067 GB, free: 9.07 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.962e-05/0.3112, allocations: 29.64 kB / 1.067 GB, free: 9.035 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001213/0.3113, allocations: 211.7 kB / 1.067 GB, free: 8.824 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.864e-05/0.3114, allocations: 70.94 kB / 1.067 GB, free: 8.754 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.974e-05/0.3115, allocations: 53.7 kB / 1.068 GB, free: 8.695 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000108/0.3116, allocations: 330.8 kB / 1.068 GB, free: 8.363 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002329/0.3118, allocations: 96.8 kB / 1.068 GB, free: 8.266 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002858/0.3121, allocations: 179.1 kB / 1.068 GB, free: 8.051 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004767/0.3126, allocations: 275 kB / 1.068 GB, free: 7.75 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.3126, allocations: 7.938 kB / 1.068 GB, free: 7.742 MB / 0.8262 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008927/0.3135, allocations: 376.6 kB / 1.069 GB, free: 7.363 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.759e-05/0.3136, allocations: 8 kB / 1.069 GB, free: 7.355 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.3136, allocations: 0 / 1.069 GB, free: 7.355 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005176/0.3141, allocations: 109.8 kB / 1.069 GB, free: 7.242 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002309/0.3143, allocations: 67.89 kB / 1.069 GB, free: 7.176 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003083/0.3174, allocations: 2.812 MB / 1.072 GB, free: 4.094 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002709/0.3177, allocations: 35.83 kB / 1.072 GB, free: 4.059 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.562e-05/0.3178, allocations: 16 kB / 1.072 GB, free: 4.043 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003492/0.3181, allocations: 220 kB / 1.072 GB, free: 3.824 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002756/0.3184, allocations: 183.5 kB / 1.072 GB, free: 3.609 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004726/0.3189, allocations: 270.7 kB / 1.072 GB, free: 3.312 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.685e-06/0.3189, allocations: 0 / 1.072 GB, free: 3.312 MB / 0.8262 GB Notification: Performance of matching and sorting (n=30) (initialization_lambda0): time 0.0008208/0.3197, allocations: 349.8 kB / 1.073 GB, free: 2.961 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.349e-05/0.3198, allocations: 9.875 kB / 1.073 GB, free: 2.953 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.89e-06/0.3198, allocations: 3.984 kB / 1.073 GB, free: 2.949 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003358/0.3201, allocations: 81.11 kB / 1.073 GB, free: 2.867 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002278/0.3203, allocations: 51.91 kB / 1.073 GB, free: 2.816 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001927/0.3223, allocations: 1.511 MB / 1.074 GB, free: 1.176 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002781/0.3226, allocations: 31.97 kB / 1.074 GB, free: 1.145 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.838e-05/0.3226, allocations: 8 kB / 1.074 GB, free: 1.137 MB / 0.8262 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.0001577/0.3228, allocations: 204.2 kB / 1.075 GB, free: 0.9297 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.698e-05/0.3228, allocations: 23.72 kB / 1.075 GB, free: 0.9062 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.091e-05/0.3229, allocations: 34.11 kB / 1.075 GB, free: 0.875 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.608e-06/0.3229, allocations: 4 kB / 1.075 GB, free: 0.8711 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.3229, allocations: 0 / 1.075 GB, free: 0.8711 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.3229, allocations: 0 / 1.075 GB, free: 0.8711 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001414/0.3243, allocations: 0.8249 MB / 1.075 GB, free: 15.96 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.459e-06/0.3244, allocations: 7.938 kB / 1.075 GB, free: 15.96 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001494/0.3245, allocations: 23.98 kB / 1.075 GB, free: 15.93 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004006/0.3249, allocations: 109.6 kB / 1.076 GB, free: 15.82 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.348e-05/0.325, allocations: 11.98 kB / 1.076 GB, free: 15.81 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002838/0.3278, allocations: 2.795 MB / 1.078 GB, free: 12.75 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.3278, allocations: 3.984 kB / 1.078 GB, free: 12.74 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007905/0.3286, allocations: 416.7 kB / 1.079 GB, free: 12.31 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001056/0.3287, allocations: 124.7 kB / 1.079 GB, free: 12.17 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.133e-05/0.3288, allocations: 3.938 kB / 1.079 GB, free: 12.16 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001888/0.329, allocations: 15.98 kB / 1.079 GB, free: 12.15 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.073e-05/0.3291, allocations: 27.91 kB / 1.079 GB, free: 12.12 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.486e-05/0.3291, allocations: 8 kB / 1.079 GB, free: 12.11 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001352/0.3292, allocations: 156.5 kB / 1.079 GB, free: 11.96 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3292, allocations: 0 / 1.079 GB, free: 11.96 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0006405/0.3299, allocations: 167.4 kB / 1.079 GB, free: 11.8 MB / 0.8419 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.0001074/0.33, allocations: 103.2 kB / 1.079 GB, free: 11.69 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001903/0.3319, allocations: 0.7541 MB / 1.08 GB, free: 10.9 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.3319, allocations: 0 / 1.08 GB, free: 10.9 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0007599/0.3327, allocations: 371.1 kB / 1.08 GB, free: 10.51 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005019/0.3332, allocations: 54.81 kB / 1.08 GB, free: 10.46 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001184/0.3344, allocations: 0.7641 MB / 1.081 GB, free: 9.656 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004629/0.3349, allocations: 0.8107 MB / 1.082 GB, free: 8.82 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.737e-05/0.3349, allocations: 19.44 kB / 1.082 GB, free: 8.801 MB / 0.8419 GB Notification: Performance of SimCode: time 7.92e-07/0.3349, allocations: 0 / 1.082 GB, free: 8.801 MB / 0.8419 GB Notification: Performance of Templates: time 0.008771/0.3437, allocations: 6.144 MB / 1.088 GB, free: 2.664 MB / 0.8419 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