Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.PowerLinearized,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Examples_PowerLinearized",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.PowerLinearized,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Examples_PowerLinearized",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007332/0.007332, allocations: 99.06 kB / 15.73 MB, free: 6.496 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.001973/0.001973, allocations: 203.7 kB / 16.68 MB, free: 6.375 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.425/1.425, allocations: 222.9 MB / 240.4 MB, free: 4.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.453/2.453, allocations: 437.1 MB / 0.7106 GB, free: 4.992 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001771/0.001771, allocations: 75.88 kB / 1.018 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2839/0.2856, allocations: 151.6 MB / 1.166 GB, free: 7.25 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.PowerLinearized): time 0.002575/0.2883, allocations: 1.443 MB / 1.168 GB, free: 5.785 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0002612/0.2885, allocations: 96.59 kB / 1.168 GB, free: 5.688 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.306e-05/0.2886, allocations: 0 / 1.168 GB, free: 5.688 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 2.292e-05/0.2886, allocations: 0 / 1.168 GB, free: 5.688 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 4.437e-05/0.2887, allocations: 3.938 kB / 1.168 GB, free: 5.684 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.000171/0.2888, allocations: 19.92 kB / 1.168 GB, free: 5.664 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 6.769e-05/0.2889, allocations: 27.92 kB / 1.168 GB, free: 5.637 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 8.875e-05/0.289, allocations: 7.984 kB / 1.168 GB, free: 5.629 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 4.226e-05/0.2891, allocations: 11.94 kB / 1.168 GB, free: 5.617 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 4.01e-05/0.2891, allocations: 15.97 kB / 1.168 GB, free: 5.602 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.49e-05/0.2891, allocations: 4 kB / 1.168 GB, free: 5.598 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 5.585e-05/0.2892, allocations: 15.92 kB / 1.168 GB, free: 5.582 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 1.587e-05/0.2892, allocations: 4 kB / 1.168 GB, free: 5.578 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 2.327e-05/0.2892, allocations: 11.94 kB / 1.168 GB, free: 5.566 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001096/0.2894, allocations: 36.11 kB / 1.168 GB, free: 5.531 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.2894, allocations: 0 / 1.168 GB, free: 5.531 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.463e-06/0.2894, allocations: 0 / 1.168 GB, free: 5.531 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.288e-06/0.2894, allocations: 4 kB / 1.168 GB, free: 5.527 MB / 0.92 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.0004619/0.2898, allocations: 343.3 kB / 1.168 GB, free: 5.141 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.671e-05/0.2899, allocations: 16.03 kB / 1.168 GB, free: 5.125 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.957e-05/0.2899, allocations: 30.75 kB / 1.168 GB, free: 5.086 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001402/0.2901, allocations: 12.92 kB / 1.168 GB, free: 5.074 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001391/0.2902, allocations: 168.4 kB / 1.168 GB, free: 4.871 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.588e-05/0.2902, allocations: 384 / 1.168 GB, free: 4.871 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.236e-05/0.2903, allocations: 4.375 kB / 1.168 GB, free: 4.867 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001815/0.2904, allocations: 62.17 kB / 1.168 GB, free: 4.801 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.328e-06/0.2905, allocations: 3.938 kB / 1.168 GB, free: 4.797 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.965e-06/0.2905, allocations: 7.938 kB / 1.168 GB, free: 4.789 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.517e-06/0.2905, allocations: 0 / 1.168 GB, free: 4.789 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002167/0.2907, allocations: 43.94 kB / 1.169 GB, free: 4.746 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003702/0.2911, allocations: 264.9 kB / 1.169 GB, free: 4.438 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001706/0.2913, allocations: 58.47 kB / 1.169 GB, free: 4.371 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000113/0.2914, allocations: 32.84 kB / 1.169 GB, free: 4.336 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.158e-05/0.2914, allocations: 0 / 1.169 GB, free: 4.336 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.983e-05/0.2914, allocations: 30.56 kB / 1.169 GB, free: 4.297 MB / 0.92 GB Notification: Performance of pre-optimization done (n=2): time 8.32e-07/0.2914, allocations: 0 / 1.169 GB, free: 4.297 MB / 0.92 GB Notification: Performance of matching and sorting (n=2): time 0.0004147/0.2919, allocations: 105.6 kB / 1.169 GB, free: 4.188 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.858e-05/0.2919, allocations: 55.39 kB / 1.169 GB, free: 4.121 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.611e-05/0.292, allocations: 101.9 kB / 1.169 GB, free: 4.012 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.436e-05/0.292, allocations: 25.7 kB / 1.169 GB, free: 3.98 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 4.971e-05/0.2921, allocations: 88.12 kB / 1.169 GB, free: 3.891 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 1.707e-05/0.2921, allocations: 3.953 kB / 1.169 GB, free: 3.887 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.421e-05/0.2921, allocations: 17.78 kB / 1.169 GB, free: 3.863 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001417/0.2923, allocations: 318.8 kB / 1.17 GB, free: 3.543 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001088/0.2924, allocations: 27.91 kB / 1.17 GB, free: 3.516 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.625e-05/0.2925, allocations: 23.98 kB / 1.17 GB, free: 3.492 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001986/0.2927, allocations: 52.86 kB / 1.17 GB, free: 3.438 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.2927, allocations: 3.938 kB / 1.17 GB, free: 3.434 MB / 0.92 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002483/0.293, allocations: 77.66 kB / 1.17 GB, free: 3.352 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.339e-05/0.293, allocations: 4 kB / 1.17 GB, free: 3.348 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.647e-06/0.293, allocations: 0 / 1.17 GB, free: 3.348 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.266e-05/0.293, allocations: 4 kB / 1.17 GB, free: 3.344 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.741e-05/0.2931, allocations: 7.984 kB / 1.17 GB, free: 3.336 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.172e-06/0.2931, allocations: 8.031 kB / 1.17 GB, free: 3.328 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.316e-05/0.2932, allocations: 16.12 kB / 1.17 GB, free: 3.312 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.819e-06/0.2932, allocations: 4 kB / 1.17 GB, free: 3.309 MB / 0.92 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.969e-05/0.2933, allocations: 117.7 kB / 1.17 GB, free: 3.184 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.307e-05/0.2933, allocations: 4 kB / 1.17 GB, free: 3.18 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.667e-05/0.2934, allocations: 7.516 kB / 1.17 GB, free: 3.168 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.173e-06/0.2934, allocations: 0 / 1.17 GB, free: 3.168 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.945e-06/0.2934, allocations: 0 / 1.17 GB, free: 3.168 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.034e-06/0.2934, allocations: 0 / 1.17 GB, free: 3.168 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001787/0.2936, allocations: 173.6 kB / 1.17 GB, free: 2.949 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.52e-07/0.2936, allocations: 0 / 1.17 GB, free: 2.949 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.662e-05/0.2937, allocations: 11.98 kB / 1.17 GB, free: 2.938 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.627e-06/0.2937, allocations: 3.984 kB / 1.17 GB, free: 2.934 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.623e-05/0.2937, allocations: 0 / 1.17 GB, free: 2.934 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.243e-06/0.2937, allocations: 0 / 1.17 GB, free: 2.934 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.2937, allocations: 0 / 1.17 GB, free: 2.934 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002952/0.294, allocations: 183.4 kB / 1.17 GB, free: 2.738 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 5.098e-05/0.2941, allocations: 85.06 kB / 1.17 GB, free: 2.637 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.186e-05/0.2941, allocations: 0 / 1.17 GB, free: 2.637 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.272e-05/0.2942, allocations: 11.98 kB / 1.17 GB, free: 2.625 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.995e-05/0.2942, allocations: 3.938 kB / 1.17 GB, free: 2.621 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.971e-06/0.2942, allocations: 4 kB / 1.17 GB, free: 2.617 MB / 0.92 GB Notification: Performance of sorting global known variables: time 4.485e-05/0.2943, allocations: 83.27 kB / 1.17 GB, free: 2.535 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2943, allocations: 4.031 kB / 1.17 GB, free: 2.531 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002068/0.2945, allocations: 8 kB / 1.17 GB, free: 2.523 MB / 0.92 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.0005909/0.2951, allocations: 0.7081 MB / 1.171 GB, free: 1.793 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0002524/0.2953, allocations: 59.89 kB / 1.171 GB, free: 1.734 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.2954, allocations: 0 / 1.171 GB, free: 1.734 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0001115/0.2955, allocations: 27.97 kB / 1.171 GB, free: 1.707 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002558/0.2957, allocations: 3.938 kB / 1.171 GB, free: 1.703 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004348/0.2962, allocations: 147.2 kB / 1.171 GB, free: 1.52 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003006/0.2965, allocations: 0.6807 MB / 1.172 GB, free: 0.8125 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 2.701e-05/0.2965, allocations: 0 / 1.172 GB, free: 0.8125 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.501e-05/0.2966, allocations: 7.438 kB / 1.172 GB, free: 0.8047 MB / 0.92 GB Notification: Performance of SimCode: time 2.1e-07/0.2966, allocations: 0 / 1.172 GB, free: 0.8047 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2567/0.5533, allocations: 1.466 MB / 1.173 GB, free: 15.43 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.654/10.21, allocations: 6.766 kB / 1.173 GB, free: 15.43 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Utilities.Math.Examples.PowerLinearized.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.PowerLinearized.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.PowerLinearized.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.PowerLinearized.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Math.Examples.PowerLinearized_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Math_Examples_PowerLinearized_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_10_Buildings_Utilities_Math_Examples_PowerLinearized.fmu > Buildings_10_Buildings.Utilities.Math.Examples.PowerLinearized.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.PowerLinearized_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_PowerLinearized.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.PowerLinearized.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches