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.001553/0.001553, allocations: 107.6 kB / 16.37 MB, free: 6.477 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.001721/0.001721, allocations: 193.8 kB / 17.31 MB, free: 5.824 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.331/1.331, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.512/2.512, allocations: 442.6 MB / 0.7165 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001821/0.001821, allocations: 65.92 kB / 0.8773 GB, free: 10.96 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3135/0.3153, allocations: 153 MB / 1.027 GB, free: 2.039 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.PowerLinearized): time 0.003816/0.3192, allocations: 1.461 MB / 1.028 GB, free: 0.5742 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0003515/0.3196, allocations: 80.66 kB / 1.028 GB, free: 0.4922 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.028e-05/0.3196, allocations: 0 / 1.028 GB, free: 0.4922 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.968e-05/0.3197, allocations: 7.922 kB / 1.028 GB, free: 496 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 4.902e-05/0.3197, allocations: 3.938 kB / 1.028 GB, free: 492 kB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002417/0.32, allocations: 19.98 kB / 1.028 GB, free: 472 kB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 9.665e-05/0.3201, allocations: 35.84 kB / 1.028 GB, free: 436 kB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001333/0.3202, allocations: 4 kB / 1.028 GB, free: 432 kB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 5.672e-05/0.3203, allocations: 7.984 kB / 1.028 GB, free: 424 kB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 4.795e-05/0.3204, allocations: 11.88 kB / 1.028 GB, free: 412 kB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.941e-05/0.3204, allocations: 4 kB / 1.028 GB, free: 408 kB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 7.411e-05/0.3205, allocations: 15.98 kB / 1.028 GB, free: 392 kB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 2.298e-05/0.3205, allocations: 7.984 kB / 1.028 GB, free: 384 kB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 4.083e-05/0.3206, allocations: 11.94 kB / 1.028 GB, free: 372 kB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001525/0.3207, allocations: 31.88 kB / 1.028 GB, free: 340 kB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 7.564e-06/0.3207, allocations: 8 kB / 1.028 GB, free: 332 kB / 0.795 GB Notification: Performance of FrontEnd: time 2.755e-06/0.3207, allocations: 0 / 1.028 GB, free: 332 kB / 0.795 GB Notification: Performance of Transformations before backend: time 5.931e-06/0.3208, allocations: 0 / 1.028 GB, free: 332 kB / 0.795 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.0006312/0.3214, allocations: 351.4 kB / 1.029 GB, free: 15.93 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.987e-05/0.3215, allocations: 8.031 kB / 1.029 GB, free: 15.92 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002203/0.3217, allocations: 12.92 kB / 1.029 GB, free: 15.91 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001714/0.3219, allocations: 172.3 kB / 1.029 GB, free: 15.7 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.859e-05/0.3219, allocations: 384 / 1.029 GB, free: 15.7 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.549e-05/0.3219, allocations: 4.375 kB / 1.029 GB, free: 15.7 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002628/0.3222, allocations: 58.22 kB / 1.029 GB, free: 15.64 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.658e-06/0.3222, allocations: 192 / 1.029 GB, free: 15.64 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.648e-05/0.3223, allocations: 3.938 kB / 1.029 GB, free: 15.63 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.181e-05/0.3223, allocations: 3.984 kB / 1.029 GB, free: 15.63 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002721/0.3226, allocations: 47.95 kB / 1.029 GB, free: 15.58 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005014/0.3231, allocations: 264.9 kB / 1.029 GB, free: 15.27 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002289/0.3233, allocations: 62.42 kB / 1.029 GB, free: 15.2 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000153/0.3235, allocations: 28.89 kB / 1.029 GB, free: 15.17 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.134e-05/0.3235, allocations: 0 / 1.029 GB, free: 15.17 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.044e-05/0.3236, allocations: 34.56 kB / 1.029 GB, free: 15.13 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 1.453e-06/0.3236, allocations: 4 kB / 1.029 GB, free: 15.12 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2): time 0.0005366/0.3241, allocations: 97.62 kB / 1.029 GB, free: 15.02 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.446e-05/0.3242, allocations: 55.34 kB / 1.03 GB, free: 14.96 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001056/0.3243, allocations: 110 kB / 1.03 GB, free: 14.84 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.684e-05/0.3243, allocations: 25.7 kB / 1.03 GB, free: 14.81 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.382e-05/0.3244, allocations: 88.14 kB / 1.03 GB, free: 14.72 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.523e-05/0.3244, allocations: 7.844 kB / 1.03 GB, free: 14.71 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.961e-05/0.3245, allocations: 9.719 kB / 1.03 GB, free: 14.7 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001463/0.3246, allocations: 322.8 kB / 1.03 GB, free: 14.37 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001369/0.3248, allocations: 15.98 kB / 1.03 GB, free: 14.36 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00014/0.3249, allocations: 27.97 kB / 1.03 GB, free: 14.33 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002492/0.3252, allocations: 52.81 kB / 1.03 GB, free: 14.27 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/0.3252, allocations: 0 / 1.03 GB, free: 14.27 MB / 0.8106 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0003351/0.3256, allocations: 85.53 kB / 1.03 GB, free: 14.18 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.157e-05/0.3256, allocations: 14.89 kB / 1.03 GB, free: 14.17 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.622e-06/0.3256, allocations: 0 / 1.03 GB, free: 14.17 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.532e-05/0.3256, allocations: 0 / 1.03 GB, free: 14.17 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001336/0.3258, allocations: 16.17 kB / 1.03 GB, free: 14.16 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.36e-06/0.3258, allocations: 0 / 1.03 GB, free: 14.16 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.986e-05/0.3259, allocations: 8 kB / 1.03 GB, free: 14.15 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.009e-05/0.3259, allocations: 4 kB / 1.03 GB, free: 14.14 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 8.566e-05/0.326, allocations: 117.7 kB / 1.03 GB, free: 14.02 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.736e-05/0.326, allocations: 11.91 kB / 1.03 GB, free: 14.01 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.538e-05/0.3261, allocations: 11.47 kB / 1.03 GB, free: 14 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.3261, allocations: 0 / 1.03 GB, free: 14 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.3261, allocations: 0 / 1.03 GB, free: 14 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.466e-06/0.3261, allocations: 0 / 1.03 GB, free: 14 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002043/0.3263, allocations: 165.6 kB / 1.031 GB, free: 13.79 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.3263, allocations: 0 / 1.031 GB, free: 13.79 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001047/0.3265, allocations: 15.98 kB / 1.031 GB, free: 13.77 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.447e-06/0.3265, allocations: 0 / 1.031 GB, free: 13.77 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.147e-06/0.3265, allocations: 0 / 1.031 GB, free: 13.77 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.775e-06/0.3265, allocations: 4 kB / 1.031 GB, free: 13.77 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.3265, allocations: 0 / 1.031 GB, free: 13.77 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003525/0.3269, allocations: 179.4 kB / 1.031 GB, free: 13.57 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.148e-05/0.3269, allocations: 77.11 kB / 1.031 GB, free: 13.48 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.643e-05/0.3269, allocations: 0 / 1.031 GB, free: 13.48 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001218/0.3271, allocations: 16.02 kB / 1.031 GB, free: 13.46 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.571e-05/0.3271, allocations: 0 / 1.031 GB, free: 13.46 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.4e-06/0.3271, allocations: 0 / 1.031 GB, free: 13.46 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.621e-05/0.3272, allocations: 87.27 kB / 1.031 GB, free: 13.38 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3272, allocations: 0 / 1.031 GB, free: 13.38 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0003106/0.3275, allocations: 8 kB / 1.031 GB, free: 13.37 MB / 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.0001446/0.3277, allocations: 95.25 kB / 1.031 GB, free: 13.27 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003261/0.328, allocations: 55.94 kB / 1.031 GB, free: 13.21 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.328, allocations: 0 / 1.031 GB, free: 13.21 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001575/0.3282, allocations: 27.92 kB / 1.031 GB, free: 13.18 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004024/0.3286, allocations: 3.938 kB / 1.031 GB, free: 13.18 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004433/0.3291, allocations: 125.6 kB / 1.031 GB, free: 13.03 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002999/0.3294, allocations: 0.6729 MB / 1.032 GB, free: 12.33 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 4.404e-05/0.3294, allocations: 7.984 kB / 1.032 GB, free: 12.32 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.313e-05/0.3295, allocations: 7.438 kB / 1.032 GB, free: 12.31 MB / 0.8106 GB Notification: Performance of SimCode: time 2.81e-07/0.3295, allocations: 0 / 1.032 GB, free: 12.31 MB / 0.8106 GB Notification: Performance of Templates: time 0.003206/0.3327, allocations: 0.5771 MB / 1.032 GB, free: 11.74 MB / 0.8106 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 -s gbode -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