Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.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 9.1.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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.Functions.Examples.PowerLinearized,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_PowerLinearized",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.PowerLinearized,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_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.000897/0.0008971, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.0009064/0.0009064, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.318/1.318, allocations: 223.2 MB / 239.9 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.388/2.388, allocations: 390.3 MB / 0.6653 GB, free: 3.004 MB / 0.5138 GB Notification: Performance of FrontEnd - loaded program: time 0.0003268/0.0003268, allocations: 11.94 kB / 0.8146 GB, free: 14.27 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6247/0.6251, allocations: 142.3 MB / 0.9536 GB, free: 8.078 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.PowerLinearized): time 0.0006439/0.6258, allocations: 324.4 kB / 0.9539 GB, free: 7.832 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002344/0.626, allocations: 80.31 kB / 0.954 GB, free: 7.773 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.284e-05/0.6261, allocations: 1.688 kB / 0.954 GB, free: 7.773 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 9.768e-06/0.6261, allocations: 0 / 0.954 GB, free: 7.773 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.974e-05/0.6261, allocations: 0 / 0.954 GB, free: 7.773 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001596/0.6263, allocations: 24.06 kB / 0.954 GB, free: 7.754 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.314e-05/0.6263, allocations: 6.031 kB / 0.954 GB, free: 7.75 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.209e-05/0.6264, allocations: 1.094 kB / 0.954 GB, free: 7.75 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.807e-05/0.6264, allocations: 2.5 kB / 0.954 GB, free: 7.75 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.028e-05/0.6265, allocations: 5.5 kB / 0.954 GB, free: 7.746 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 9.037e-06/0.6265, allocations: 0 / 0.954 GB, free: 7.746 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.187e-05/0.6266, allocations: 9.984 kB / 0.954 GB, free: 7.742 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.584e-06/0.6266, allocations: 5.016 kB / 0.954 GB, free: 7.738 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.976e-05/0.6266, allocations: 26.3 kB / 0.9541 GB, free: 7.707 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 5.752e-05/0.6267, allocations: 12.98 kB / 0.9541 GB, free: 7.699 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.124e-06/0.6267, allocations: 0 / 0.9541 GB, free: 7.699 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.412e-06/0.6267, allocations: 0 / 0.9541 GB, free: 7.699 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 2.926e-06/0.6267, allocations: 4 kB / 0.9541 GB, free: 7.695 MB / 0.7169 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.000239/0.6269, allocations: 312.1 kB / 0.9544 GB, free: 7.348 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.173e-05/0.627, allocations: 9.188 kB / 0.9544 GB, free: 7.348 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.502e-05/0.627, allocations: 34.5 kB / 0.9544 GB, free: 7.305 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000155/0.6272, allocations: 17.34 kB / 0.9544 GB, free: 7.293 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.106e-05/0.6272, allocations: 163.1 kB / 0.9546 GB, free: 7.094 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.2e-05/0.6273, allocations: 5.469 kB / 0.9546 GB, free: 7.09 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.048e-05/0.6273, allocations: 0 / 0.9546 GB, free: 7.09 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001321/0.6274, allocations: 39.75 kB / 0.9546 GB, free: 7.051 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.013e-06/0.6274, allocations: 0 / 0.9546 GB, free: 7.051 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.057e-06/0.6274, allocations: 0 / 0.9546 GB, free: 7.051 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.55e-06/0.6275, allocations: 5.312 kB / 0.9546 GB, free: 7.047 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.01e-05/0.6275, allocations: 18.66 kB / 0.9547 GB, free: 7.035 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001021/0.6276, allocations: 156.1 kB / 0.9548 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001557/0.6278, allocations: 45.53 kB / 0.9549 GB, free: 6.797 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.53e-05/0.6278, allocations: 0 / 0.9549 GB, free: 6.797 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.622e-05/0.6279, allocations: 32.06 kB / 0.9549 GB, free: 6.758 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.032e-06/0.6279, allocations: 0 / 0.9549 GB, free: 6.758 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0002108/0.6281, allocations: 56.86 kB / 0.9549 GB, free: 6.711 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.851e-05/0.6281, allocations: 51.41 kB / 0.955 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.134e-05/0.6281, allocations: 99.39 kB / 0.9551 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.115e-06/0.6282, allocations: 25.7 kB / 0.9551 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.618e-05/0.6282, allocations: 80.14 kB / 0.9552 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.655e-05/0.6282, allocations: 7.594 kB / 0.9552 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.688e-06/0.6282, allocations: 0 / 0.9552 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.695e-05/0.6283, allocations: 319.9 kB / 0.9555 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.493e-05/0.6284, allocations: 7.875 kB / 0.9555 GB, free: 6.102 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.085e-05/0.6284, allocations: 7.859 kB / 0.9555 GB, free: 6.098 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.507e-05/0.6284, allocations: 8.781 kB / 0.9555 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.6284, allocations: 0 / 0.9555 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001033/0.6286, allocations: 50.02 kB / 0.9556 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.341e-05/0.6286, allocations: 4.25 kB / 0.9556 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.6286, allocations: 5.203 kB / 0.9556 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.153e-05/0.6286, allocations: 0 / 0.9556 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003734/0.629, allocations: 47.44 kB / 0.9556 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009838/0.63, allocations: 1.31 MB / 0.9569 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.874e-05/0.63, allocations: 1.062 kB / 0.9569 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.536e-06/0.63, allocations: 5.078 kB / 0.9569 GB, free: 4.637 MB / 0.7169 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 (3): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 5.465e-05/0.6301, allocations: 113.2 kB / 0.957 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.195e-06/0.6301, allocations: 5.406 kB / 0.957 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.531e-05/0.6301, allocations: 7.5 kB / 0.957 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.6301, allocations: 0 / 0.957 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.864e-06/0.6301, allocations: 1.438 kB / 0.957 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.425e-06/0.6301, allocations: 0 / 0.957 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.508e-05/0.6302, allocations: 164.2 kB / 0.9572 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.6302, allocations: 0 / 0.9572 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003689/0.6306, allocations: 54.86 kB / 0.9572 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.6306, allocations: 3.938 kB / 0.9572 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.626e-06/0.6306, allocations: 1.188 kB / 0.9572 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008496/0.6315, allocations: 1.306 MB / 0.9585 GB, free: 2.891 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.6315, allocations: 5.297 kB / 0.9585 GB, free: 2.887 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001115/0.6316, allocations: 81.89 kB / 0.9586 GB, free: 2.801 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.579e-05/0.6316, allocations: 77.83 kB / 0.9587 GB, free: 2.707 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.873e-06/0.6316, allocations: 1.312 kB / 0.9587 GB, free: 2.707 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.733e-05/0.6317, allocations: 5.047 kB / 0.9587 GB, free: 2.703 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.237e-05/0.6317, allocations: 1.438 kB / 0.9587 GB, free: 2.703 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.149e-06/0.6317, allocations: 1.188 kB / 0.9587 GB, free: 2.703 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.497e-05/0.6317, allocations: 83.22 kB / 0.9588 GB, free: 2.621 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.01e-07/0.6317, allocations: 0 / 0.9588 GB, free: 2.621 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001967/0.6319, allocations: 3.656 kB / 0.9588 GB, free: 2.621 MB / 0.7169 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 (3): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002837/0.6322, allocations: 0.6082 MB / 0.9594 GB, free: 2.016 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000426/0.6327, allocations: 64.97 kB / 0.9594 GB, free: 1.984 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.065e-06/0.6327, allocations: 0 / 0.9594 GB, free: 1.984 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002335/0.6329, allocations: 37.66 kB / 0.9595 GB, free: 1.969 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.932e-05/0.633, allocations: 9.234 kB / 0.9595 GB, free: 1.961 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003523/0.6334, allocations: 116.2 kB / 0.9596 GB, free: 1.82 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.381e-05/0.6335, allocations: 0.6776 MB / 0.9602 GB, free: 1.121 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.506e-05/0.6335, allocations: 1.5 kB / 0.9602 GB, free: 1.121 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.693e-05/0.6336, allocations: 13.59 kB / 0.9602 GB, free: 1.109 MB / 0.7169 GB Notification: Performance of SimCode: time 2.4e-07/0.6336, allocations: 4 kB / 0.9603 GB, free: 1.105 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0105/0.6441, allocations: 1.047 MB / 0.9613 GB, free: 0.6328 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001357/0.6442, allocations: 219.4 kB / 0.9615 GB, free: 404 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.613/2.257, allocations: 1.188 kB / 0.9615 GB, free: 404 kB / 0.7169 GB (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.PowerLinearized.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.PowerLinearized.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.PowerLinearized.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.PowerLinearized.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Functions.Examples.PowerLinearized_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Functions_Examples_PowerLinearized_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Functions_Examples_PowerLinearized.fmu > Buildings_9_Buildings.Utilities.Math.Functions.Examples.PowerLinearized.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Utilities.Math.Functions.Examples.PowerLinearized_res.mat does not exist to compare? outputFormat=mat