Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift.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.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_DXCoils_BaseClasses_Examples_SpeedShift",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_DXCoils_BaseClasses_Examples_SpeedShift",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.001038/0.001038, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001238/0.001238, allocations: 172.7 kB / 15.95 MB, free: 208 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.369/1.369, allocations: 223.2 MB / 240 MB, free: 5.441 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.31/2.31, allocations: 390.4 MB / 0.6655 GB, free: 2.926 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000315/0.0003151, allocations: 16 kB / 0.8149 GB, free: 14.09 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.611/0.6113, allocations: 142.3 MB / 0.9539 GB, free: 8.078 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift): time 0.001938/0.6133, allocations: 1.657 MB / 0.9555 GB, free: 6.77 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002407/0.6157, allocations: 2.271 MB / 0.9577 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001413/0.6159, allocations: 5.281 kB / 0.9577 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001071/0.617, allocations: 464 kB / 0.9582 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001291/0.6171, allocations: 53.66 kB / 0.9582 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006365/0.6178, allocations: 201 kB / 0.9584 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003352/0.6181, allocations: 280.6 kB / 0.9587 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001489/0.6183, allocations: 78.09 kB / 0.9587 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001504/0.6184, allocations: 106.6 kB / 0.9588 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001803/0.6186, allocations: 121.1 kB / 0.959 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.796e-05/0.6187, allocations: 7.344 kB / 0.959 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004297/0.6191, allocations: 280.7 kB / 0.9592 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.976e-05/0.6192, allocations: 89.89 kB / 0.9593 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.087e-05/0.6193, allocations: 119.7 kB / 0.9594 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0005413/0.6199, allocations: 0.593 MB / 0.96 GB, free: 3.566 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.6199, allocations: 0 / 0.96 GB, free: 3.566 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.322e-06/0.6199, allocations: 0 / 0.96 GB, free: 3.566 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.568e-05/0.6199, allocations: 0 / 0.96 GB, free: 3.566 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: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0008701/0.6208, allocations: 0.7768 MB / 0.9608 GB, free: 2.871 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.644e-05/0.6208, allocations: 12.38 kB / 0.9608 GB, free: 2.867 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.288e-05/0.6209, allocations: 42.06 kB / 0.9608 GB, free: 2.82 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.308e-05/0.6209, allocations: 64.77 kB / 0.9609 GB, free: 2.785 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003102/0.6213, allocations: 335.4 kB / 0.9612 GB, free: 2.477 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.605e-05/0.6213, allocations: 7.875 kB / 0.9612 GB, free: 2.473 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.964e-05/0.6213, allocations: 6.438 kB / 0.9612 GB, free: 2.473 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002048/0.6215, allocations: 131.7 kB / 0.9613 GB, free: 2.391 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.645e-06/0.6215, allocations: 4 kB / 0.9613 GB, free: 2.387 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.266e-05/0.6216, allocations: 1.938 kB / 0.9613 GB, free: 2.387 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.6216, allocations: 5.203 kB / 0.9613 GB, free: 2.383 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000146/0.6217, allocations: 94.27 kB / 0.9614 GB, free: 2.348 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006443/0.6224, allocations: 0.5455 MB / 0.962 GB, free: 1.891 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001407/0.6225, allocations: 110.4 kB / 0.9621 GB, free: 1.824 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.737e-05/0.6226, allocations: 56.8 kB / 0.9621 GB, free: 1.797 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.664e-05/0.6227, allocations: 9.016 kB / 0.9621 GB, free: 1.793 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001743/0.6228, allocations: 132.5 kB / 0.9623 GB, free: 1.68 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=11): time 1.643e-06/0.6228, allocations: 0 / 0.9623 GB, free: 1.68 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.0004254/0.6233, allocations: 300.7 kB / 0.9626 GB, free: 1.52 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.884e-05/0.6233, allocations: 80.14 kB / 0.9626 GB, free: 1.426 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008038/0.6241, allocations: 0.7581 MB / 0.9634 GB, free: 1.004 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.331e-05/0.6241, allocations: 30.77 kB / 0.9634 GB, free: 0.9688 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001807/0.6243, allocations: 277.4 kB / 0.9637 GB, free: 0.7305 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.377e-05/0.6244, allocations: 19.59 kB / 0.9637 GB, free: 0.7148 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.873e-06/0.6244, allocations: 1.125 kB / 0.9637 GB, free: 0.7148 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.488e-05/0.6244, allocations: 315.2 kB / 0.964 GB, free: 412 kB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.658e-05/0.6245, allocations: 47.53 kB / 0.964 GB, free: 392 kB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.834e-05/0.6245, allocations: 52.5 kB / 0.9641 GB, free: 368 kB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.078e-05/0.6246, allocations: 76.72 kB / 0.9642 GB, free: 316 kB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.6246, allocations: 3.938 kB / 0.9642 GB, free: 312 kB / 0.7169 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002561/0.6249, allocations: 264.7 kB / 0.9644 GB, free: 156 kB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.704e-05/0.6249, allocations: 36.22 kB / 0.9644 GB, free: 120 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.6249, allocations: 4.906 kB / 0.9644 GB, free: 116 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.102e-05/0.625, allocations: 0 / 0.9644 GB, free: 116 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.689e-05/0.625, allocations: 7.594 kB / 0.9645 GB, free: 116 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.599e-06/0.625, allocations: 0 / 0.9645 GB, free: 116 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000122/0.6252, allocations: 14.59 kB / 0.9645 GB, free: 108 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.901e-05/0.6252, allocations: 8.844 kB / 0.9645 GB, free: 104 kB / 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: 9 ($whenCondition1,speRat.a,speRat.b,speRat.last,$PRE.speRat.nextEvent,speRat.nextEvent,speRat.nextEventScaled,greaterThreshold.y,booleanToInteger.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003252/0.6255, allocations: 348 kB / 0.9648 GB, free: 15.84 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.226e-05/0.6256, allocations: 60.5 kB / 0.9649 GB, free: 15.8 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004279/0.626, allocations: 292.8 kB / 0.9651 GB, free: 15.63 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.626, allocations: 1.188 kB / 0.9651 GB, free: 15.63 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.6261, allocations: 0 / 0.9651 GB, free: 15.63 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.6261, allocations: 1.125 kB / 0.9651 GB, free: 15.63 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003687/0.6264, allocations: 372.7 kB / 0.9655 GB, free: 15.32 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.6264, allocations: 0.9375 kB / 0.9655 GB, free: 15.32 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.041e-05/0.6265, allocations: 9.406 kB / 0.9655 GB, free: 15.31 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.6265, allocations: 1.125 kB / 0.9655 GB, free: 15.31 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.748e-05/0.6265, allocations: 10.7 kB / 0.9655 GB, free: 15.3 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.6265, allocations: 160 / 0.9655 GB, free: 15.3 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.6265, allocations: 4.906 kB / 0.9655 GB, free: 15.3 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004244/0.627, allocations: 304.9 kB / 0.9658 GB, free: 15.11 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001477/0.6271, allocations: 136.8 kB / 0.966 GB, free: 14.98 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.706e-05/0.6272, allocations: 3.156 kB / 0.966 GB, free: 14.98 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001062/0.6273, allocations: 17.14 kB / 0.966 GB, free: 14.96 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.203e-05/0.6274, allocations: 6.938 kB / 0.966 GB, free: 14.96 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.536e-05/0.6274, allocations: 4.406 kB / 0.966 GB, free: 14.96 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0006882/0.6281, allocations: 0.5584 MB / 0.9665 GB, free: 14.64 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6281, allocations: 0.9375 kB / 0.9665 GB, free: 14.64 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004603/0.6286, allocations: 120.8 kB / 0.9666 GB, free: 14.62 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,speRat.a,speRat.b,speRat.last,speRat.nextEvent,speRat.nextEventScaled,greaterThreshold.y,booleanToInteger.y) * Number of discrete states: 6 (speRat.nextEvent,speRat.last,speRat.nextEventScaled,speRat.b,speRat.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009847/0.6295, allocations: 0.9308 MB / 0.9676 GB, free: 13.88 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002982/0.6299, allocations: 211.1 kB / 0.9678 GB, free: 13.74 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.6299, allocations: 5 kB / 0.9678 GB, free: 13.73 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001446/0.63, allocations: 143.8 kB / 0.9679 GB, free: 13.63 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005337/0.6306, allocations: 108.4 kB / 0.968 GB, free: 13.57 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004851/0.6354, allocations: 3.475 MB / 0.9714 GB, free: 11.54 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005455/0.636, allocations: 0.9573 MB / 0.9723 GB, free: 10.71 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001041/0.6361, allocations: 24.56 kB / 0.9723 GB, free: 10.69 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001791/0.6363, allocations: 150.4 kB / 0.9725 GB, free: 10.55 MB / 0.7325 GB Notification: Performance of SimCode: time 6.41e-07/0.6363, allocations: 0 / 0.9725 GB, free: 10.55 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02322/0.6595, allocations: 10.67 MB / 0.9829 GB, free: 2.125 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001596/0.6597, allocations: 212.6 kB / 0.9831 GB, free: 1.879 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.884/2.544, allocations: 3.938 kB / 0.9831 GB, free: 1.875 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatExchangers_DXCoils_BaseClasses_Examples_SpeedShift_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatExchangers_DXCoils_BaseClasses_Examples_SpeedShift.fmu > Buildings_9_Buildings.Fluid.HeatExchangers.DXCoils.BaseClasses.Examples.SpeedShift.pipe 2>&1)