Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_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 1.6.0+build.1/package.mo", uses=false) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/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: translateModel(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") translateModel(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008155/0.008155, allocations: 99.64 kB / 15.73 MB, free: 6.02 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.001202/0.001202, allocations: 190.8 kB / 16.67 MB, free: 5.961 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.535/1.535, allocations: 205.1 MB / 222.5 MB, free: 4.387 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo): time 0.6776/0.6776, allocations: 95.48 MB / 365.4 MB, free: 9.703 MB / 302.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: Buildings requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001462/0.001462, allocations: 67.89 kB / 0.5036 GB, free: 13.48 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1882/0.1897, allocations: 69.09 MB / 0.5711 GB, free: 8.32 MB / 446.1 MB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003776/0.1936, allocations: 1.943 MB / 0.573 GB, free: 6.359 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001396/0.195, allocations: 0.7528 MB / 0.5737 GB, free: 5.598 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001202/0.1951, allocations: 4 kB / 0.5737 GB, free: 5.594 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002668/0.1954, allocations: 79.64 kB / 0.5738 GB, free: 5.516 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001293/0.1956, allocations: 95.56 kB / 0.5739 GB, free: 5.422 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006078/0.1962, allocations: 183.3 kB / 0.5741 GB, free: 5.246 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003346/0.1965, allocations: 267.4 kB / 0.5743 GB, free: 4.984 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002013/0.1967, allocations: 73.84 kB / 0.5744 GB, free: 4.91 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001568/0.1969, allocations: 115.7 kB / 0.5745 GB, free: 4.797 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002384/0.1971, allocations: 151.5 kB / 0.5746 GB, free: 4.648 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 3.969e-05/0.1972, allocations: 20 kB / 0.5747 GB, free: 4.629 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001865/0.1974, allocations: 95.91 kB / 0.5747 GB, free: 4.535 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001027/0.1975, allocations: 59.78 kB / 0.5748 GB, free: 4.477 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001451/0.1976, allocations: 107.3 kB / 0.5749 GB, free: 4.371 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004212/0.1981, allocations: 315 kB / 0.5752 GB, free: 4.062 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.326e-06/0.1981, allocations: 0 / 0.5752 GB, free: 4.062 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.905e-06/0.1981, allocations: 0 / 0.5752 GB, free: 4.062 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.022e-05/0.1981, allocations: 0 / 0.5752 GB, free: 4.062 MB / 446.1 MB 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.001119/0.1992, allocations: 0.5741 MB / 0.5758 GB, free: 3.434 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.343e-05/0.1993, allocations: 15.98 kB / 0.5758 GB, free: 3.418 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.628e-05/0.1994, allocations: 36.55 kB / 0.5758 GB, free: 3.383 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000636/0.2, allocations: 306.9 kB / 0.5761 GB, free: 3.043 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.964e-05/0.2001, allocations: 8.375 kB / 0.5761 GB, free: 3.035 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.687e-05/0.2001, allocations: 20.31 kB / 0.5761 GB, free: 3.016 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004608/0.2006, allocations: 227.3 kB / 0.5763 GB, free: 2.773 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.146e-05/0.2006, allocations: 0 / 0.5763 GB, free: 2.773 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.69e-05/0.2007, allocations: 8 kB / 0.5764 GB, free: 2.766 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.217e-06/0.2007, allocations: 4 kB / 0.5764 GB, free: 2.762 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002689/0.2009, allocations: 128.3 kB / 0.5765 GB, free: 2.637 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001039/0.202, allocations: 0.6768 MB / 0.5771 GB, free: 1.902 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003729/0.2024, allocations: 182.5 kB / 0.5773 GB, free: 1.715 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001671/0.2026, allocations: 92.83 kB / 0.5774 GB, free: 1.621 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.852e-05/0.2026, allocations: 4 kB / 0.5774 GB, free: 1.617 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000288/0.2029, allocations: 176.4 kB / 0.5776 GB, free: 1.43 MB / 446.1 MB Notification: Performance of pre-optimization done (n=15): time 1.673e-06/0.2029, allocations: 0 / 0.5776 GB, free: 1.43 MB / 446.1 MB Notification: Performance of matching and sorting (n=15): time 0.0007226/0.2036, allocations: 374.9 kB / 0.5779 GB, free: 1.051 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001003/0.2037, allocations: 132.5 kB / 0.5781 GB, free: 0.8906 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002881/0.204, allocations: 278.6 kB / 0.5783 GB, free: 0.6094 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.526e-05/0.2041, allocations: 33.7 kB / 0.5784 GB, free: 0.5703 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001232/0.2042, allocations: 156.3 kB / 0.5785 GB, free: 424 kB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.094e-05/0.2042, allocations: 35.45 kB / 0.5785 GB, free: 388 kB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.85e-05/0.2043, allocations: 49.55 kB / 0.5786 GB, free: 332 kB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001696/0.2045, allocations: 338.8 kB / 0.5789 GB, free: 15.98 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001714/0.2047, allocations: 91.89 kB / 0.579 GB, free: 15.89 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001927/0.2049, allocations: 129.1 kB / 0.5791 GB, free: 15.75 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003365/0.2052, allocations: 245.5 kB / 0.5794 GB, free: 15.49 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.2052, allocations: 0 / 0.5794 GB, free: 15.49 MB / 462.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005137/0.2058, allocations: 330.9 kB / 0.5797 GB, free: 15.15 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.527e-05/0.2058, allocations: 37.69 kB / 0.5797 GB, free: 15.11 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/0.2058, allocations: 0 / 0.5797 GB, free: 15.11 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.914e-05/0.2058, allocations: 4 kB / 0.5797 GB, free: 15.11 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001306/0.206, allocations: 28.11 kB / 0.5797 GB, free: 15.08 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.995e-06/0.206, allocations: 3.938 kB / 0.5797 GB, free: 15.07 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001182/0.2061, allocations: 27.83 kB / 0.5798 GB, free: 15.05 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.875e-05/0.2062, allocations: 8 kB / 0.5798 GB, free: 15.04 MB / 462.1 MB 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.0001939/0.2064, allocations: 192.7 kB / 0.58 GB, free: 14.84 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.923e-05/0.2064, allocations: 27.72 kB / 0.58 GB, free: 14.81 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.124e-05/0.2065, allocations: 29.83 kB / 0.58 GB, free: 14.78 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/0.2065, allocations: 4 kB / 0.58 GB, free: 14.77 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.2065, allocations: 7.875 kB / 0.58 GB, free: 14.77 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.546e-06/0.2065, allocations: 0 / 0.58 GB, free: 14.77 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002853/0.2068, allocations: 297.3 kB / 0.5803 GB, free: 14.43 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.2068, allocations: 0 / 0.5803 GB, free: 14.43 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001068/0.2069, allocations: 15.98 kB / 0.5803 GB, free: 14.41 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.893e-06/0.2069, allocations: 0 / 0.5803 GB, free: 14.41 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.535e-05/0.207, allocations: 8 kB / 0.5803 GB, free: 14.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.983e-06/0.207, allocations: 0 / 0.5803 GB, free: 14.4 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.207, allocations: 0 / 0.5803 GB, free: 14.4 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007642/0.2077, allocations: 470.3 kB / 0.5808 GB, free: 13.92 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.851e-05/0.2078, allocations: 96.77 kB / 0.5809 GB, free: 13.8 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.71e-05/0.2079, allocations: 8 kB / 0.5809 GB, free: 13.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001015/0.208, allocations: 15.97 kB / 0.5809 GB, free: 13.78 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.182e-05/0.2081, allocations: 31.95 kB / 0.5809 GB, free: 13.75 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.368e-05/0.2081, allocations: 8.062 kB / 0.5809 GB, free: 13.74 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0001897/0.2083, allocations: 202 kB / 0.5811 GB, free: 13.54 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2083, allocations: 0 / 0.5811 GB, free: 13.54 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0003003/0.2086, allocations: 64.02 kB / 0.5812 GB, free: 13.48 MB / 462.1 MB 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.0002211/0.2089, allocations: 131.2 kB / 0.5813 GB, free: 13.34 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00051/0.2094, allocations: 298.7 kB / 0.5816 GB, free: 13.04 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.2094, allocations: 0 / 0.5816 GB, free: 13.04 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00025/0.2096, allocations: 187.3 kB / 0.5818 GB, free: 12.85 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000308/0.21, allocations: 33.92 kB / 0.5818 GB, free: 12.82 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009592/0.2109, allocations: 477.1 kB / 0.5823 GB, free: 12.32 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003333/0.2113, allocations: 0.7514 MB / 0.583 GB, free: 11.54 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 7.865e-05/0.2114, allocations: 21.55 kB / 0.583 GB, free: 11.52 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.532e-05/0.2114, allocations: 19.42 kB / 0.583 GB, free: 11.5 MB / 462.1 MB Notification: Performance of SimCode: time 5.31e-07/0.2114, allocations: 0 / 0.583 GB, free: 11.5 MB / 462.1 MB Notification: Performance of Templates: time 0.006755/0.2182, allocations: 2.813 MB / 0.5858 GB, free: 8.711 MB / 462.1 MB make -j1 -f Buildings_1.6_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (rm -f Buildings_1.6_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_1.6_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_1.6_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./Buildings_1.6_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)