Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.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_10_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_10_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.001058/0.001058, allocations: 91.92 kB / 16.02 MB, free: 80 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.001322/0.001322, allocations: 179.3 kB / 16.92 MB, free: 6.652 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.51/1.51, allocations: 223.3 MB / 241 MB, free: 5.277 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.762/2.762, allocations: 437.8 MB / 0.7128 GB, free: 6.938 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003468/0.000347, allocations: 8 kB / 0.8735 GB, free: 3.277 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7164/0.7168, allocations: 153.8 MB / 1.024 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad): time 0.005642/0.7225, allocations: 3.755 MB / 1.027 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002827/0.7253, allocations: 1.559 MB / 1.029 GB, free: 10.48 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003071/0.7257, allocations: 15.94 kB / 1.029 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0003178/0.726, allocations: 63.48 kB / 1.029 GB, free: 10.4 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0006968/0.7267, allocations: 219 kB / 1.029 GB, free: 10.19 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.000667/0.7274, allocations: 199.3 kB / 1.029 GB, free: 9.996 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0009084/0.7283, allocations: 0.7791 MB / 1.03 GB, free: 9.215 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006449/0.729, allocations: 442.4 kB / 1.031 GB, free: 8.75 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003285/0.7293, allocations: 175.3 kB / 1.031 GB, free: 8.578 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000507/0.7298, allocations: 243.1 kB / 1.031 GB, free: 8.34 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 7.095e-05/0.7299, allocations: 20 kB / 1.031 GB, free: 8.32 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004635/0.7304, allocations: 199.6 kB / 1.031 GB, free: 8.125 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001698/0.7306, allocations: 123.6 kB / 1.031 GB, free: 8.004 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0002856/0.7309, allocations: 200.8 kB / 1.031 GB, free: 7.801 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0005643/0.7314, allocations: 397 kB / 1.032 GB, free: 7.414 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.7315, allocations: 0 / 1.032 GB, free: 7.414 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.134e-06/0.7315, allocations: 3.938 kB / 1.032 GB, free: 7.41 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.993e-05/0.7315, allocations: 4 kB / 1.032 GB, free: 7.406 MB / 0.7794 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.001332/0.7328, allocations: 0.6241 MB / 1.032 GB, free: 6.73 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.318e-05/0.7329, allocations: 12.03 kB / 1.032 GB, free: 6.719 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008424/0.7337, allocations: 112.4 kB / 1.033 GB, free: 6.609 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004846/0.7342, allocations: 300.2 kB / 1.033 GB, free: 6.277 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.351e-05/0.7343, allocations: 55.25 kB / 1.033 GB, free: 6.219 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.016e-05/0.7344, allocations: 36.38 kB / 1.033 GB, free: 6.184 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009228/0.7353, allocations: 0.5087 MB / 1.033 GB, free: 5.648 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.326e-05/0.7354, allocations: 0 / 1.033 GB, free: 5.648 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.353e-05/0.7354, allocations: 12 kB / 1.033 GB, free: 5.637 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.788e-05/0.7355, allocations: 32.98 kB / 1.033 GB, free: 5.605 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007628/0.7363, allocations: 391.7 kB / 1.034 GB, free: 5.223 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002841/0.7391, allocations: 2.208 MB / 1.036 GB, free: 2.785 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007187/0.7398, allocations: 266.6 kB / 1.036 GB, free: 2.516 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004573/0.7403, allocations: 168.7 kB / 1.036 GB, free: 2.348 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.143e-05/0.7404, allocations: 4 kB / 1.036 GB, free: 2.344 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.482e-05/0.7404, allocations: 38.52 kB / 1.036 GB, free: 2.297 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=19): time 2.404e-06/0.7404, allocations: 4 kB / 1.036 GB, free: 2.293 MB / 0.7794 GB Notification: Performance of matching and sorting (n=19): time 0.001606/0.742, allocations: 0.5809 MB / 1.037 GB, free: 1.664 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.121e-05/0.7421, allocations: 59.36 kB / 1.037 GB, free: 1.594 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002389/0.7423, allocations: 232.9 kB / 1.037 GB, free: 1.352 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.794e-05/0.7424, allocations: 29.7 kB / 1.037 GB, free: 1.316 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.000208/0.7426, allocations: 215.6 kB / 1.038 GB, free: 1.102 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 5.212e-05/0.7426, allocations: 59.11 kB / 1.038 GB, free: 1.043 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.371e-05/0.7427, allocations: 29.7 kB / 1.038 GB, free: 1.008 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001988/0.7429, allocations: 326.8 kB / 1.038 GB, free: 0.6797 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002247/0.7431, allocations: 99.92 kB / 1.038 GB, free: 0.582 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002842/0.7434, allocations: 191 kB / 1.038 GB, free: 364 kB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006716/0.7441, allocations: 278.5 kB / 1.038 GB, free: 52 kB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.7441, allocations: 4 kB / 1.038 GB, free: 48 kB / 0.7794 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001055/0.7452, allocations: 392.9 kB / 1.039 GB, free: 15.65 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001345/0.7453, allocations: 171.2 kB / 1.039 GB, free: 15.45 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.718e-06/0.7453, allocations: 4 kB / 1.039 GB, free: 15.45 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000591/0.7459, allocations: 113.6 kB / 1.039 GB, free: 15.33 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002146/0.7462, allocations: 51.91 kB / 1.039 GB, free: 15.28 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003526/0.7497, allocations: 2.83 MB / 1.042 GB, free: 12.18 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002826/0.75, allocations: 39.73 kB / 1.042 GB, free: 12.14 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.451e-05/0.75, allocations: 11.94 kB / 1.042 GB, free: 12.13 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 8.556e-06/0.75, allocations: 4 kB / 1.042 GB, free: 12.12 MB / 0.795 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007748/0.7508, allocations: 312.5 kB / 1.042 GB, free: 11.82 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.7508, allocations: 0 / 1.042 GB, free: 11.82 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003039/0.7512, allocations: 85.06 kB / 1.042 GB, free: 11.73 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002236/0.7514, allocations: 55.91 kB / 1.042 GB, free: 11.68 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002098/0.7535, allocations: 1.503 MB / 1.044 GB, free: 10.04 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002431/0.7538, allocations: 31.83 kB / 1.044 GB, free: 10.01 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.992e-05/0.7538, allocations: 12 kB / 1.044 GB, free: 10 MB / 0.795 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.0002787/0.7541, allocations: 245.1 kB / 1.044 GB, free: 9.75 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.793e-05/0.7541, allocations: 27.66 kB / 1.044 GB, free: 9.723 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.701e-05/0.7542, allocations: 34.17 kB / 1.044 GB, free: 9.688 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.7542, allocations: 3.938 kB / 1.044 GB, free: 9.684 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.7542, allocations: 0 / 1.044 GB, free: 9.684 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.7543, allocations: 0 / 1.044 GB, free: 9.684 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001506/0.7558, allocations: 0.8499 MB / 1.045 GB, free: 8.754 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.398e-06/0.7558, allocations: 0 / 1.045 GB, free: 8.754 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001448/0.7559, allocations: 35.86 kB / 1.045 GB, free: 8.719 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003834/0.7563, allocations: 101.7 kB / 1.045 GB, free: 8.613 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.027e-05/0.7564, allocations: 4 kB / 1.045 GB, free: 8.609 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003428/0.7598, allocations: 2.81 MB / 1.048 GB, free: 5.531 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.7598, allocations: 4.219 kB / 1.048 GB, free: 5.527 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008723/0.7607, allocations: 424.6 kB / 1.048 GB, free: 5.086 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001259/0.7608, allocations: 116.7 kB / 1.048 GB, free: 4.953 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.088e-05/0.7609, allocations: 4 kB / 1.048 GB, free: 4.949 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001749/0.761, allocations: 15.98 kB / 1.049 GB, free: 4.934 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.482e-05/0.7611, allocations: 27.92 kB / 1.049 GB, free: 4.906 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.312e-05/0.7611, allocations: 4 kB / 1.049 GB, free: 4.902 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0001558/0.7613, allocations: 160.5 kB / 1.049 GB, free: 4.746 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7613, allocations: 4 kB / 1.049 GB, free: 4.742 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0006795/0.762, allocations: 167.4 kB / 1.049 GB, free: 4.578 MB / 0.795 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.0002372/0.7622, allocations: 103.2 kB / 1.049 GB, free: 4.465 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.00209/0.7643, allocations: 0.7702 MB / 1.05 GB, free: 3.656 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.7644, allocations: 4.062 kB / 1.05 GB, free: 3.652 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0009377/0.7653, allocations: 369.3 kB / 1.05 GB, free: 3.266 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004688/0.7658, allocations: 60.52 kB / 1.05 GB, free: 3.207 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001319/0.7671, allocations: 0.7779 MB / 1.051 GB, free: 2.391 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004136/0.7675, allocations: 0.8068 MB / 1.052 GB, free: 1.559 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.038e-05/0.7676, allocations: 27.44 kB / 1.052 GB, free: 1.531 MB / 0.795 GB Notification: Performance of SimCode: time 3.9e-07/0.7676, allocations: 3.938 kB / 1.052 GB, free: 1.527 MB / 0.795 GB Notification: Performance of Templates: time 0.01032/0.778, allocations: 6.104 MB / 1.058 GB, free: 11.43 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.makefile (rm -f Buildings_10_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; mkfifo Buildings_10_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe >> ../files/Buildings_10_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.sim & ./Buildings_10_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_DC_Loads_Examples_LinearizedLoad.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches