Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.PowerLinearized.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.Utilities.Math.Examples.PowerLinearized,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|powerLinearized.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.PowerLinearized") translateModel(Buildings.Utilities.Math.Examples.PowerLinearized,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|powerLinearized.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.PowerLinearized") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008307/0.0008309, allocations: 98.88 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.0009949/0.0009951, allocations: 183 kB / 16.92 MB, free: 6.684 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.406/1.406, allocations: 223.3 MB / 241 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.77/2.77, allocations: 462.6 MB / 0.737 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003622/0.0003622, allocations: 18.94 kB / 0.9034 GB, free: 36.48 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3108/0.3112, allocations: 159.6 MB / 1.059 GB, free: 4.992 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.PowerLinearized): time 0.002111/0.3133, allocations: 1.167 MB / 1.06 GB, free: 3.812 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0003481/0.3137, allocations: 95.8 kB / 1.061 GB, free: 3.719 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.025e-05/0.3138, allocations: 0 / 1.061 GB, free: 3.719 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.854e-05/0.3138, allocations: 3.984 kB / 1.061 GB, free: 3.715 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.429e-05/0.3139, allocations: 3.938 kB / 1.061 GB, free: 3.711 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001843/0.314, allocations: 11.98 kB / 1.061 GB, free: 3.699 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 6.666e-05/0.3141, allocations: 23.94 kB / 1.061 GB, free: 3.676 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.428e-05/0.3142, allocations: 4 kB / 1.061 GB, free: 3.672 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 5.17e-05/0.3143, allocations: 11.92 kB / 1.061 GB, free: 3.66 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.495e-05/0.3143, allocations: 15.92 kB / 1.061 GB, free: 3.645 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.437e-05/0.3144, allocations: 0 / 1.061 GB, free: 3.645 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.34e-05/0.3144, allocations: 15.98 kB / 1.061 GB, free: 3.629 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.305e-05/0.3144, allocations: 0 / 1.061 GB, free: 3.629 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.347e-05/0.3145, allocations: 41.62 kB / 1.061 GB, free: 3.582 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 8.826e-05/0.3146, allocations: 15.97 kB / 1.061 GB, free: 3.566 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.3146, allocations: 0 / 1.061 GB, free: 3.566 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.854e-06/0.3146, allocations: 0 / 1.061 GB, free: 3.566 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.02e-06/0.3146, allocations: 4 kB / 1.061 GB, free: 3.562 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004519/0.3151, allocations: 351.7 kB / 1.061 GB, free: 3.168 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.466e-05/0.3151, allocations: 15.91 kB / 1.061 GB, free: 3.152 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001869/0.3153, allocations: 20.83 kB / 1.061 GB, free: 3.133 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000115/0.3154, allocations: 160.4 kB / 1.061 GB, free: 2.938 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.466e-05/0.3155, allocations: 8.312 kB / 1.061 GB, free: 2.93 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.314e-05/0.3155, allocations: 4.375 kB / 1.061 GB, free: 2.926 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002101/0.3157, allocations: 66.22 kB / 1.061 GB, free: 2.855 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.773e-06/0.3157, allocations: 192 / 1.061 GB, free: 2.855 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.152e-05/0.3157, allocations: 3.938 kB / 1.061 GB, free: 2.852 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.121e-06/0.3158, allocations: 4 kB / 1.061 GB, free: 2.848 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002362/0.316, allocations: 59.95 kB / 1.061 GB, free: 2.789 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004161/0.3164, allocations: 269 kB / 1.062 GB, free: 2.477 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001827/0.3166, allocations: 66.36 kB / 1.062 GB, free: 2.402 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001231/0.3167, allocations: 40.89 kB / 1.062 GB, free: 2.359 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.557e-05/0.3168, allocations: 0 / 1.062 GB, free: 2.359 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.872e-05/0.3168, allocations: 34.56 kB / 1.062 GB, free: 2.316 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 9.22e-07/0.3168, allocations: 0 / 1.062 GB, free: 2.316 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0004429/0.3173, allocations: 125.5 kB / 1.062 GB, free: 2.188 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.82e-05/0.3173, allocations: 55.34 kB / 1.062 GB, free: 2.121 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.744e-05/0.3174, allocations: 106 kB / 1.062 GB, free: 2.008 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.325e-05/0.3174, allocations: 29.7 kB / 1.062 GB, free: 1.973 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.098e-05/0.3175, allocations: 88.14 kB / 1.062 GB, free: 1.883 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.907e-05/0.3175, allocations: 7.844 kB / 1.062 GB, free: 1.875 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.491e-05/0.3175, allocations: 9.719 kB / 1.062 GB, free: 1.859 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001084/0.3176, allocations: 314.8 kB / 1.062 GB, free: 1.543 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001155/0.3177, allocations: 35.97 kB / 1.062 GB, free: 1.508 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001044/0.3179, allocations: 27.97 kB / 1.063 GB, free: 1.48 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002126/0.3181, allocations: 68.88 kB / 1.063 GB, free: 1.41 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.023e-06/0.3181, allocations: 0 / 1.063 GB, free: 1.41 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002649/0.3184, allocations: 97.59 kB / 1.063 GB, free: 1.309 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.604e-05/0.3184, allocations: 11.94 kB / 1.063 GB, free: 1.297 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.3184, allocations: 0 / 1.063 GB, free: 1.297 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.195e-05/0.3184, allocations: 0 / 1.063 GB, free: 1.297 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001076/0.3185, allocations: 11.98 kB / 1.063 GB, free: 1.285 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.263e-06/0.3185, allocations: 4 kB / 1.063 GB, free: 1.281 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.759e-05/0.3186, allocations: 16.02 kB / 1.063 GB, free: 1.266 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.821e-06/0.3186, allocations: 0 / 1.063 GB, free: 1.266 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.074e-05/0.3187, allocations: 113.8 kB / 1.063 GB, free: 1.145 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.804e-05/0.3187, allocations: 8.234 kB / 1.063 GB, free: 1.137 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.798e-05/0.3188, allocations: 3.531 kB / 1.063 GB, free: 1.133 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.3188, allocations: 0 / 1.063 GB, free: 1.133 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.486e-06/0.3188, allocations: 7.984 kB / 1.063 GB, free: 1.125 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.057e-06/0.3188, allocations: 0 / 1.063 GB, free: 1.125 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001764/0.319, allocations: 181.5 kB / 1.063 GB, free: 0.8984 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.319, allocations: 0 / 1.063 GB, free: 0.8984 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.038e-05/0.3191, allocations: 15.98 kB / 1.063 GB, free: 0.8828 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.3191, allocations: 0 / 1.063 GB, free: 0.8828 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.132e-05/0.3191, allocations: 0 / 1.063 GB, free: 0.8828 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.3191, allocations: 3.938 kB / 1.063 GB, free: 0.8789 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.3191, allocations: 0 / 1.063 GB, free: 0.8789 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002927/0.3194, allocations: 199.3 kB / 1.063 GB, free: 0.668 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.729e-05/0.3195, allocations: 81.11 kB / 1.063 GB, free: 0.5703 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.3e-05/0.3195, allocations: 0 / 1.063 GB, free: 0.5703 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.281e-05/0.3196, allocations: 16.02 kB / 1.063 GB, free: 0.5547 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.651e-05/0.3196, allocations: 4 kB / 1.063 GB, free: 0.5508 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.898e-06/0.3196, allocations: 0 / 1.063 GB, free: 0.5508 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.965e-05/0.3197, allocations: 87.27 kB / 1.063 GB, free: 476 kB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3197, allocations: 0 / 1.063 GB, free: 476 kB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002155/0.3199, allocations: 4 kB / 1.063 GB, free: 472 kB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001133/0.32, allocations: 95.25 kB / 1.063 GB, free: 368 kB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002864/0.3203, allocations: 67.95 kB / 1.064 GB, free: 300 kB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.3203, allocations: 0 / 1.064 GB, free: 300 kB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001227/0.3205, allocations: 39.97 kB / 1.064 GB, free: 260 kB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002649/0.3207, allocations: 11.94 kB / 1.064 GB, free: 248 kB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003502/0.3211, allocations: 165.4 kB / 1.064 GB, free: 52 kB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000228/0.3213, allocations: 0.677 MB / 1.064 GB, free: 15.35 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.627e-05/0.3214, allocations: 7.438 kB / 1.064 GB, free: 15.34 MB / 0.8262 GB Notification: Performance of SimCode: time 4.7e-07/0.3214, allocations: 4 kB / 1.064 GB, free: 15.34 MB / 0.8262 GB Notification: Performance of Templates: time 0.001842/0.3232, allocations: 0.6273 MB / 1.065 GB, free: 14.71 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.PowerLinearized.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.PowerLinearized.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.PowerLinearized.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.PowerLinearized.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.PowerLinearized.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.PowerLinearized -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.PowerLinearized.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.PowerLinearized_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_PowerLinearized.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.PowerLinearized.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches