Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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: translateModel(IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor") translateModel(IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.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.0008574/0.0008573, allocations: 93.73 kB / 16.02 MB, free: 84 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001004/0.001003, allocations: 180.9 kB / 16.92 MB, free: 6.684 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.486/1.486, allocations: 223.3 MB / 241 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7188/0.7188, allocations: 115.5 MB / 407.6 MB, free: 2.711 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003838/0.0003839, allocations: 8 kB / 495.9 MB, free: 6.352 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1798/0.1802, allocations: 77.53 MB / 0.5599 GB, free: 9.035 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002617/0.1828, allocations: 1.643 MB / 0.5615 GB, free: 7.379 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001558/0.1844, allocations: 0.7093 MB / 0.5622 GB, free: 6.664 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001259/0.1846, allocations: 4 kB / 0.5622 GB, free: 6.66 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002607/0.1849, allocations: 67.77 kB / 0.5623 GB, free: 6.594 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000129/0.185, allocations: 83.7 kB / 0.5624 GB, free: 6.512 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005407/0.1856, allocations: 163.1 kB / 0.5625 GB, free: 6.355 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002771/0.1858, allocations: 239.5 kB / 0.5628 GB, free: 6.121 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001789/0.186, allocations: 70.09 kB / 0.5628 GB, free: 6.055 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001417/0.1862, allocations: 95.55 kB / 0.5629 GB, free: 5.961 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001927/0.1864, allocations: 131.5 kB / 0.5631 GB, free: 5.832 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 2.567e-05/0.1864, allocations: 12 kB / 0.5631 GB, free: 5.82 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001462/0.1866, allocations: 71.94 kB / 0.5631 GB, free: 5.75 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 7.557e-05/0.1866, allocations: 43.78 kB / 0.5632 GB, free: 5.707 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001081/0.1868, allocations: 121 kB / 0.5633 GB, free: 5.582 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003249/0.1871, allocations: 271.1 kB / 0.5635 GB, free: 5.316 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.1871, allocations: 4 kB / 0.5636 GB, free: 5.312 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1871, allocations: 0 / 0.5636 GB, free: 5.312 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.5e-06/0.1871, allocations: 0 / 0.5636 GB, free: 5.312 MB / 430.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.0008895/0.188, allocations: 0.547 MB / 0.5641 GB, free: 4.711 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.953e-05/0.1881, allocations: 8.031 kB / 0.5641 GB, free: 4.703 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.87e-05/0.1882, allocations: 32.56 kB / 0.5641 GB, free: 4.672 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004742/0.1886, allocations: 306.9 kB / 0.5644 GB, free: 4.336 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.821e-05/0.1887, allocations: 12.38 kB / 0.5644 GB, free: 4.324 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.54e-05/0.1887, allocations: 24.28 kB / 0.5645 GB, free: 4.301 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004195/0.1891, allocations: 227.3 kB / 0.5647 GB, free: 4.055 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.212e-05/0.1892, allocations: 7.984 kB / 0.5647 GB, free: 4.047 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.227e-05/0.1892, allocations: 4 kB / 0.5647 GB, free: 4.043 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.346e-06/0.1892, allocations: 4 kB / 0.5647 GB, free: 4.039 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002738/0.1895, allocations: 128.4 kB / 0.5648 GB, free: 3.914 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009218/0.1904, allocations: 0.6924 MB / 0.5655 GB, free: 3.164 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003962/0.1908, allocations: 178.6 kB / 0.5657 GB, free: 2.98 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001775/0.191, allocations: 108.9 kB / 0.5658 GB, free: 2.871 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.507e-05/0.191, allocations: 0 / 0.5658 GB, free: 2.871 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003266/0.1914, allocations: 173 kB / 0.5659 GB, free: 2.684 MB / 430.1 MB Notification: Performance of pre-optimization done (n=15): time 1.393e-06/0.1914, allocations: 4 kB / 0.5659 GB, free: 2.68 MB / 430.1 MB Notification: Performance of matching and sorting (n=15): time 0.0007156/0.1921, allocations: 378.9 kB / 0.5663 GB, free: 2.297 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.206e-05/0.1922, allocations: 136.5 kB / 0.5664 GB, free: 2.133 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002941/0.1925, allocations: 278.6 kB / 0.5667 GB, free: 1.855 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.901e-05/0.1925, allocations: 37.7 kB / 0.5667 GB, free: 1.812 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001052/0.1926, allocations: 152.2 kB / 0.5669 GB, free: 1.656 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.215e-05/0.1927, allocations: 51.34 kB / 0.5669 GB, free: 1.605 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.035e-05/0.1928, allocations: 25.7 kB / 0.5669 GB, free: 1.574 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001227/0.1929, allocations: 338.8 kB / 0.5673 GB, free: 1.234 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001731/0.1931, allocations: 91.89 kB / 0.5673 GB, free: 1.145 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001878/0.1933, allocations: 133.1 kB / 0.5675 GB, free: 0.9961 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003413/0.1936, allocations: 248.8 kB / 0.5677 GB, free: 0.7305 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.1936, allocations: 96 / 0.5677 GB, free: 0.7305 MB / 430.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005072/0.1941, allocations: 351 kB / 0.568 GB, free: 384 kB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.858e-05/0.1942, allocations: 41.69 kB / 0.5681 GB, free: 336 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.1942, allocations: 0 / 0.5681 GB, free: 336 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.492e-05/0.1942, allocations: 7.938 kB / 0.5681 GB, free: 328 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001286/0.1944, allocations: 27.98 kB / 0.5681 GB, free: 300 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.4e-06/0.1944, allocations: 0 / 0.5681 GB, free: 300 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001252/0.1945, allocations: 27.83 kB / 0.5681 GB, free: 272 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.633e-05/0.1945, allocations: 8 kB / 0.5682 GB, free: 264 kB / 430.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.0001846/0.1947, allocations: 202.4 kB / 0.5683 GB, free: 48 kB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.315e-05/0.1948, allocations: 23.72 kB / 0.5684 GB, free: 24 kB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.296e-05/0.1948, allocations: 29.88 kB / 0.5684 GB, free: 15.99 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.574e-06/0.1948, allocations: 0 / 0.5684 GB, free: 15.99 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.1949, allocations: 0 / 0.5684 GB, free: 15.99 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.1949, allocations: 0 / 0.5684 GB, free: 15.99 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002599/0.1951, allocations: 289.3 kB / 0.5687 GB, free: 15.66 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.1951, allocations: 0 / 0.5687 GB, free: 15.66 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001073/0.1953, allocations: 24 kB / 0.5687 GB, free: 15.64 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.528e-06/0.1953, allocations: 3.984 kB / 0.5687 GB, free: 15.64 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.151e-05/0.1953, allocations: 4 kB / 0.5687 GB, free: 15.63 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.1953, allocations: 0 / 0.5687 GB, free: 15.63 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.786e-06/0.1953, allocations: 4 kB / 0.5687 GB, free: 15.63 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007681/0.1961, allocations: 483.3 kB / 0.5692 GB, free: 15.13 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.473e-05/0.1962, allocations: 100.9 kB / 0.5693 GB, free: 15.02 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.905e-05/0.1962, allocations: 8 kB / 0.5693 GB, free: 15.01 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001126/0.1963, allocations: 15.98 kB / 0.5693 GB, free: 14.99 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.651e-05/0.1964, allocations: 28.02 kB / 0.5693 GB, free: 14.96 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.497e-05/0.1965, allocations: 11.98 kB / 0.5693 GB, free: 14.95 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001908/0.1967, allocations: 198 kB / 0.5695 GB, free: 14.77 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1967, allocations: 4 kB / 0.5695 GB, free: 14.76 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002845/0.197, allocations: 59.83 kB / 0.5696 GB, free: 14.7 MB / 446.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.0002238/0.1972, allocations: 135.1 kB / 0.5697 GB, free: 14.56 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004978/0.1977, allocations: 307.2 kB / 0.57 GB, free: 14.25 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.1977, allocations: 3.938 kB / 0.57 GB, free: 14.25 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000248/0.198, allocations: 187.3 kB / 0.5702 GB, free: 14.05 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003244/0.1983, allocations: 34.91 kB / 0.5702 GB, free: 14.02 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00106/0.1994, allocations: 0.5459 MB / 0.5707 GB, free: 13.44 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000462/0.1998, allocations: 0.7454 MB / 0.5715 GB, free: 12.67 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 9.647e-05/0.2, allocations: 21.55 kB / 0.5715 GB, free: 12.65 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.041e-05/0.2, allocations: 23.42 kB / 0.5715 GB, free: 12.63 MB / 446.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2, allocations: 0 / 0.5715 GB, free: 12.63 MB / 446.1 MB Notification: Performance of Templates: time 0.006295/0.2063, allocations: 2.506 MB / 0.574 GB, free: 10.14 MB / 446.1 MB make -j1 -f IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (rm -f IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)