Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_latest_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_latest_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.001311/0.001311, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001528/0.001528, allocations: 190.3 kB / 16.13 MB, free: 6.645 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.21/1.21, allocations: 222.9 MB / 239.8 MB, free: 4.562 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.409/2.409, allocations: 461.8 MB / 0.7342 GB, free: 14.21 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001241/0.001241, allocations: 69.59 kB / 0.8985 GB, free: 36.99 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2223/0.2236, allocations: 157.4 MB / 1.052 GB, free: 8.227 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003042/0.2266, allocations: 2.02 MB / 1.054 GB, free: 6.191 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001133/0.2278, allocations: 0.7208 MB / 1.055 GB, free: 5.465 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001333/0.228, allocations: 3.938 kB / 1.055 GB, free: 5.461 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0002171/0.2282, allocations: 75.75 kB / 1.055 GB, free: 5.387 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001237/0.2283, allocations: 83.7 kB / 1.055 GB, free: 5.305 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004778/0.2288, allocations: 159.8 kB / 1.055 GB, free: 5.148 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002664/0.2291, allocations: 239.4 kB / 1.055 GB, free: 4.914 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001487/0.2292, allocations: 70.09 kB / 1.055 GB, free: 4.848 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001323/0.2294, allocations: 91.67 kB / 1.056 GB, free: 4.758 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001767/0.2296, allocations: 147.5 kB / 1.056 GB, free: 4.613 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.156e-05/0.2296, allocations: 8 kB / 1.056 GB, free: 4.605 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001276/0.2297, allocations: 83.94 kB / 1.056 GB, free: 4.523 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 6.9e-05/0.2298, allocations: 51.77 kB / 1.056 GB, free: 4.473 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 8.945e-05/0.2299, allocations: 91.41 kB / 1.056 GB, free: 4.383 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002871/0.2302, allocations: 283.1 kB / 1.056 GB, free: 4.105 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.511e-06/0.2302, allocations: 7.984 kB / 1.056 GB, free: 4.098 MB / 0.8106 GB Notification: Performance of FrontEnd: time 6.61e-07/0.2302, allocations: 0 / 1.056 GB, free: 4.098 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.23e-06/0.2302, allocations: 0 / 1.056 GB, free: 4.098 MB / 0.8106 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.0007823/0.231, allocations: 0.5818 MB / 1.057 GB, free: 3.461 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.069e-05/0.2311, allocations: 15.97 kB / 1.057 GB, free: 3.445 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.934e-05/0.2311, allocations: 46.73 kB / 1.057 GB, free: 3.391 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.333e-05/0.2312, allocations: 28.56 kB / 1.057 GB, free: 3.363 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003851/0.2316, allocations: 298.9 kB / 1.057 GB, free: 3.031 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.995e-05/0.2316, allocations: 8.375 kB / 1.057 GB, free: 3.023 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.102e-05/0.2317, allocations: 20.38 kB / 1.057 GB, free: 3.004 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003505/0.232, allocations: 219.1 kB / 1.057 GB, free: 2.766 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.206e-06/0.232, allocations: 0 / 1.057 GB, free: 2.766 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.991e-05/0.232, allocations: 11.94 kB / 1.057 GB, free: 2.754 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.111e-06/0.2321, allocations: 4 kB / 1.057 GB, free: 2.75 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002387/0.2323, allocations: 132.4 kB / 1.058 GB, free: 2.621 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007568/0.2331, allocations: 0.6884 MB / 1.058 GB, free: 1.875 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003196/0.2334, allocations: 170.6 kB / 1.058 GB, free: 1.699 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001497/0.2336, allocations: 92.83 kB / 1.058 GB, free: 1.605 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.239e-05/0.2336, allocations: 0 / 1.058 GB, free: 1.605 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002914/0.2339, allocations: 181.1 kB / 1.059 GB, free: 1.41 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=15): time 1.313e-06/0.2339, allocations: 0 / 1.059 GB, free: 1.41 MB / 0.8106 GB Notification: Performance of matching and sorting (n=15): time 0.000611/0.2345, allocations: 371 kB / 1.059 GB, free: 1.035 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.027e-05/0.2346, allocations: 136.5 kB / 1.059 GB, free: 0.8711 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002411/0.2348, allocations: 282.5 kB / 1.059 GB, free: 0.5898 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.397e-05/0.2349, allocations: 37.7 kB / 1.059 GB, free: 0.5469 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 9.067e-05/0.235, allocations: 156.3 kB / 1.06 GB, free: 400 kB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.906e-05/0.235, allocations: 43.44 kB / 1.06 GB, free: 356 kB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.44e-05/0.2351, allocations: 41.62 kB / 1.06 GB, free: 308 kB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001093/0.2352, allocations: 342.8 kB / 1.06 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001581/0.2354, allocations: 79.95 kB / 1.06 GB, free: 15.88 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001708/0.2355, allocations: 138.7 kB / 1.06 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002935/0.2358, allocations: 236.1 kB / 1.06 GB, free: 15.47 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.2358, allocations: 0 / 1.06 GB, free: 15.47 MB / 0.8262 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004608/0.2363, allocations: 344.3 kB / 1.061 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.213e-05/0.2364, allocations: 33.7 kB / 1.061 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.2364, allocations: 4 kB / 1.061 GB, free: 15.08 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.034e-05/0.2364, allocations: 0 / 1.061 GB, free: 15.08 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001172/0.2365, allocations: 27.92 kB / 1.061 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.49e-06/0.2365, allocations: 0 / 1.061 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001157/0.2366, allocations: 27.92 kB / 1.061 GB, free: 15.03 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.521e-05/0.2367, allocations: 8 kB / 1.061 GB, free: 15.02 MB / 0.8262 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.0001557/0.2368, allocations: 195.4 kB / 1.061 GB, free: 14.81 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.457e-05/0.2369, allocations: 23.72 kB / 1.061 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.677e-05/0.2369, allocations: 29.83 kB / 1.061 GB, free: 14.76 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.538e-06/0.2369, allocations: 4 kB / 1.061 GB, free: 14.76 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.2369, allocations: 3.938 kB / 1.061 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.2369, allocations: 0 / 1.061 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002236/0.2372, allocations: 293.3 kB / 1.061 GB, free: 14.42 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.2372, allocations: 8 kB / 1.061 GB, free: 14.41 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.586e-05/0.2373, allocations: 15.98 kB / 1.061 GB, free: 14.39 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.2373, allocations: 0 / 1.061 GB, free: 14.39 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.004e-05/0.2373, allocations: 8 kB / 1.061 GB, free: 14.39 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.013e-06/0.2373, allocations: 0 / 1.061 GB, free: 14.39 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.2373, allocations: 0 / 1.061 GB, free: 14.39 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006482/0.238, allocations: 476.4 kB / 1.062 GB, free: 13.9 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.566e-05/0.238, allocations: 100.8 kB / 1.062 GB, free: 13.78 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.257e-05/0.2381, allocations: 8 kB / 1.062 GB, free: 13.77 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000101/0.2382, allocations: 11.98 kB / 1.062 GB, free: 13.76 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.848e-05/0.2383, allocations: 23.95 kB / 1.062 GB, free: 13.74 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.987e-05/0.2383, allocations: 8 kB / 1.062 GB, free: 13.73 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001706/0.2385, allocations: 201.9 kB / 1.062 GB, free: 13.54 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.01e-07/0.2385, allocations: 0 / 1.062 GB, free: 13.54 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002707/0.2388, allocations: 59.91 kB / 1.062 GB, free: 13.48 MB / 0.8262 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.0009549/0.2397, allocations: 1.037 MB / 1.063 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000419/0.2401, allocations: 291.3 kB / 1.064 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.2402, allocations: 0 / 1.064 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002069/0.2404, allocations: 187.3 kB / 1.064 GB, free: 11.92 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002788/0.2407, allocations: 29.92 kB / 1.064 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003206/0.2439, allocations: 2.827 MB / 1.066 GB, free: 8.953 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002674/0.2442, allocations: 0.7556 MB / 1.067 GB, free: 8.172 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 8.683e-05/0.2443, allocations: 17.55 kB / 1.067 GB, free: 8.152 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.659e-05/0.2444, allocations: 71.41 kB / 1.067 GB, free: 8.082 MB / 0.8262 GB Notification: Performance of SimCode: time 3.2e-07/0.2444, allocations: 0 / 1.067 GB, free: 8.082 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3301/0.5744, allocations: 4.941 MB / 1.072 GB, free: 3.258 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002234/0.5747, allocations: 210.7 kB / 1.072 GB, free: 3 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.685/2.26, allocations: 0 / 1.072 GB, free: 3 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)