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.00098/0.00098, allocations: 99.36 kB / 15.33 MB, free: 0.5078 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.001088/0.001088, allocations: 193.2 kB / 16.25 MB, free: 6.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.17/1.17, allocations: 205.1 MB / 222.1 MB, free: 4.68 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.63/1.63, allocations: 292.3 MB / 0.5486 GB, free: 13.63 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.00144/0.00144, allocations: 64.95 kB / 0.6711 GB, free: 26.39 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1963/0.1977, allocations: 114.6 MB / 0.783 GB, free: 13.82 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003223/0.201, allocations: 2.012 MB / 0.7849 GB, free: 11.79 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001195/0.2022, allocations: 0.7411 MB / 0.7857 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001102/0.2023, allocations: 7.938 kB / 0.7857 GB, free: 11.03 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0002077/0.2026, allocations: 67.77 kB / 0.7857 GB, free: 10.96 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001148/0.2027, allocations: 83.7 kB / 0.7858 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004926/0.2032, allocations: 170.9 kB / 0.786 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002641/0.2035, allocations: 271.4 kB / 0.7862 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001469/0.2036, allocations: 65.91 kB / 0.7863 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001185/0.2037, allocations: 115.6 kB / 0.7864 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001647/0.2039, allocations: 147.5 kB / 0.7865 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.136e-05/0.204, allocations: 20 kB / 0.7866 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00013/0.2041, allocations: 95.86 kB / 0.7867 GB, free: 10.01 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 7.053e-05/0.2042, allocations: 63.77 kB / 0.7867 GB, free: 9.949 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 8.971e-05/0.2043, allocations: 107.3 kB / 0.7868 GB, free: 9.844 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002921/0.2046, allocations: 295.1 kB / 0.7871 GB, free: 9.555 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.2046, allocations: 0 / 0.7871 GB, free: 9.555 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.513e-06/0.2046, allocations: 4 kB / 0.7871 GB, free: 9.551 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.155e-06/0.2046, allocations: 0 / 0.7871 GB, free: 9.551 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.0007581/0.2054, allocations: 0.5805 MB / 0.7877 GB, free: 8.918 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.455e-05/0.2054, allocations: 8.031 kB / 0.7877 GB, free: 8.91 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.059e-05/0.2055, allocations: 50.73 kB / 0.7877 GB, free: 8.852 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.534e-05/0.2055, allocations: 36.5 kB / 0.7878 GB, free: 8.816 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003722/0.2059, allocations: 294.9 kB / 0.788 GB, free: 8.488 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.053e-05/0.2059, allocations: 12.38 kB / 0.7881 GB, free: 8.477 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.203e-05/0.206, allocations: 20.22 kB / 0.7881 GB, free: 8.457 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000353/0.2063, allocations: 227.1 kB / 0.7883 GB, free: 8.215 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.897e-06/0.2063, allocations: 4 kB / 0.7883 GB, free: 8.211 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.825e-05/0.2064, allocations: 4 kB / 0.7883 GB, free: 8.207 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.159e-06/0.2064, allocations: 4 kB / 0.7883 GB, free: 8.203 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002331/0.2066, allocations: 136.3 kB / 0.7884 GB, free: 8.07 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007267/0.2073, allocations: 0.6808 MB / 0.7891 GB, free: 7.332 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003246/0.2077, allocations: 170.5 kB / 0.7893 GB, free: 7.156 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001495/0.2078, allocations: 96.95 kB / 0.7894 GB, free: 7.059 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.334e-05/0.2079, allocations: 4 kB / 0.7894 GB, free: 7.055 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002919/0.2082, allocations: 179.7 kB / 0.7895 GB, free: 6.863 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=15): time 1.502e-06/0.2082, allocations: 0 / 0.7895 GB, free: 6.863 MB / 0.6075 GB Notification: Performance of matching and sorting (n=15): time 0.0006282/0.2088, allocations: 378.8 kB / 0.7899 GB, free: 6.48 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.188e-05/0.2089, allocations: 132.5 kB / 0.79 GB, free: 6.32 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000255/0.2091, allocations: 278.7 kB / 0.7903 GB, free: 6.039 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.355e-05/0.2092, allocations: 29.7 kB / 0.7903 GB, free: 6.004 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001016/0.2093, allocations: 160.2 kB / 0.7905 GB, free: 5.844 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.99e-05/0.2093, allocations: 35.45 kB / 0.7905 GB, free: 5.809 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.242e-05/0.2094, allocations: 45.64 kB / 0.7905 GB, free: 5.758 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001114/0.2095, allocations: 346.8 kB / 0.7909 GB, free: 5.41 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001611/0.2097, allocations: 84.05 kB / 0.7909 GB, free: 5.328 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001714/0.2099, allocations: 129.8 kB / 0.7911 GB, free: 5.184 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003011/0.2102, allocations: 246.7 kB / 0.7913 GB, free: 4.918 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.2102, allocations: 0 / 0.7913 GB, free: 4.918 MB / 0.6075 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004562/0.2106, allocations: 341.6 kB / 0.7916 GB, free: 4.574 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.668e-05/0.2107, allocations: 37.69 kB / 0.7917 GB, free: 4.531 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/0.2107, allocations: 0 / 0.7917 GB, free: 4.531 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.568e-05/0.2107, allocations: 8.094 kB / 0.7917 GB, free: 4.523 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001168/0.2108, allocations: 23.92 kB / 0.7917 GB, free: 4.5 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.392e-06/0.2109, allocations: 0 / 0.7917 GB, free: 4.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001142/0.211, allocations: 27.83 kB / 0.7917 GB, free: 4.473 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.761e-05/0.211, allocations: 8 kB / 0.7917 GB, free: 4.465 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 (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.0001525/0.2112, allocations: 187.5 kB / 0.7919 GB, free: 4.266 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.794e-05/0.2112, allocations: 27.72 kB / 0.7919 GB, free: 4.238 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.955e-05/0.2113, allocations: 29.84 kB / 0.792 GB, free: 4.211 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.895e-06/0.2113, allocations: 0 / 0.792 GB, free: 4.211 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.2113, allocations: 7.922 kB / 0.792 GB, free: 4.203 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.2113, allocations: 0 / 0.792 GB, free: 4.203 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002272/0.2115, allocations: 301.3 kB / 0.7923 GB, free: 3.859 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.2115, allocations: 0 / 0.7923 GB, free: 3.859 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.879e-05/0.2116, allocations: 12 kB / 0.7923 GB, free: 3.848 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.005e-06/0.2117, allocations: 0 / 0.7923 GB, free: 3.848 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.258e-05/0.2117, allocations: 11.98 kB / 0.7923 GB, free: 3.836 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.2117, allocations: 0 / 0.7923 GB, free: 3.836 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.2117, allocations: 4 kB / 0.7923 GB, free: 3.832 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000661/0.2124, allocations: 462.3 kB / 0.7927 GB, free: 3.355 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 6.091e-05/0.2124, allocations: 104.7 kB / 0.7928 GB, free: 3.234 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.632e-05/0.2125, allocations: 8 kB / 0.7928 GB, free: 3.227 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001037/0.2126, allocations: 15.98 kB / 0.7929 GB, free: 3.211 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.77e-05/0.2127, allocations: 28.03 kB / 0.7929 GB, free: 3.184 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.082e-05/0.2127, allocations: 4 kB / 0.7929 GB, free: 3.18 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001808/0.2129, allocations: 205.9 kB / 0.7931 GB, free: 2.977 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2129, allocations: 3.938 kB / 0.7931 GB, free: 2.973 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002866/0.2132, allocations: 55.94 kB / 0.7931 GB, free: 2.918 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 (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.001037/0.2142, allocations: 1.027 MB / 0.7941 GB, free: 1.859 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0004709/0.2147, allocations: 294.9 kB / 0.7944 GB, free: 1.562 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.2147, allocations: 0 / 0.7944 GB, free: 1.562 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0002238/0.215, allocations: 191.4 kB / 0.7946 GB, free: 1.363 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002883/0.2153, allocations: 40.78 kB / 0.7946 GB, free: 1.324 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003354/0.2186, allocations: 2.832 MB / 0.7974 GB, free: 14.38 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003104/0.2189, allocations: 0.7507 MB / 0.7981 GB, free: 13.61 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 9.208e-05/0.219, allocations: 25.53 kB / 0.7982 GB, free: 13.58 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001065/0.2192, allocations: 75.41 kB / 0.7982 GB, free: 13.51 MB / 0.6231 GB Notification: Performance of SimCode: time 2.61e-07/0.2192, allocations: 0 / 0.7982 GB, free: 13.51 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01571/0.2349, allocations: 5.097 MB / 0.8032 GB, free: 8.543 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001763/0.2351, allocations: 201.6 kB / 0.8034 GB, free: 8.289 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.826/2.061, allocations: 0 / 0.8034 GB, free: 8.289 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/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)