Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.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/BuildSysPro 3.6.0/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/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(BuildSysPro.IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_Actuators_Motors_Examples_IdealMotor",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.00112/0.00112, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001077/0.001077, allocations: 195.3 kB / 16.53 MB, free: 6.664 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.15/1.15, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/Building/BuildingEnvelope/HeatTransfer/package.mo:2:1-40:17:writable] Warning: Soil_case_nappe was referenced in the package.order file, but was not found in package.mo, Soil_case_nappe/package.mo or Soil_case_nappe.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/package.mo): time 0.8373/0.8373, allocations: 143 MB / 433.4 MB, free: 11.62 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001086/0.001086, allocations: 67.89 kB / 0.5143 GB, free: 11.57 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1194/0.1205, allocations: 82.03 MB / 0.5944 GB, free: 9.492 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002616/0.1231, allocations: 1.949 MB / 0.5963 GB, free: 7.523 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001008/0.1241, allocations: 0.7012 MB / 0.597 GB, free: 6.816 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.141e-05/0.1242, allocations: 3.938 kB / 0.597 GB, free: 6.812 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001776/0.1244, allocations: 87.62 kB / 0.5971 GB, free: 6.727 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001053/0.1245, allocations: 87.64 kB / 0.5971 GB, free: 6.641 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004721/0.125, allocations: 186.3 kB / 0.5973 GB, free: 6.461 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.000255/0.1253, allocations: 263.5 kB / 0.5976 GB, free: 6.203 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001406/0.1254, allocations: 74.09 kB / 0.5976 GB, free: 6.129 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001175/0.1255, allocations: 115.7 kB / 0.5978 GB, free: 6.016 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001625/0.1257, allocations: 147.5 kB / 0.5979 GB, free: 5.871 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.381e-05/0.1258, allocations: 20 kB / 0.5979 GB, free: 5.852 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001235/0.1259, allocations: 99.86 kB / 0.598 GB, free: 5.754 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 6.4e-05/0.126, allocations: 55.83 kB / 0.5981 GB, free: 5.699 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 9.77e-05/0.1261, allocations: 111.3 kB / 0.5982 GB, free: 5.59 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002795/0.1263, allocations: 299.1 kB / 0.5985 GB, free: 5.297 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.1264, allocations: 4 kB / 0.5985 GB, free: 5.293 MB / 0.4981 GB Notification: Performance of FrontEnd: time 6.52e-07/0.1264, allocations: 7.938 kB / 0.5985 GB, free: 5.285 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.714e-06/0.1264, allocations: 3.938 kB / 0.5985 GB, free: 5.281 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0007102/0.1271, allocations: 0.5764 MB / 0.599 GB, free: 4.652 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 2.828e-05/0.1271, allocations: 12.03 kB / 0.599 GB, free: 4.641 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.137e-05/0.1272, allocations: 46.73 kB / 0.5991 GB, free: 4.586 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.789e-05/0.1272, allocations: 28.56 kB / 0.5991 GB, free: 4.559 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003618/0.1276, allocations: 298.8 kB / 0.5994 GB, free: 4.227 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.941e-05/0.1276, allocations: 12.38 kB / 0.5994 GB, free: 4.215 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.139e-05/0.1277, allocations: 20.31 kB / 0.5994 GB, free: 4.195 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003214/0.128, allocations: 223.7 kB / 0.5996 GB, free: 3.953 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.094e-06/0.128, allocations: 0 / 0.5996 GB, free: 3.953 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.618e-05/0.128, allocations: 4 kB / 0.5997 GB, free: 3.949 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.484e-06/0.128, allocations: 7.984 kB / 0.5997 GB, free: 3.941 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002253/0.1283, allocations: 132.3 kB / 0.5998 GB, free: 3.812 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006915/0.129, allocations: 0.6846 MB / 0.6005 GB, free: 3.07 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000311/0.1293, allocations: 166.6 kB / 0.6006 GB, free: 2.898 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001425/0.1294, allocations: 100.8 kB / 0.6007 GB, free: 2.797 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.209e-05/0.1295, allocations: 0 / 0.6007 GB, free: 2.797 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002494/0.1297, allocations: 177.1 kB / 0.6009 GB, free: 2.605 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=15): time 1.372e-06/0.1297, allocations: 0 / 0.6009 GB, free: 2.605 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15): time 0.0005669/0.1303, allocations: 369.3 kB / 0.6012 GB, free: 2.234 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.604e-05/0.1304, allocations: 140.5 kB / 0.6014 GB, free: 2.066 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002203/0.1306, allocations: 274.7 kB / 0.6016 GB, free: 1.793 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.466e-05/0.1306, allocations: 37.69 kB / 0.6017 GB, free: 1.75 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 9.225e-05/0.1307, allocations: 160.1 kB / 0.6018 GB, free: 1.59 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.404e-05/0.1308, allocations: 47.45 kB / 0.6019 GB, free: 1.543 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.818e-05/0.1308, allocations: 41.7 kB / 0.6019 GB, free: 1.496 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001004/0.1309, allocations: 342.7 kB / 0.6022 GB, free: 1.152 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000145/0.1311, allocations: 79.97 kB / 0.6023 GB, free: 1.074 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001696/0.1313, allocations: 140.1 kB / 0.6024 GB, free: 0.9219 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002834/0.1316, allocations: 238.7 kB / 0.6027 GB, free: 0.6641 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.1316, allocations: 0 / 0.6027 GB, free: 0.6641 MB / 0.4981 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004293/0.132, allocations: 337.5 kB / 0.603 GB, free: 332 kB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.833e-05/0.132, allocations: 37.7 kB / 0.603 GB, free: 288 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.132, allocations: 4 kB / 0.603 GB, free: 284 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.788e-06/0.1321, allocations: 0 / 0.603 GB, free: 284 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001072/0.1322, allocations: 27.92 kB / 0.6031 GB, free: 256 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.759e-06/0.1322, allocations: 0 / 0.6031 GB, free: 256 kB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001082/0.1323, allocations: 27.83 kB / 0.6031 GB, free: 228 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.405e-05/0.1323, allocations: 8.078 kB / 0.6031 GB, free: 220 kB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 12 (ySet.nextEventScaled,ySet.nextEvent,$PRE.ySet.nextEvent,ySet.last,ySet.b,ySet.a,mot.lowHys.y,$PRE.mot.lowHys.y,mot.uppHys.y,$PRE.mot.uppHys.y,$whenCondition1,mot.int.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 1 * 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 0.000138/0.1325, allocations: 196.1 kB / 0.6033 GB, free: 8 kB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.1911/0.3236, allocations: 25.92 kB / 0.6033 GB, free: 45.07 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.605e-05/0.3237, allocations: 28.77 kB / 0.6033 GB, free: 45.07 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.987e-06/0.3237, allocations: 0.9062 kB / 0.6033 GB, free: 45.07 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.3237, allocations: 2.141 kB / 0.6033 GB, free: 45.07 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.3237, allocations: 3.406 kB / 0.6033 GB, free: 45.07 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002148/0.3239, allocations: 286.2 kB / 0.6036 GB, free: 44.88 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.324, allocations: 0 / 0.6036 GB, free: 44.88 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001194/0.3241, allocations: 19 kB / 0.6036 GB, free: 44.88 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.427e-06/0.3241, allocations: 2.844 kB / 0.6036 GB, free: 44.88 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.845e-05/0.3241, allocations: 6.594 kB / 0.6036 GB, free: 44.88 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.3241, allocations: 0.625 kB / 0.6036 GB, free: 44.88 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.3241, allocations: 0.6562 kB / 0.6036 GB, free: 44.88 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005626/0.3247, allocations: 474.6 kB / 0.6041 GB, free: 44.79 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.558e-05/0.3247, allocations: 103.3 kB / 0.6042 GB, free: 44.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.771e-05/0.3248, allocations: 8.406 kB / 0.6042 GB, free: 44.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.54e-05/0.3249, allocations: 15.84 kB / 0.6042 GB, free: 44.7 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.307e-05/0.325, allocations: 22.48 kB / 0.6042 GB, free: 44.7 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.838e-05/0.325, allocations: 5.094 kB / 0.6042 GB, free: 44.7 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001241/0.3251, allocations: 203.9 kB / 0.6044 GB, free: 44.62 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3251, allocations: 0.8125 kB / 0.6044 GB, free: 44.62 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002555/0.3254, allocations: 59.14 kB / 0.6045 GB, free: 44.62 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (mot.int.y) * Number of discrete variables: 8 ($whenCondition1,mot.uppHys.y,mot.lowHys.y,ySet.a,ySet.b,ySet.last,ySet.nextEvent,ySet.nextEventScaled) * Number of discrete states: 8 (mot.lowHys.y,mot.uppHys.y,ySet.nextEvent,ySet.last,ySet.nextEventScaled,ySet.b,ySet.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 1 * 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.0007014/0.3261, allocations: 1.029 MB / 0.6055 GB, free: 44 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003663/0.3265, allocations: 305.7 kB / 0.6058 GB, free: 43.94 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.3265, allocations: 1.031 kB / 0.6058 GB, free: 43.94 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001581/0.3266, allocations: 184.1 kB / 0.606 GB, free: 43.88 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002529/0.3269, allocations: 34.27 kB / 0.606 GB, free: 43.88 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002381/0.3293, allocations: 2.768 MB / 0.6087 GB, free: 42.56 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001205/0.3294, allocations: 0.7552 MB / 0.6094 GB, free: 41.87 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 7.194e-05/0.3295, allocations: 17.58 kB / 0.6094 GB, free: 41.86 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.604e-05/0.3296, allocations: 79.73 kB / 0.6095 GB, free: 41.86 MB / 0.4981 GB Notification: Performance of SimCode: time 3.2e-07/0.3296, allocations: 0 / 0.6095 GB, free: 41.86 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01834/0.3479, allocations: 5.347 MB / 0.6147 GB, free: 41.36 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.247/6.595, allocations: 15.27 kB / 0.6148 GB, free: 41.35 MB / 0.4981 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.sim & python3 -m fmpy simulate --output-file BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor_res.csv --start-time 0 --stop-time 600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.24 BuildSysPro_BuildSysPro_IBPSA_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)