Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_8_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_8_Buildings_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.001333/0.001332, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001469/0.001469, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.718/1.718, allocations: 205.4 MB / 222.1 MB, free: 5.672 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.833/1.833, allocations: 292.6 MB / 0.5497 GB, free: 14.62 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005552/0.0005554, allocations: 11.94 kB / 0.6737 GB, free: 26.23 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3942/0.3948, allocations: 116.3 MB / 0.7872 GB, free: 11.88 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.004893/0.3998, allocations: 1.624 MB / 0.7888 GB, free: 10.24 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002516/0.4024, allocations: 0.6909 MB / 0.7895 GB, free: 9.539 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001948/0.4027, allocations: 7.938 kB / 0.7895 GB, free: 9.531 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0003309/0.403, allocations: 75.77 kB / 0.7896 GB, free: 9.457 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0002876/0.4033, allocations: 79.84 kB / 0.7896 GB, free: 9.379 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.001044/0.4044, allocations: 134.2 kB / 0.7898 GB, free: 9.25 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0005499/0.405, allocations: 155.7 kB / 0.7899 GB, free: 9.098 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002743/0.4053, allocations: 49.66 kB / 0.79 GB, free: 9.047 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002012/0.4055, allocations: 83.73 kB / 0.79 GB, free: 8.965 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002959/0.4058, allocations: 119.5 kB / 0.7902 GB, free: 8.848 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.901e-05/0.4059, allocations: 8 kB / 0.7902 GB, free: 8.84 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002089/0.4061, allocations: 59.94 kB / 0.7902 GB, free: 8.781 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 9.375e-05/0.4062, allocations: 39.84 kB / 0.7903 GB, free: 8.742 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 9.865e-05/0.4063, allocations: 61.58 kB / 0.7903 GB, free: 8.676 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0006815/0.407, allocations: 211.6 kB / 0.7905 GB, free: 8.469 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.407, allocations: 0 / 0.7905 GB, free: 8.469 MB / 0.6075 GB Notification: Performance of FrontEnd: time 6.412e-06/0.407, allocations: 3.984 kB / 0.7905 GB, free: 8.465 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 9.518e-06/0.4071, allocations: 4 kB / 0.7905 GB, free: 8.461 MB / 0.6075 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.001415/0.4085, allocations: 0.5545 MB / 0.7911 GB, free: 7.852 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 7.928e-05/0.4086, allocations: 15.97 kB / 0.7911 GB, free: 7.836 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001169/0.4087, allocations: 50.55 kB / 0.7911 GB, free: 7.777 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001158/0.4088, allocations: 31.62 kB / 0.7912 GB, free: 7.746 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000867/0.4097, allocations: 289.6 kB / 0.7914 GB, free: 7.422 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.272e-05/0.4098, allocations: 12 kB / 0.7915 GB, free: 7.41 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.803e-05/0.4099, allocations: 16 kB / 0.7915 GB, free: 7.395 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006986/0.4106, allocations: 223.2 kB / 0.7917 GB, free: 7.156 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.749e-05/0.4107, allocations: 3.938 kB / 0.7917 GB, free: 7.152 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.47e-05/0.4107, allocations: 8 kB / 0.7917 GB, free: 7.145 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.217e-05/0.4107, allocations: 8 kB / 0.7917 GB, free: 7.137 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004387/0.4112, allocations: 128.4 kB / 0.7918 GB, free: 7.012 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001348/0.4125, allocations: 0.6962 MB / 0.7925 GB, free: 6.258 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005916/0.4132, allocations: 174.5 kB / 0.7927 GB, free: 6.078 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.976e-05/0.4132, allocations: 4 kB / 0.7927 GB, free: 6.074 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005569/0.4138, allocations: 177.2 kB / 0.7928 GB, free: 5.883 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=15): time 3.035e-06/0.4138, allocations: 0 / 0.7928 GB, free: 5.883 MB / 0.6075 GB Notification: Performance of matching and sorting (n=15): time 0.001195/0.415, allocations: 452.1 kB / 0.7933 GB, free: 5.41 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002734/0.4153, allocations: 140.5 kB / 0.7934 GB, free: 5.242 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000532/0.4158, allocations: 290.6 kB / 0.7937 GB, free: 4.949 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 5.131e-05/0.4159, allocations: 37.64 kB / 0.7937 GB, free: 4.906 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.000209/0.4161, allocations: 156.3 kB / 0.7939 GB, free: 4.75 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 6.638e-05/0.4162, allocations: 43.36 kB / 0.7939 GB, free: 4.707 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.538e-05/0.4162, allocations: 0 / 0.7939 GB, free: 4.707 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0002028/0.4164, allocations: 342.8 kB / 0.7942 GB, free: 4.363 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002565/0.4167, allocations: 88.14 kB / 0.7943 GB, free: 4.277 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002915/0.417, allocations: 140.2 kB / 0.7945 GB, free: 4.125 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002705/0.4173, allocations: 117.7 kB / 0.7946 GB, free: 4.004 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.4173, allocations: 0 / 0.7946 GB, free: 4.004 MB / 0.6075 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0007798/0.4181, allocations: 341.2 kB / 0.7949 GB, free: 3.66 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 7.135e-05/0.4182, allocations: 37.7 kB / 0.7949 GB, free: 3.617 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.355e-05/0.4182, allocations: 4 kB / 0.7949 GB, free: 3.613 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.116e-05/0.4182, allocations: 4.094 kB / 0.7949 GB, free: 3.609 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002245/0.4185, allocations: 23.98 kB / 0.795 GB, free: 3.586 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.538e-06/0.4185, allocations: 0 / 0.795 GB, free: 3.586 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001999/0.4187, allocations: 31.83 kB / 0.795 GB, free: 3.555 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.648e-05/0.4187, allocations: 4 kB / 0.795 GB, free: 3.551 MB / 0.6075 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 ($whenCondition1,$PRE.mot.uppHys.y,mot.uppHys.y,$PRE.mot.lowHys.y,mot.lowHys.y,ySet.a,ySet.b,ySet.last,$PRE.ySet.nextEvent,ySet.nextEvent,ySet.nextEventScaled,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003061/0.419, allocations: 199.4 kB / 0.7952 GB, free: 3.34 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.782e-05/0.4191, allocations: 23.72 kB / 0.7952 GB, free: 3.316 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.606e-05/0.4192, allocations: 33.83 kB / 0.7952 GB, free: 3.285 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.416e-06/0.4193, allocations: 3.984 kB / 0.7952 GB, free: 3.281 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.047e-06/0.4193, allocations: 0 / 0.7952 GB, free: 3.281 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.4193, allocations: 0 / 0.7952 GB, free: 3.281 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005672/0.4199, allocations: 289.4 kB / 0.7955 GB, free: 2.949 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.157e-06/0.4199, allocations: 7.953 kB / 0.7955 GB, free: 2.941 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001984/0.4201, allocations: 15.98 kB / 0.7955 GB, free: 2.926 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.861e-06/0.4201, allocations: 0 / 0.7955 GB, free: 2.926 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.592e-05/0.4202, allocations: 12 kB / 0.7956 GB, free: 2.914 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.396e-06/0.4202, allocations: 0 / 0.7956 GB, free: 2.914 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.089e-05/0.4202, allocations: 7.922 kB / 0.7956 GB, free: 2.906 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001723/0.422, allocations: 473.4 kB / 0.796 GB, free: 2.422 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001468/0.4221, allocations: 104.8 kB / 0.7961 GB, free: 2.301 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.33e-05/0.4222, allocations: 8 kB / 0.7961 GB, free: 2.293 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002335/0.4225, allocations: 15.98 kB / 0.7961 GB, free: 2.277 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001656/0.4227, allocations: 27.94 kB / 0.7962 GB, free: 2.25 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.041e-05/0.4227, allocations: 4 kB / 0.7962 GB, free: 2.246 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0003994/0.4231, allocations: 209.9 kB / 0.7964 GB, free: 2.039 MB / 0.6075 GB Notification: Performance of sort global known variables: time 4.11e-07/0.4232, allocations: 4 kB / 0.7964 GB, free: 2.035 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0006036/0.4238, allocations: 63.97 kB / 0.7964 GB, free: 1.973 MB / 0.6075 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 (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.002221/0.426, allocations: 1.029 MB / 0.7974 GB, free: 0.9102 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001027/0.4271, allocations: 311.3 kB / 0.7977 GB, free: 0.5938 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 5.62e-06/0.4271, allocations: 0 / 0.7977 GB, free: 0.5938 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0004823/0.4276, allocations: 187.4 kB / 0.7979 GB, free: 408 kB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005922/0.4282, allocations: 24.55 kB / 0.7979 GB, free: 384 kB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00549/0.4337, allocations: 2.076 MB / 0.8 GB, free: 14.23 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005992/0.4344, allocations: 0.7594 MB / 0.8007 GB, free: 13.45 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001633/0.4346, allocations: 17.55 kB / 0.8007 GB, free: 13.43 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001662/0.4348, allocations: 75.34 kB / 0.8008 GB, free: 13.36 MB / 0.6231 GB Notification: Performance of SimCode: time 1.613e-06/0.4348, allocations: 0 / 0.8008 GB, free: 13.36 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09157/0.5264, allocations: 4.851 MB / 0.8055 GB, free: 8.645 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004225/0.5269, allocations: 196.5 kB / 0.8057 GB, free: 8.395 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.892/2.419, allocations: 0 / 0.8057 GB, free: 8.395 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > Buildings_8_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) Environment - environmentSimulation: