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.0009905/0.0009906, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001007/0.001007, allocations: 192.5 kB / 16.25 MB, free: 6.621 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.242/1.242, allocations: 222.9 MB / 239.9 MB, free: 4.512 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.9095/0.9095, allocations: 143 MB / 433.1 MB, free: 11.54 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001132/0.001132, allocations: 59.89 kB / 0.5138 GB, free: 11.96 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1339/0.1351, allocations: 82.04 MB / 0.5939 GB, free: 9.898 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002734/0.1378, allocations: 2.006 MB / 0.5959 GB, free: 7.871 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0009569/0.1388, allocations: 0.6935 MB / 0.5965 GB, free: 7.172 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.423e-05/0.1389, allocations: 8 kB / 0.5965 GB, free: 7.164 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001842/0.1391, allocations: 75.75 kB / 0.5966 GB, free: 7.09 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001067/0.1392, allocations: 75.7 kB / 0.5967 GB, free: 7.016 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004619/0.1397, allocations: 177.7 kB / 0.5969 GB, free: 6.844 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002506/0.14, allocations: 263.4 kB / 0.5971 GB, free: 6.586 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001411/0.1401, allocations: 76.61 kB / 0.5972 GB, free: 6.512 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001122/0.1402, allocations: 111.7 kB / 0.5973 GB, free: 6.402 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001699/0.1404, allocations: 155.5 kB / 0.5974 GB, free: 6.25 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.011e-05/0.1404, allocations: 24 kB / 0.5975 GB, free: 6.227 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001236/0.1406, allocations: 87.94 kB / 0.5975 GB, free: 6.141 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 6.607e-05/0.1406, allocations: 63.81 kB / 0.5976 GB, free: 6.078 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 8.699e-05/0.1407, allocations: 107.3 kB / 0.5977 GB, free: 5.973 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.000286/0.141, allocations: 311 kB / 0.598 GB, free: 5.668 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.141, allocations: 0 / 0.598 GB, free: 5.668 MB / 0.4981 GB Notification: Performance of FrontEnd: time 7.01e-07/0.141, allocations: 3.938 kB / 0.598 GB, free: 5.664 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.605e-06/0.1411, allocations: 0 / 0.598 GB, free: 5.664 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.0006946/0.1418, allocations: 0.5808 MB / 0.5986 GB, free: 5.031 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.067e-05/0.1418, allocations: 8.031 kB / 0.5986 GB, free: 5.023 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.525e-05/0.1418, allocations: 46.73 kB / 0.5986 GB, free: 4.969 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.528e-05/0.1419, allocations: 36.56 kB / 0.5987 GB, free: 4.934 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003581/0.1423, allocations: 294.8 kB / 0.5989 GB, free: 4.605 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.861e-05/0.1423, allocations: 16.38 kB / 0.599 GB, free: 4.59 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.095e-05/0.1423, allocations: 12.38 kB / 0.599 GB, free: 4.578 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003394/0.1427, allocations: 227.6 kB / 0.5992 GB, free: 4.332 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.404e-06/0.1427, allocations: 0 / 0.5992 GB, free: 4.332 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.707e-05/0.1427, allocations: 4 kB / 0.5992 GB, free: 4.328 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.08e-06/0.1427, allocations: 4 kB / 0.5992 GB, free: 4.324 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002245/0.1429, allocations: 136.3 kB / 0.5993 GB, free: 4.191 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006948/0.1437, allocations: 0.6847 MB / 0.6 GB, free: 3.449 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003141/0.144, allocations: 170.6 kB / 0.6002 GB, free: 3.273 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000143/0.1441, allocations: 92.83 kB / 0.6002 GB, free: 3.18 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.137e-05/0.1442, allocations: 8 kB / 0.6003 GB, free: 3.172 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002484/0.1444, allocations: 165 kB / 0.6004 GB, free: 2.992 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=15): time 1.603e-06/0.1444, allocations: 0 / 0.6004 GB, free: 2.992 MB / 0.4981 GB Notification: Performance of matching and sorting (n=15): time 0.0005874/0.145, allocations: 374.9 kB / 0.6008 GB, free: 2.613 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.923e-05/0.1451, allocations: 132.5 kB / 0.6009 GB, free: 2.453 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002276/0.1453, allocations: 286.6 kB / 0.6012 GB, free: 2.168 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.44e-05/0.1453, allocations: 29.7 kB / 0.6012 GB, free: 2.133 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 9.346e-05/0.1454, allocations: 172.1 kB / 0.6014 GB, free: 1.961 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.273e-05/0.1455, allocations: 35.45 kB / 0.6014 GB, free: 1.926 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.357e-05/0.1455, allocations: 37.72 kB / 0.6014 GB, free: 1.883 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001014/0.1457, allocations: 342.8 kB / 0.6018 GB, free: 1.539 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001476/0.1458, allocations: 83.95 kB / 0.6018 GB, free: 1.457 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001614/0.146, allocations: 133.1 kB / 0.602 GB, free: 1.309 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002803/0.1463, allocations: 238.7 kB / 0.6022 GB, free: 1.051 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.1463, allocations: 4.031 kB / 0.6022 GB, free: 1.047 MB / 0.4981 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004322/0.1467, allocations: 338.8 kB / 0.6025 GB, free: 0.7031 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.908e-05/0.1467, allocations: 33.7 kB / 0.6026 GB, free: 0.6641 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.877e-06/0.1468, allocations: 0 / 0.6026 GB, free: 0.6641 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.165e-05/0.1468, allocations: 4 kB / 0.6026 GB, free: 0.6602 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001047/0.1469, allocations: 20.08 kB / 0.6026 GB, free: 0.6406 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.2e-06/0.1469, allocations: 3.938 kB / 0.6026 GB, free: 0.6367 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001055/0.147, allocations: 31.92 kB / 0.6026 GB, free: 0.6055 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.037e-05/0.147, allocations: 8 kB / 0.6026 GB, free: 0.5977 MB / 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.000142/0.1472, allocations: 192 kB / 0.6028 GB, free: 404 kB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.989e-05/0.1472, allocations: 31.62 kB / 0.6028 GB, free: 372 kB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.87e-05/0.1473, allocations: 29.83 kB / 0.6029 GB, free: 340 kB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.333e-06/0.1473, allocations: 0 / 0.6029 GB, free: 340 kB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.1473, allocations: 0 / 0.6029 GB, free: 340 kB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.495e-06/0.1473, allocations: 0 / 0.6029 GB, free: 340 kB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2273/0.3746, allocations: 302.2 kB / 0.6031 GB, free: 44.17 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.521e-06/0.3746, allocations: 0 / 0.6031 GB, free: 44.17 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001465/0.3748, allocations: 14.25 kB / 0.6032 GB, free: 44.17 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.638e-06/0.3748, allocations: 2.031 kB / 0.6032 GB, free: 44.17 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.264e-05/0.3748, allocations: 6.562 kB / 0.6032 GB, free: 44.17 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.3748, allocations: 1.688 kB / 0.6032 GB, free: 44.17 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.3748, allocations: 2.25 kB / 0.6032 GB, free: 44.17 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006374/0.3755, allocations: 472.3 kB / 0.6036 GB, free: 44.07 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.995e-05/0.3755, allocations: 97.84 kB / 0.6037 GB, free: 43.98 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.937e-05/0.3756, allocations: 9.531 kB / 0.6037 GB, free: 43.98 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.564e-05/0.3757, allocations: 12.66 kB / 0.6037 GB, free: 43.98 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.476e-05/0.3757, allocations: 27.31 kB / 0.6038 GB, free: 43.98 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.019e-05/0.3758, allocations: 2.875 kB / 0.6038 GB, free: 43.98 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001374/0.3759, allocations: 207.2 kB / 0.604 GB, free: 43.91 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3759, allocations: 0 / 0.604 GB, free: 43.91 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002628/0.3762, allocations: 58.69 kB / 0.604 GB, free: 43.91 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.0007229/0.3769, allocations: 1.026 MB / 0.605 GB, free: 43.29 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003656/0.3773, allocations: 296.5 kB / 0.6053 GB, free: 43.22 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.3773, allocations: 0 / 0.6053 GB, free: 43.22 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001654/0.3775, allocations: 187 kB / 0.6055 GB, free: 43.16 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002708/0.3778, allocations: 32.88 kB / 0.6055 GB, free: 43.16 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002504/0.3803, allocations: 2.836 MB / 0.6083 GB, free: 41.8 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001316/0.3804, allocations: 0.747 MB / 0.609 GB, free: 41.1 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 7.417e-05/0.3805, allocations: 20.45 kB / 0.609 GB, free: 41.1 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.847e-05/0.3806, allocations: 75.83 kB / 0.6091 GB, free: 41.09 MB / 0.4981 GB Notification: Performance of SimCode: time 2.41e-07/0.3806, allocations: 1.312 kB / 0.6091 GB, free: 41.09 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.404/2.785, allocations: 5.122 MB / 0.6141 GB, free: 40.74 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001651/2.785, allocations: 208.9 kB / 0.6143 GB, free: 40.49 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.781/5.566, allocations: 4 kB / 0.6143 GB, free: 40.49 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)