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.004983/0.004983, allocations: 102.7 kB / 15.73 MB, free: 6.031 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.001137/0.001137, allocations: 190.1 kB / 16.67 MB, free: 5.953 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.258/1.258, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002081/0.002081, allocations: 294.2 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8854/0.8854, allocations: 169.3 MB / 0.4983 GB, free: 4.434 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001903/0.001903, allocations: 95.86 kB / 0.681 GB, free: 7.473 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4387/0.4406, allocations: 86.98 MB / 0.7659 GB, free: 4.004 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.PowerLinearized): time 0.002566/0.4432, allocations: 1.441 MB / 0.7673 GB, free: 2.551 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0002947/0.4435, allocations: 84.66 kB / 0.7674 GB, free: 2.465 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.668e-05/0.4436, allocations: 0 / 0.7674 GB, free: 2.465 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 2.694e-05/0.4436, allocations: 3.938 kB / 0.7674 GB, free: 2.461 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 4.241e-05/0.4437, allocations: 7.938 kB / 0.7674 GB, free: 2.453 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001944/0.4439, allocations: 15.98 kB / 0.7674 GB, free: 2.438 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 7.286e-05/0.444, allocations: 35.84 kB / 0.7675 GB, free: 2.402 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 9.661e-05/0.4441, allocations: 10.8 kB / 0.7675 GB, free: 2.395 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 3.895e-05/0.4441, allocations: 4 kB / 0.7675 GB, free: 2.391 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 4.067e-05/0.4442, allocations: 15.92 kB / 0.7675 GB, free: 2.375 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.478e-05/0.4442, allocations: 4 kB / 0.7675 GB, free: 2.371 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 5.86e-05/0.4442, allocations: 15.98 kB / 0.7675 GB, free: 2.355 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.636e-05/0.4443, allocations: 7.938 kB / 0.7675 GB, free: 2.348 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.613e-05/0.4443, allocations: 15.94 kB / 0.7675 GB, free: 2.332 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.000108/0.4444, allocations: 31.88 kB / 0.7676 GB, free: 2.301 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.4444, allocations: 0 / 0.7676 GB, free: 2.301 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.182e-06/0.4444, allocations: 0 / 0.7676 GB, free: 2.301 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.21e-06/0.4444, allocations: 0 / 0.7676 GB, free: 2.301 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.0004485/0.4449, allocations: 343.4 kB / 0.7679 GB, free: 1.914 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.7e-05/0.4449, allocations: 15.91 kB / 0.7679 GB, free: 1.898 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.407e-05/0.445, allocations: 34.75 kB / 0.7679 GB, free: 1.855 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001573/0.4451, allocations: 16.92 kB / 0.7679 GB, free: 1.84 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001316/0.4453, allocations: 172.3 kB / 0.7681 GB, free: 1.633 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.944e-05/0.4453, allocations: 384 / 0.7681 GB, free: 1.633 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.198e-05/0.4453, allocations: 384 / 0.7681 GB, free: 1.633 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001743/0.4455, allocations: 54.23 kB / 0.7682 GB, free: 1.574 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.396e-06/0.4455, allocations: 3.938 kB / 0.7682 GB, free: 1.57 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.317e-06/0.4455, allocations: 0 / 0.7682 GB, free: 1.57 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.4455, allocations: 4 kB / 0.7682 GB, free: 1.566 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001969/0.4457, allocations: 51.94 kB / 0.7682 GB, free: 1.516 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003832/0.4461, allocations: 264.8 kB / 0.7685 GB, free: 1.207 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001626/0.4463, allocations: 58.52 kB / 0.7685 GB, free: 1.141 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.856e-05/0.4464, allocations: 28.91 kB / 0.7686 GB, free: 1.109 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 1.269e-05/0.4464, allocations: 0 / 0.7686 GB, free: 1.109 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.467e-05/0.4465, allocations: 34.56 kB / 0.7686 GB, free: 1.066 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=2): time 9.62e-07/0.4465, allocations: 0 / 0.7686 GB, free: 1.066 MB / 0.5294 GB Notification: Performance of matching and sorting (n=2): time 0.0004029/0.4469, allocations: 105.7 kB / 0.7687 GB, free: 0.957 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.252e-05/0.4469, allocations: 55.41 kB / 0.7687 GB, free: 0.8906 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.087e-05/0.447, allocations: 101.9 kB / 0.7688 GB, free: 0.7812 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.489e-05/0.447, allocations: 25.7 kB / 0.7689 GB, free: 0.75 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 5.015e-05/0.4471, allocations: 96.03 kB / 0.769 GB, free: 0.6523 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 1.524e-05/0.4471, allocations: 0 / 0.769 GB, free: 0.6523 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.3e-05/0.4471, allocations: 13.72 kB / 0.769 GB, free: 0.6328 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001148/0.4473, allocations: 310.8 kB / 0.7693 GB, free: 328 kB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001002/0.4474, allocations: 28.22 kB / 0.7693 GB, free: 300 kB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.715e-05/0.4475, allocations: 27.97 kB / 0.7693 GB, free: 272 kB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001806/0.4477, allocations: 52.81 kB / 0.7694 GB, free: 216 kB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/0.4477, allocations: 3.938 kB / 0.7694 GB, free: 212 kB / 0.5294 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000223/0.4479, allocations: 89.56 kB / 0.7695 GB, free: 116 kB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.268e-05/0.4479, allocations: 4 kB / 0.7695 GB, free: 112 kB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.4479, allocations: 0 / 0.7695 GB, free: 112 kB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.632e-05/0.448, allocations: 0 / 0.7695 GB, free: 112 kB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001053/0.4481, allocations: 11.98 kB / 0.7695 GB, free: 100 kB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.23e-06/0.4481, allocations: 0 / 0.7695 GB, free: 100 kB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.233e-05/0.4481, allocations: 11.92 kB / 0.7695 GB, free: 88 kB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.67e-06/0.4482, allocations: 7.969 kB / 0.7695 GB, free: 80 kB / 0.5294 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 9.161e-05/0.4483, allocations: 113.8 kB / 0.7696 GB, free: 15.96 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.977e-05/0.4483, allocations: 8 kB / 0.7696 GB, free: 15.95 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.007e-05/0.4483, allocations: 7.516 kB / 0.7696 GB, free: 15.94 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.953e-06/0.4483, allocations: 0 / 0.7696 GB, free: 15.94 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.087e-06/0.4483, allocations: 0 / 0.7696 GB, free: 15.94 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.4483, allocations: 0 / 0.7696 GB, free: 15.94 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000171/0.4485, allocations: 165.6 kB / 0.7698 GB, free: 15.73 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.4485, allocations: 0 / 0.7698 GB, free: 15.73 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.445e-05/0.4486, allocations: 19.98 kB / 0.7698 GB, free: 15.71 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/0.4486, allocations: 0 / 0.7698 GB, free: 15.71 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.566e-06/0.4486, allocations: 0 / 0.7698 GB, free: 15.71 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.929e-06/0.4487, allocations: 3.938 kB / 0.7698 GB, free: 15.71 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.4487, allocations: 0 / 0.7698 GB, free: 15.71 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002834/0.4489, allocations: 179.3 kB / 0.77 GB, free: 15.52 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.728e-05/0.449, allocations: 81.14 kB / 0.77 GB, free: 15.42 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.414e-05/0.449, allocations: 4 kB / 0.7701 GB, free: 15.41 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.614e-05/0.4491, allocations: 7.984 kB / 0.7701 GB, free: 15.41 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.821e-05/0.4492, allocations: 0 / 0.7701 GB, free: 15.41 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.847e-06/0.4492, allocations: 0 / 0.7701 GB, free: 15.41 MB / 0.545 GB Notification: Performance of sorting global known variables: time 4.403e-05/0.4492, allocations: 87.27 kB / 0.7701 GB, free: 15.32 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.6e-07/0.4492, allocations: 4 kB / 0.7701 GB, free: 15.32 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002194/0.4494, allocations: 7.938 kB / 0.7702 GB, free: 15.31 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.0006085/0.4501, allocations: 0.7124 MB / 0.7708 GB, free: 14.57 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002415/0.4503, allocations: 51.98 kB / 0.7709 GB, free: 14.52 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.4503, allocations: 0 / 0.7709 GB, free: 14.52 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 9.981e-05/0.4504, allocations: 27.97 kB / 0.7709 GB, free: 14.49 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002983/0.4507, allocations: 6.938 kB / 0.7709 GB, free: 14.49 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000504/0.4512, allocations: 155.1 kB / 0.7711 GB, free: 14.3 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002695/0.4515, allocations: 0.6808 MB / 0.7717 GB, free: 13.59 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 2.927e-05/0.4516, allocations: 0 / 0.7717 GB, free: 13.59 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.283e-05/0.4516, allocations: 19.42 kB / 0.7718 GB, free: 13.57 MB / 0.545 GB Notification: Performance of SimCode: time 2.4e-07/0.4516, allocations: 0 / 0.7718 GB, free: 13.57 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01849/0.4701, allocations: 1.491 MB / 0.7732 GB, free: 12.18 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.009/7.48, allocations: 3.438 kB / 0.7732 GB, free: 12.18 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)