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.001397/0.001397, allocations: 121.6 kB / 17.09 MB, free: 6.012 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.001241/0.001241, allocations: 192.7 kB / 18.02 MB, free: 5.094 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.412/1.412, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7226/0.7226, allocations: 115.3 MB / 407.2 MB, free: 6.145 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00161/0.00161, allocations: 65.38 kB / 0.5583 GB, free: 32.26 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1806/0.1823, allocations: 76.18 MB / 0.6327 GB, free: 4.422 MB / 478.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003835/0.1861, allocations: 1.938 MB / 0.6346 GB, free: 2.465 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.001536/0.1877, allocations: 0.709 MB / 0.6353 GB, free: 1.75 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002181/0.1879, allocations: 11.94 kB / 0.6353 GB, free: 1.738 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002694/0.1882, allocations: 79.69 kB / 0.6354 GB, free: 1.66 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001883/0.1884, allocations: 91.58 kB / 0.6355 GB, free: 1.57 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007184/0.1892, allocations: 187.6 kB / 0.6357 GB, free: 1.387 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004156/0.1896, allocations: 259.4 kB / 0.6359 GB, free: 1.133 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001993/0.1898, allocations: 73.81 kB / 0.636 GB, free: 1.062 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002001/0.19, allocations: 115.7 kB / 0.6361 GB, free: 0.9492 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002582/0.1903, allocations: 155.5 kB / 0.6362 GB, free: 0.7969 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 5.197e-05/0.1903, allocations: 24 kB / 0.6363 GB, free: 0.7734 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001796/0.1905, allocations: 95.92 kB / 0.6363 GB, free: 0.6797 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 9.431e-05/0.1906, allocations: 55.78 kB / 0.6364 GB, free: 0.625 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000129/0.1908, allocations: 107.3 kB / 0.6365 GB, free: 0.5195 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004415/0.1912, allocations: 303 kB / 0.6368 GB, free: 228 kB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.69e-06/0.1912, allocations: 4 kB / 0.6368 GB, free: 224 kB / 478.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1912, allocations: 0 / 0.6368 GB, free: 224 kB / 478.1 MB Notification: Performance of Transformations before backend: time 1.099e-05/0.1913, allocations: 4 kB / 0.6368 GB, free: 220 kB / 478.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.0009785/0.1922, allocations: 0.578 MB / 0.6374 GB, free: 15.58 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.567e-05/0.1923, allocations: 15.95 kB / 0.6374 GB, free: 15.57 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.6e-05/0.1924, allocations: 32.56 kB / 0.6374 GB, free: 15.54 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005512/0.1929, allocations: 302.9 kB / 0.6377 GB, free: 15.2 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.053e-05/0.193, allocations: 16.38 kB / 0.6377 GB, free: 15.18 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.846e-05/0.193, allocations: 12.38 kB / 0.6377 GB, free: 15.17 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004186/0.1934, allocations: 227.7 kB / 0.6379 GB, free: 14.93 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/0.1935, allocations: 0 / 0.6379 GB, free: 14.93 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.351e-05/0.1935, allocations: 7.984 kB / 0.638 GB, free: 14.92 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.275e-06/0.1935, allocations: 8 kB / 0.638 GB, free: 14.91 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002543/0.1938, allocations: 128.4 kB / 0.6381 GB, free: 14.79 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008965/0.1947, allocations: 0.6768 MB / 0.6387 GB, free: 14.05 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003668/0.195, allocations: 166.5 kB / 0.6389 GB, free: 13.88 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000172/0.1952, allocations: 101 kB / 0.639 GB, free: 13.78 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.758e-05/0.1953, allocations: 4.031 kB / 0.639 GB, free: 13.77 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000275/0.1955, allocations: 169 kB / 0.6392 GB, free: 13.59 MB / 494.1 MB Notification: Performance of pre-optimization done (n=15): time 1.854e-06/0.1956, allocations: 0 / 0.6392 GB, free: 13.59 MB / 494.1 MB Notification: Performance of matching and sorting (n=15): time 0.0007036/0.1963, allocations: 374.9 kB / 0.6395 GB, free: 13.21 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001842/0.1965, allocations: 136.5 kB / 0.6397 GB, free: 13.05 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000377/0.1968, allocations: 282.6 kB / 0.6399 GB, free: 12.76 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.862e-05/0.1969, allocations: 29.7 kB / 0.6399 GB, free: 12.73 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00012/0.197, allocations: 160.3 kB / 0.6401 GB, free: 12.57 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.529e-05/0.1971, allocations: 51.38 kB / 0.6402 GB, free: 12.52 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.854e-05/0.1971, allocations: 41.7 kB / 0.6402 GB, free: 12.47 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001385/0.1973, allocations: 330.8 kB / 0.6405 GB, free: 12.14 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001757/0.1975, allocations: 95.89 kB / 0.6406 GB, free: 12.04 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001952/0.1977, allocations: 137 kB / 0.6407 GB, free: 11.89 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003443/0.198, allocations: 244.4 kB / 0.641 GB, free: 11.63 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.198, allocations: 0 / 0.641 GB, free: 11.63 MB / 494.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005273/0.1986, allocations: 331.6 kB / 0.6413 GB, free: 11.29 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.985e-05/0.1986, allocations: 41.69 kB / 0.6413 GB, free: 11.25 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.1986, allocations: 0 / 0.6413 GB, free: 11.25 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.874e-05/0.1987, allocations: 4 kB / 0.6413 GB, free: 11.24 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001277/0.1988, allocations: 19.98 kB / 0.6413 GB, free: 11.22 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.877e-06/0.1988, allocations: 4 kB / 0.6413 GB, free: 11.22 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001412/0.199, allocations: 19.83 kB / 0.6414 GB, free: 11.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.891e-05/0.199, allocations: 12 kB / 0.6414 GB, free: 11.19 MB / 494.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.0001904/0.1992, allocations: 200.1 kB / 0.6416 GB, free: 10.98 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.343e-05/0.1992, allocations: 23.72 kB / 0.6416 GB, free: 10.95 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.976e-05/0.1993, allocations: 29.83 kB / 0.6416 GB, free: 10.92 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.436e-06/0.1993, allocations: 4 kB / 0.6416 GB, free: 10.91 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.1993, allocations: 0 / 0.6416 GB, free: 10.91 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.337e-06/0.1993, allocations: 0 / 0.6416 GB, free: 10.91 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002726/0.1996, allocations: 293.3 kB / 0.6419 GB, free: 10.58 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.1996, allocations: 0 / 0.6419 GB, free: 10.58 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001589/0.1998, allocations: 19.98 kB / 0.6419 GB, free: 10.56 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.848e-06/0.1998, allocations: 0 / 0.6419 GB, free: 10.56 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.979e-05/0.1998, allocations: 4 kB / 0.6419 GB, free: 10.55 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.444e-06/0.1998, allocations: 0 / 0.6419 GB, free: 10.55 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1998, allocations: 0 / 0.6419 GB, free: 10.55 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000832/0.2007, allocations: 476.8 kB / 0.6424 GB, free: 10.07 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.697e-05/0.2008, allocations: 96.8 kB / 0.6425 GB, free: 9.953 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.597e-05/0.2008, allocations: 12.06 kB / 0.6425 GB, free: 9.941 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001062/0.2009, allocations: 11.98 kB / 0.6425 GB, free: 9.93 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.501e-05/0.201, allocations: 27.95 kB / 0.6425 GB, free: 9.902 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.553e-05/0.201, allocations: 8 kB / 0.6425 GB, free: 9.895 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0002678/0.2013, allocations: 201.9 kB / 0.6427 GB, free: 9.699 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.2013, allocations: 0 / 0.6427 GB, free: 9.699 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002919/0.2016, allocations: 60.03 kB / 0.6428 GB, free: 9.641 MB / 494.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.0003165/0.202, allocations: 138.2 kB / 0.6429 GB, free: 9.5 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0004954/0.2025, allocations: 299.2 kB / 0.6432 GB, free: 9.195 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.2025, allocations: 96 / 0.6432 GB, free: 9.195 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002411/0.2027, allocations: 183.3 kB / 0.6434 GB, free: 9.004 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003131/0.203, allocations: 42.23 kB / 0.6434 GB, free: 8.965 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001079/0.2041, allocations: 0.4913 MB / 0.6439 GB, free: 8.434 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005468/0.2047, allocations: 0.7549 MB / 0.6446 GB, free: 7.656 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.267e-05/0.2048, allocations: 23.42 kB / 0.6446 GB, free: 7.633 MB / 494.1 MB Notification: Performance of SimCode: time 4.31e-07/0.2048, allocations: 0 / 0.6446 GB, free: 7.633 MB / 494.1 MB Notification: Performance of Templates: time 0.006667/0.2114, allocations: 3.005 MB / 0.6476 GB, free: 4.633 MB / 494.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)