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.0007803/0.0007803, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.004649/0.004649, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.199/1.199, allocations: 205.4 MB / 222.4 MB, free: 5.789 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.483/1.483, allocations: 292.7 MB / 0.5502 GB, free: 14.45 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.0004669/0.000467, allocations: 14.41 kB / 0.6744 GB, free: 25.95 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1914/0.1919, allocations: 116.3 MB / 0.788 GB, free: 11.47 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.00187/0.1938, allocations: 1.662 MB / 0.7896 GB, free: 9.797 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001097/0.1949, allocations: 0.749 MB / 0.7904 GB, free: 9.039 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.484e-05/0.195, allocations: 0 / 0.7904 GB, free: 9.039 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001796/0.1952, allocations: 67.78 kB / 0.7904 GB, free: 8.973 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001143/0.1953, allocations: 87.69 kB / 0.7905 GB, free: 8.887 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004427/0.1958, allocations: 163.2 kB / 0.7907 GB, free: 8.73 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002481/0.196, allocations: 239.4 kB / 0.7909 GB, free: 8.496 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001325/0.1962, allocations: 65.88 kB / 0.7909 GB, free: 8.43 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001092/0.1963, allocations: 83.62 kB / 0.791 GB, free: 8.348 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001503/0.1964, allocations: 135.5 kB / 0.7912 GB, free: 8.215 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.149e-05/0.1965, allocations: 8 kB / 0.7912 GB, free: 8.207 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001155/0.1966, allocations: 79.92 kB / 0.7912 GB, free: 8.129 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 5.622e-05/0.1966, allocations: 43.78 kB / 0.7913 GB, free: 8.086 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 8.759e-05/0.1967, allocations: 121 kB / 0.7914 GB, free: 7.961 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002453/0.197, allocations: 267.1 kB / 0.7917 GB, free: 7.699 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.197, allocations: 0 / 0.7917 GB, free: 7.699 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.162e-06/0.197, allocations: 0 / 0.7917 GB, free: 7.699 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.572e-06/0.197, allocations: 0 / 0.7917 GB, free: 7.699 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.0006499/0.1977, allocations: 0.5508 MB / 0.7922 GB, free: 7.094 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.141e-05/0.1977, allocations: 12.03 kB / 0.7922 GB, free: 7.082 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.177e-05/0.1978, allocations: 46.73 kB / 0.7922 GB, free: 7.027 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.863e-05/0.1978, allocations: 32.56 kB / 0.7923 GB, free: 6.996 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003798/0.1982, allocations: 310.9 kB / 0.7926 GB, free: 6.652 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.006e-05/0.1982, allocations: 12.38 kB / 0.7926 GB, free: 6.641 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.975e-05/0.1983, allocations: 12.38 kB / 0.7926 GB, free: 6.629 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003429/0.1986, allocations: 235.1 kB / 0.7928 GB, free: 6.379 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.306e-06/0.1986, allocations: 7.938 kB / 0.7928 GB, free: 6.371 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.704e-05/0.1986, allocations: 4 kB / 0.7928 GB, free: 6.367 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.663e-06/0.1987, allocations: 7.938 kB / 0.7928 GB, free: 6.359 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002385/0.1989, allocations: 136.3 kB / 0.793 GB, free: 6.227 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007088/0.1996, allocations: 0.6924 MB / 0.7936 GB, free: 5.477 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003404/0.2, allocations: 178.6 kB / 0.7938 GB, free: 5.293 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001558/0.2001, allocations: 96.83 kB / 0.7939 GB, free: 5.195 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.2e-05/0.2002, allocations: 3.984 kB / 0.7939 GB, free: 5.191 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002748/0.2004, allocations: 171.4 kB / 0.7941 GB, free: 5.008 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=15): time 1.352e-06/0.2005, allocations: 4 kB / 0.7941 GB, free: 5.004 MB / 0.6075 GB Notification: Performance of matching and sorting (n=15): time 0.0006102/0.2011, allocations: 387 kB / 0.7945 GB, free: 4.613 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.326e-05/0.2011, allocations: 132.5 kB / 0.7946 GB, free: 4.453 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002249/0.2014, allocations: 278.6 kB / 0.7948 GB, free: 4.172 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.379e-05/0.2014, allocations: 37.7 kB / 0.7949 GB, free: 4.129 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 8.912e-05/0.2015, allocations: 160.2 kB / 0.795 GB, free: 3.969 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.84e-05/0.2015, allocations: 43.44 kB / 0.7951 GB, free: 3.926 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.648e-05/0.2016, allocations: 25.72 kB / 0.7951 GB, free: 3.895 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 8.957e-05/0.2017, allocations: 338.8 kB / 0.7954 GB, free: 3.555 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001566/0.2018, allocations: 87.95 kB / 0.7955 GB, free: 3.469 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000175/0.202, allocations: 141.1 kB / 0.7956 GB, free: 3.312 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003001/0.2023, allocations: 249.7 kB / 0.7959 GB, free: 3.047 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.2023, allocations: 0 / 0.7959 GB, free: 3.047 MB / 0.6075 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004541/0.2028, allocations: 347 kB / 0.7962 GB, free: 2.695 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.084e-05/0.2028, allocations: 41.69 kB / 0.7962 GB, free: 2.648 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.717e-06/0.2028, allocations: 0 / 0.7962 GB, free: 2.648 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.788e-06/0.2029, allocations: 4 kB / 0.7963 GB, free: 2.645 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001118/0.203, allocations: 27.98 kB / 0.7963 GB, free: 2.617 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.528e-06/0.203, allocations: 3.938 kB / 0.7963 GB, free: 2.613 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001177/0.2031, allocations: 31.83 kB / 0.7963 GB, free: 2.582 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.576e-05/0.2031, allocations: 4 kB / 0.7963 GB, free: 2.578 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.0001394/0.2033, allocations: 199.4 kB / 0.7965 GB, free: 2.367 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.055e-05/0.2033, allocations: 23.72 kB / 0.7965 GB, free: 2.344 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.337e-05/0.2034, allocations: 37.81 kB / 0.7966 GB, free: 2.309 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.2034, allocations: 0 / 0.7966 GB, free: 2.309 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.2034, allocations: 0 / 0.7966 GB, free: 2.309 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.354e-06/0.2034, allocations: 0 / 0.7966 GB, free: 2.309 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002122/0.2036, allocations: 293.3 kB / 0.7968 GB, free: 1.973 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.2036, allocations: 0 / 0.7968 GB, free: 1.973 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.417e-05/0.2037, allocations: 23.98 kB / 0.7969 GB, free: 1.949 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.2037, allocations: 0 / 0.7969 GB, free: 1.949 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.803e-05/0.2038, allocations: 4.094 kB / 0.7969 GB, free: 1.945 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.2038, allocations: 7.875 kB / 0.7969 GB, free: 1.938 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.2038, allocations: 0 / 0.7969 GB, free: 1.938 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006367/0.2044, allocations: 485.3 kB / 0.7973 GB, free: 1.441 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.86e-05/0.2045, allocations: 100.8 kB / 0.7974 GB, free: 1.324 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.498e-05/0.2045, allocations: 8 kB / 0.7974 GB, free: 1.316 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001039/0.2046, allocations: 15.98 kB / 0.7975 GB, free: 1.301 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.993e-05/0.2047, allocations: 28.02 kB / 0.7975 GB, free: 1.273 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.794e-05/0.2047, allocations: 8 kB / 0.7975 GB, free: 1.266 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001558/0.2049, allocations: 205.9 kB / 0.7977 GB, free: 1.062 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.51e-07/0.2049, allocations: 4 kB / 0.7977 GB, free: 1.059 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002452/0.2051, allocations: 55.84 kB / 0.7977 GB, free: 1.004 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.0008943/0.206, allocations: 1.032 MB / 0.7988 GB, free: 15.94 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.0004138/0.2065, allocations: 306.5 kB / 0.799 GB, free: 15.63 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.2065, allocations: 3.938 kB / 0.7991 GB, free: 15.62 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0002098/0.2067, allocations: 187.4 kB / 0.7992 GB, free: 15.43 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002606/0.207, allocations: 28.73 kB / 0.7993 GB, free: 15.4 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003166/0.2101, allocations: 2.857 MB / 0.802 GB, free: 12.43 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002684/0.2104, allocations: 0.7581 MB / 0.8028 GB, free: 11.65 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 7.833e-05/0.2105, allocations: 17.48 kB / 0.8028 GB, free: 11.63 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.642e-05/0.2106, allocations: 75.41 kB / 0.8029 GB, free: 11.56 MB / 0.6231 GB Notification: Performance of SimCode: time 3.51e-07/0.2106, allocations: 4 kB / 0.8029 GB, free: 11.55 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04333/0.2539, allocations: 4.853 MB / 0.8076 GB, free: 6.84 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001638/0.2541, allocations: 203.1 kB / 0.8078 GB, free: 6.586 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.884/2.139, allocations: 0 / 0.8078 GB, free: 6.586 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)