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.0008827/0.0008828, 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.001185/0.001185, 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 3.2.3+maint.om/package.mo): time 1.733/1.733, allocations: 205.4 MB / 222.1 MB, free: 5.66 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.82/1.82, allocations: 292.7 MB / 0.5499 GB, free: 14.54 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.0005751/0.0005757, allocations: 13.09 kB / 0.6738 GB, free: 26.11 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2953/0.2959, allocations: 116.3 MB / 0.7874 GB, free: 11.86 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002597/0.2986, allocations: 1.62 MB / 0.789 GB, free: 10.22 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001549/0.3002, allocations: 0.7065 MB / 0.7897 GB, free: 9.508 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001935/0.3004, allocations: 3.938 kB / 0.7897 GB, free: 9.504 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0002685/0.3007, allocations: 71.77 kB / 0.7897 GB, free: 9.434 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001588/0.3008, allocations: 83.7 kB / 0.7898 GB, free: 9.352 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006866/0.3015, allocations: 137.6 kB / 0.79 GB, free: 9.219 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0003681/0.3019, allocations: 215.5 kB / 0.7902 GB, free: 9.008 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001985/0.3021, allocations: 57.64 kB / 0.7902 GB, free: 8.949 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001968/0.3023, allocations: 83.69 kB / 0.7903 GB, free: 8.867 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002201/0.3025, allocations: 123.5 kB / 0.7904 GB, free: 8.746 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.138e-05/0.3026, allocations: 4 kB / 0.7904 GB, free: 8.742 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001693/0.3028, allocations: 75.92 kB / 0.7905 GB, free: 8.668 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 8.28e-05/0.3029, allocations: 39.84 kB / 0.7905 GB, free: 8.629 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 9.475e-05/0.303, allocations: 57.58 kB / 0.7906 GB, free: 8.566 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0003147/0.3033, allocations: 211.6 kB / 0.7908 GB, free: 8.359 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 7.694e-06/0.3033, allocations: 4 kB / 0.7908 GB, free: 8.355 MB / 0.6075 GB Notification: Performance of FrontEnd: time 3.276e-06/0.3033, allocations: 3.938 kB / 0.7908 GB, free: 8.352 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.127e-05/0.3033, allocations: 0 / 0.7908 GB, free: 8.352 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.0009866/0.3043, allocations: 0.5468 MB / 0.7913 GB, free: 7.75 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.16e-05/0.3044, allocations: 8.031 kB / 0.7913 GB, free: 7.742 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.142e-05/0.3045, allocations: 54.48 kB / 0.7914 GB, free: 7.68 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.105e-05/0.3045, allocations: 27.62 kB / 0.7914 GB, free: 7.652 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005072/0.305, allocations: 301.6 kB / 0.7917 GB, free: 7.316 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.05e-05/0.3051, allocations: 12 kB / 0.7917 GB, free: 7.305 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.623e-05/0.3051, allocations: 16 kB / 0.7917 GB, free: 7.289 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004364/0.3056, allocations: 227.2 kB / 0.7919 GB, free: 7.047 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.375e-05/0.3056, allocations: 0 / 0.7919 GB, free: 7.047 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.318e-05/0.3056, allocations: 11.94 kB / 0.7919 GB, free: 7.035 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.818e-06/0.3056, allocations: 4 kB / 0.792 GB, free: 7.031 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002704/0.3059, allocations: 132.3 kB / 0.7921 GB, free: 6.902 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001086/0.307, allocations: 0.6962 MB / 0.7928 GB, free: 6.148 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003829/0.3074, allocations: 174.7 kB / 0.7929 GB, free: 5.969 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001727/0.3076, allocations: 100.8 kB / 0.793 GB, free: 5.867 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.197e-05/0.3076, allocations: 3.984 kB / 0.793 GB, free: 5.863 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003646/0.308, allocations: 177.1 kB / 0.7932 GB, free: 5.672 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=15): time 1.973e-06/0.308, allocations: 0 / 0.7932 GB, free: 5.672 MB / 0.6075 GB Notification: Performance of matching and sorting (n=15): time 0.000717/0.3087, allocations: 375 kB / 0.7936 GB, free: 5.293 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.358e-05/0.3088, allocations: 136.5 kB / 0.7937 GB, free: 5.129 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003176/0.3092, allocations: 294.5 kB / 0.794 GB, free: 4.832 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.725e-05/0.3092, allocations: 33.7 kB / 0.794 GB, free: 4.793 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001367/0.3094, allocations: 152.3 kB / 0.7941 GB, free: 4.641 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 5.697e-05/0.3094, allocations: 47.34 kB / 0.7942 GB, free: 4.594 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.008e-05/0.3094, allocations: 0 / 0.7942 GB, free: 4.594 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001572/0.3096, allocations: 338.8 kB / 0.7945 GB, free: 4.254 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001662/0.3098, allocations: 92.14 kB / 0.7946 GB, free: 4.164 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001905/0.31, allocations: 129.5 kB / 0.7947 GB, free: 4.02 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001994/0.3102, allocations: 117.7 kB / 0.7948 GB, free: 3.898 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.3102, allocations: 0 / 0.7948 GB, free: 3.898 MB / 0.6075 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005156/0.3107, allocations: 349.2 kB / 0.7952 GB, free: 3.547 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.89e-05/0.3108, allocations: 33.7 kB / 0.7952 GB, free: 3.508 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.3108, allocations: 0 / 0.7952 GB, free: 3.508 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.609e-05/0.3108, allocations: 4.094 kB / 0.7952 GB, free: 3.504 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001308/0.3109, allocations: 23.98 kB / 0.7952 GB, free: 3.48 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.603e-05/0.311, allocations: 11.97 kB / 0.7952 GB, free: 3.469 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000137/0.3111, allocations: 31.86 kB / 0.7953 GB, free: 3.438 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.842e-05/0.3111, allocations: 11.94 kB / 0.7953 GB, free: 3.426 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.0002016/0.3114, allocations: 191.4 kB / 0.7955 GB, free: 3.223 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.369e-05/0.3114, allocations: 27.72 kB / 0.7955 GB, free: 3.195 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.841e-05/0.3115, allocations: 33.81 kB / 0.7955 GB, free: 3.164 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.628e-06/0.3115, allocations: 4 kB / 0.7955 GB, free: 3.16 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.219e-06/0.3115, allocations: 0 / 0.7955 GB, free: 3.16 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.66e-06/0.3115, allocations: 7.984 kB / 0.7955 GB, free: 3.152 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002772/0.3118, allocations: 289.4 kB / 0.7958 GB, free: 2.82 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.033e-06/0.3118, allocations: 0 / 0.7958 GB, free: 2.82 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001059/0.3119, allocations: 15.98 kB / 0.7958 GB, free: 2.805 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/0.3119, allocations: 4 kB / 0.7958 GB, free: 2.801 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.352e-05/0.312, allocations: 11.98 kB / 0.7958 GB, free: 2.789 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.587e-06/0.312, allocations: 0 / 0.7958 GB, free: 2.789 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/0.312, allocations: 7.938 kB / 0.7958 GB, free: 2.781 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007002/0.3127, allocations: 472.6 kB / 0.7963 GB, free: 2.297 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 7.045e-05/0.3128, allocations: 100.8 kB / 0.7964 GB, free: 2.18 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.33e-05/0.3128, allocations: 8 kB / 0.7964 GB, free: 2.172 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001025/0.3129, allocations: 19.98 kB / 0.7964 GB, free: 2.152 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.953e-05/0.313, allocations: 23.95 kB / 0.7964 GB, free: 2.129 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.37e-05/0.313, allocations: 8 kB / 0.7964 GB, free: 2.121 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0002263/0.3133, allocations: 202 kB / 0.7966 GB, free: 1.922 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.274e-06/0.3133, allocations: 0 / 0.7966 GB, free: 1.922 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003086/0.3136, allocations: 67.91 kB / 0.7967 GB, free: 1.855 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.001177/0.3148, allocations: 1.024 MB / 0.7977 GB, free: 0.7969 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0005052/0.3153, allocations: 307.4 kB / 0.798 GB, free: 496 kB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/0.3153, allocations: 0 / 0.798 GB, free: 496 kB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0002461/0.3156, allocations: 191.3 kB / 0.7982 GB, free: 292 kB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003157/0.3159, allocations: 32.55 kB / 0.7982 GB, free: 260 kB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00284/0.3187, allocations: 1.651 MB / 0.7998 GB, free: 14.54 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004333/0.3192, allocations: 0.7587 MB / 0.8006 GB, free: 13.76 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0001043/0.3193, allocations: 21.48 kB / 0.8006 GB, free: 13.74 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001127/0.3194, allocations: 75.34 kB / 0.8007 GB, free: 13.67 MB / 0.6231 GB Notification: Performance of SimCode: time 8.31e-07/0.3194, allocations: 0 / 0.8007 GB, free: 13.67 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02115/0.3406, allocations: 4.874 MB / 0.8054 GB, free: 8.941 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002338/0.3409, allocations: 183.5 kB / 0.8056 GB, free: 8.703 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.893/2.233, allocations: 4 kB / 0.8056 GB, free: 8.699 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: