Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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: "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.PowerLinearized,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_PowerLinearized",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.PowerLinearized,fileNamePrefix="BuildingSystems_BuildingSystems_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.005485/0.005486, allocations: 100.6 kB / 15.73 MB, free: 6.051 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.001147/0.001147, allocations: 196.1 kB / 16.68 MB, free: 5.969 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.259/1.259, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002162/0.002162, allocations: 297 kB / 290.8 MB, free: 14.47 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8857/0.8857, allocations: 169.3 MB / 0.4983 GB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002008/0.002008, allocations: 103.8 kB / 0.681 GB, free: 7.473 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.452/0.4541, allocations: 86.97 MB / 0.7659 GB, free: 3.898 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.PowerLinearized): time 0.002505/0.4566, allocations: 1.43 MB / 0.7673 GB, free: 2.457 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0003094/0.4569, allocations: 96.58 kB / 0.7674 GB, free: 2.359 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.105e-05/0.457, allocations: 4 kB / 0.7674 GB, free: 2.355 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 3.069e-05/0.457, allocations: 4 kB / 0.7674 GB, free: 2.352 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 5.01e-05/0.4571, allocations: 3.938 kB / 0.7674 GB, free: 2.348 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002135/0.4573, allocations: 19.92 kB / 0.7674 GB, free: 2.328 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 8.306e-05/0.4574, allocations: 23.92 kB / 0.7674 GB, free: 2.305 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 9.448e-05/0.4575, allocations: 6.812 kB / 0.7675 GB, free: 2.301 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 5.246e-05/0.4575, allocations: 11.98 kB / 0.7675 GB, free: 2.289 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 4.338e-05/0.4576, allocations: 15.92 kB / 0.7675 GB, free: 2.273 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.57e-05/0.4576, allocations: 4 kB / 0.7675 GB, free: 2.27 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 6.272e-05/0.4577, allocations: 11.98 kB / 0.7675 GB, free: 2.258 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.93e-05/0.4577, allocations: 7.984 kB / 0.7675 GB, free: 2.25 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 3.44e-05/0.4577, allocations: 15.94 kB / 0.7675 GB, free: 2.234 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001137/0.4579, allocations: 35.83 kB / 0.7676 GB, free: 2.199 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.4579, allocations: 0 / 0.7676 GB, free: 2.199 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.114e-06/0.4579, allocations: 3.938 kB / 0.7676 GB, free: 2.195 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.039e-06/0.4579, allocations: 0 / 0.7676 GB, free: 2.195 MB / 0.5294 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.0004822/0.4584, allocations: 347.3 kB / 0.7679 GB, free: 1.805 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.003e-05/0.4584, allocations: 8.031 kB / 0.7679 GB, free: 1.797 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.059e-05/0.4585, allocations: 30.75 kB / 0.7679 GB, free: 1.758 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000151/0.4586, allocations: 16.92 kB / 0.7679 GB, free: 1.742 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001266/0.4588, allocations: 172.3 kB / 0.7681 GB, free: 1.535 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.957e-05/0.4588, allocations: 4.375 kB / 0.7681 GB, free: 1.531 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.242e-05/0.4588, allocations: 384 / 0.7681 GB, free: 1.531 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001878/0.459, allocations: 58.23 kB / 0.7682 GB, free: 1.469 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.258e-06/0.459, allocations: 3.938 kB / 0.7682 GB, free: 1.465 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.476e-06/0.459, allocations: 0 / 0.7682 GB, free: 1.465 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.187e-06/0.459, allocations: 0 / 0.7682 GB, free: 1.465 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002154/0.4592, allocations: 63.86 kB / 0.7682 GB, free: 1.402 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003527/0.4596, allocations: 253 kB / 0.7685 GB, free: 1.105 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001574/0.4598, allocations: 54.48 kB / 0.7685 GB, free: 1.043 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001107/0.4599, allocations: 32.89 kB / 0.7686 GB, free: 1.008 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 1.01e-05/0.4599, allocations: 0 / 0.7686 GB, free: 1.008 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.67e-05/0.4599, allocations: 34.56 kB / 0.7686 GB, free: 0.9648 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=2): time 8.31e-07/0.4599, allocations: 0 / 0.7686 GB, free: 0.9648 MB / 0.5294 GB Notification: Performance of matching and sorting (n=2): time 0.000378/0.4603, allocations: 101.7 kB / 0.7687 GB, free: 0.8594 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.994e-05/0.4604, allocations: 55.44 kB / 0.7687 GB, free: 0.793 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.543e-05/0.4604, allocations: 105.8 kB / 0.7688 GB, free: 0.6797 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.292e-05/0.4605, allocations: 25.7 kB / 0.7689 GB, free: 0.6484 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 4.379e-05/0.4605, allocations: 96.03 kB / 0.769 GB, free: 0.5508 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 1.65e-05/0.4605, allocations: 3.984 kB / 0.769 GB, free: 0.5469 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.944e-05/0.4606, allocations: 13.72 kB / 0.769 GB, free: 0.5273 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001022/0.4607, allocations: 314.8 kB / 0.7693 GB, free: 216 kB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001015/0.4608, allocations: 27.97 kB / 0.7693 GB, free: 188 kB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.926e-05/0.4609, allocations: 19.98 kB / 0.7693 GB, free: 168 kB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001804/0.4611, allocations: 52.75 kB / 0.7694 GB, free: 112 kB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.4611, allocations: 3.938 kB / 0.7694 GB, free: 108 kB / 0.5294 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002306/0.4613, allocations: 89.61 kB / 0.7695 GB, free: 12 kB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.14e-05/0.4613, allocations: 4 kB / 0.7695 GB, free: 8 kB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.947e-06/0.4613, allocations: 0 / 0.7695 GB, free: 8 kB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.243e-05/0.4614, allocations: 0 / 0.7695 GB, free: 8 kB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000115/0.4615, allocations: 12.03 kB / 0.7695 GB, free: 15.99 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.981e-06/0.4615, allocations: 0 / 0.7695 GB, free: 15.99 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.795e-05/0.4616, allocations: 11.88 kB / 0.7695 GB, free: 15.98 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.723e-06/0.4616, allocations: 8.031 kB / 0.7695 GB, free: 15.98 MB / 0.545 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.172e-05/0.4617, allocations: 117.7 kB / 0.7696 GB, free: 15.85 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.241e-05/0.4617, allocations: 0 / 0.7696 GB, free: 15.85 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.752e-05/0.4617, allocations: 7.531 kB / 0.7696 GB, free: 15.84 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.273e-06/0.4617, allocations: 0 / 0.7696 GB, free: 15.84 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.4617, allocations: 0 / 0.7696 GB, free: 15.84 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/0.4617, allocations: 3.984 kB / 0.7696 GB, free: 15.84 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001643/0.4619, allocations: 169.6 kB / 0.7698 GB, free: 15.62 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.4619, allocations: 0 / 0.7698 GB, free: 15.62 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.936e-05/0.462, allocations: 19.92 kB / 0.7698 GB, free: 15.61 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.363e-06/0.462, allocations: 0 / 0.7698 GB, free: 15.61 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.134e-06/0.462, allocations: 256 / 0.7698 GB, free: 15.61 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.885e-06/0.462, allocations: 4 kB / 0.7698 GB, free: 15.6 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.462, allocations: 0 / 0.7698 GB, free: 15.6 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002791/0.4623, allocations: 183.3 kB / 0.77 GB, free: 15.41 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.403e-05/0.4624, allocations: 77.11 kB / 0.77 GB, free: 15.31 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.469e-05/0.4624, allocations: 4 kB / 0.7701 GB, free: 15.31 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.895e-05/0.4625, allocations: 11.98 kB / 0.7701 GB, free: 15.3 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.786e-05/0.4625, allocations: 0 / 0.7701 GB, free: 15.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.446e-06/0.4625, allocations: 0 / 0.7701 GB, free: 15.3 MB / 0.545 GB Notification: Performance of sorting global known variables: time 3.845e-05/0.4626, allocations: 79.28 kB / 0.7701 GB, free: 15.22 MB / 0.545 GB Notification: Performance of sort global known variables: time 1e-07/0.4626, allocations: 0 / 0.7701 GB, free: 15.22 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002073/0.4628, allocations: 15.94 kB / 0.7702 GB, free: 15.2 MB / 0.545 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.0005182/0.4633, allocations: 0.7085 MB / 0.7708 GB, free: 14.47 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002352/0.4635, allocations: 55.97 kB / 0.7709 GB, free: 14.41 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.4636, allocations: 0 / 0.7709 GB, free: 14.41 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001104/0.4637, allocations: 23.98 kB / 0.7709 GB, free: 14.39 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002265/0.4639, allocations: 11.92 kB / 0.7709 GB, free: 14.38 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003936/0.4643, allocations: 155.2 kB / 0.7711 GB, free: 14.19 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002223/0.4645, allocations: 0.6808 MB / 0.7717 GB, free: 13.48 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 2.612e-05/0.4646, allocations: 0 / 0.7717 GB, free: 13.48 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.435e-05/0.4646, allocations: 15.44 kB / 0.7718 GB, free: 13.46 MB / 0.545 GB Notification: Performance of SimCode: time 2.4e-07/0.4646, allocations: 0 / 0.7718 GB, free: 13.46 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01643/0.481, allocations: 1.464 MB / 0.7732 GB, free: 12.11 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.967/7.448, allocations: 10.52 kB / 0.7732 GB, free: 12.1 MB / 0.545 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.PowerLinearized.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.PowerLinearized.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.PowerLinearized.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.PowerLinearized.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_PowerLinearized_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_PowerLinearized.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.PowerLinearized.pipe 2>&1)