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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001091/0.001091, allocations: 108 kB / 15.6 MB, free: 132 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.001127/0.001127, allocations: 194.2 kB / 16.53 MB, free: 6.391 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.353/1.353, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.844/2.844, allocations: 472.7 MB / 0.7451 GB, free: 4.574 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001297/0.001298, allocations: 65.59 kB / 0.912 GB, free: 33.46 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3192/0.3206, allocations: 159.9 MB / 1.068 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.PowerLinearized): time 0.002671/0.3233, allocations: 1.442 MB / 1.07 GB, free: 8.902 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0003024/0.3236, allocations: 83.75 kB / 1.07 GB, free: 8.82 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.884e-05/0.3237, allocations: 0 / 1.07 GB, free: 8.82 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.312e-05/0.3237, allocations: 7.922 kB / 1.07 GB, free: 8.812 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.529e-05/0.3238, allocations: 3.938 kB / 1.07 GB, free: 8.809 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002268/0.324, allocations: 19.97 kB / 1.07 GB, free: 8.789 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 7.169e-05/0.3241, allocations: 23.92 kB / 1.07 GB, free: 8.766 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00011/0.3242, allocations: 8 kB / 1.07 GB, free: 8.758 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 4.695e-05/0.3243, allocations: 11.94 kB / 1.07 GB, free: 8.746 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 4.691e-05/0.3243, allocations: 15.92 kB / 1.07 GB, free: 8.73 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.894e-05/0.3243, allocations: 0 / 1.07 GB, free: 8.73 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 7.032e-05/0.3244, allocations: 19.98 kB / 1.07 GB, free: 8.711 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.583e-05/0.3244, allocations: 8 kB / 1.07 GB, free: 8.703 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.145e-05/0.3245, allocations: 11.92 kB / 1.07 GB, free: 8.691 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001206/0.3246, allocations: 27.89 kB / 1.07 GB, free: 8.664 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.3246, allocations: 0 / 1.07 GB, free: 8.664 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.853e-06/0.3246, allocations: 0 / 1.07 GB, free: 8.664 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.473e-06/0.3246, allocations: 4 kB / 1.07 GB, free: 8.66 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0005059/0.3251, allocations: 345.6 kB / 1.07 GB, free: 8.273 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.99e-05/0.3252, allocations: 12.03 kB / 1.07 GB, free: 8.262 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002025/0.3254, allocations: 12.92 kB / 1.07 GB, free: 8.25 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001435/0.3256, allocations: 172.3 kB / 1.07 GB, free: 8.043 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.865e-05/0.3256, allocations: 8.297 kB / 1.07 GB, free: 8.035 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.282e-05/0.3256, allocations: 4.375 kB / 1.07 GB, free: 8.031 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002142/0.3258, allocations: 50.23 kB / 1.07 GB, free: 7.977 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.334e-06/0.3258, allocations: 4.188 kB / 1.07 GB, free: 7.973 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.885e-05/0.3259, allocations: 11.92 kB / 1.07 GB, free: 7.961 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.059e-06/0.3259, allocations: 0 / 1.07 GB, free: 7.961 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002184/0.3261, allocations: 43.95 kB / 1.07 GB, free: 7.918 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004534/0.3266, allocations: 261 kB / 1.071 GB, free: 7.613 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001838/0.3268, allocations: 62.42 kB / 1.071 GB, free: 7.543 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001228/0.3269, allocations: 24.91 kB / 1.071 GB, free: 7.516 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.801e-05/0.3269, allocations: 4 kB / 1.071 GB, free: 7.512 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.663e-05/0.327, allocations: 34.55 kB / 1.071 GB, free: 7.469 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=2): time 1.132e-06/0.327, allocations: 0 / 1.071 GB, free: 7.469 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2): time 0.0004363/0.3274, allocations: 101.6 kB / 1.071 GB, free: 7.363 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.098e-05/0.3274, allocations: 59.34 kB / 1.071 GB, free: 7.293 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.872e-05/0.3275, allocations: 101.9 kB / 1.071 GB, free: 7.184 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.52e-05/0.3276, allocations: 25.7 kB / 1.071 GB, free: 7.152 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.761e-05/0.3276, allocations: 88.06 kB / 1.071 GB, free: 7.062 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.913e-05/0.3276, allocations: 11.97 kB / 1.071 GB, free: 7.051 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.52e-05/0.3277, allocations: 17.72 kB / 1.071 GB, free: 7.027 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001078/0.3278, allocations: 310.8 kB / 1.072 GB, free: 6.715 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001078/0.3279, allocations: 27.91 kB / 1.072 GB, free: 6.688 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.938e-05/0.328, allocations: 27.97 kB / 1.072 GB, free: 6.66 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001935/0.3282, allocations: 52.88 kB / 1.072 GB, free: 6.605 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.3282, allocations: 0 / 1.072 GB, free: 6.605 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002459/0.3285, allocations: 85.5 kB / 1.072 GB, free: 6.516 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.597e-05/0.3285, allocations: 5.719 kB / 1.072 GB, free: 6.512 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/0.3285, allocations: 4.188 kB / 1.072 GB, free: 6.508 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.095e-05/0.3285, allocations: 0 / 1.072 GB, free: 6.508 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001088/0.3286, allocations: 20.02 kB / 1.072 GB, free: 6.488 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.819e-06/0.3287, allocations: 0 / 1.072 GB, free: 6.488 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.311e-05/0.3287, allocations: 11.98 kB / 1.072 GB, free: 6.477 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.921e-06/0.3287, allocations: 0 / 1.072 GB, free: 6.477 MB / 0.8262 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.366e-05/0.3288, allocations: 111.8 kB / 1.072 GB, free: 6.359 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.639e-05/0.3288, allocations: 4 kB / 1.072 GB, free: 6.355 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.723e-05/0.3289, allocations: 11.52 kB / 1.072 GB, free: 6.34 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.3289, allocations: 0 / 1.072 GB, free: 6.34 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.3289, allocations: 4 kB / 1.072 GB, free: 6.336 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.024e-06/0.3289, allocations: 0 / 1.072 GB, free: 6.336 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001497/0.3291, allocations: 165.6 kB / 1.072 GB, free: 6.125 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.3291, allocations: 0 / 1.072 GB, free: 6.125 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.797e-05/0.3292, allocations: 11.98 kB / 1.072 GB, free: 6.113 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.3292, allocations: 0 / 1.072 GB, free: 6.113 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.388e-06/0.3292, allocations: 4 kB / 1.072 GB, free: 6.109 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.3292, allocations: 0 / 1.072 GB, free: 6.109 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.3292, allocations: 0 / 1.072 GB, free: 6.109 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003013/0.3295, allocations: 183.4 kB / 1.072 GB, free: 5.914 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.962e-05/0.3296, allocations: 81.02 kB / 1.072 GB, free: 5.816 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.784e-05/0.3296, allocations: 4 kB / 1.072 GB, free: 5.812 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.166e-05/0.3297, allocations: 7.984 kB / 1.072 GB, free: 5.805 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.613e-05/0.3297, allocations: 0 / 1.072 GB, free: 5.805 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.068e-06/0.3297, allocations: 0 / 1.072 GB, free: 5.805 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.476e-05/0.3298, allocations: 95.3 kB / 1.072 GB, free: 5.711 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3298, allocations: 3.938 kB / 1.072 GB, free: 5.707 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002287/0.33, allocations: 4 kB / 1.072 GB, free: 5.703 MB / 0.8262 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.0001395/0.3302, allocations: 95.25 kB / 1.073 GB, free: 5.602 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002709/0.3305, allocations: 47.95 kB / 1.073 GB, free: 5.555 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.658e-06/0.3305, allocations: 4.062 kB / 1.073 GB, free: 5.551 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001121/0.3306, allocations: 31.91 kB / 1.073 GB, free: 5.52 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003244/0.3309, allocations: 7.938 kB / 1.073 GB, free: 5.512 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003501/0.3313, allocations: 129 kB / 1.073 GB, free: 5.363 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002403/0.3315, allocations: 0.6885 MB / 1.073 GB, free: 4.648 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.206e-05/0.3316, allocations: 3.984 kB / 1.073 GB, free: 4.645 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.648e-05/0.3316, allocations: 7.438 kB / 1.073 GB, free: 4.637 MB / 0.8262 GB Notification: Performance of SimCode: time 2.21e-07/0.3316, allocations: 0 / 1.073 GB, free: 4.637 MB / 0.8262 GB Notification: Performance of Templates: time 0.002558/0.3342, allocations: 0.5721 MB / 1.074 GB, free: 4.066 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.PowerLinearized.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches