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: "" <> buildModelFMU(IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="IBPSA_latest_IBPSA_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.001568/0.001568, allocations: 102.8 kB / 16.4 MB, free: 6.492 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.00182/0.001821, allocations: 195.8 kB / 17.34 MB, free: 5.766 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.43/1.43, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7518/0.7518, allocations: 115.3 MB / 406.5 MB, free: 6.105 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00154/0.00154, allocations: 65.77 kB / 0.5572 GB, free: 32.57 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1707/0.1723, allocations: 76.18 MB / 0.6316 GB, free: 5.023 MB / 478.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003263/0.1756, allocations: 1.936 MB / 0.6335 GB, free: 3.066 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.001379/0.177, allocations: 0.709 MB / 0.6342 GB, free: 2.352 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001974/0.1772, allocations: 4 kB / 0.6342 GB, free: 2.348 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002732/0.1775, allocations: 87.64 kB / 0.6342 GB, free: 2.262 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001894/0.1778, allocations: 95.55 kB / 0.6343 GB, free: 2.168 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007038/0.1785, allocations: 186.5 kB / 0.6345 GB, free: 1.988 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.000408/0.1789, allocations: 259.5 kB / 0.6348 GB, free: 1.734 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001984/0.1791, allocations: 72.69 kB / 0.6348 GB, free: 1.668 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002129/0.1793, allocations: 115.7 kB / 0.6349 GB, free: 1.555 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002377/0.1796, allocations: 151.5 kB / 0.6351 GB, free: 1.406 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 4.285e-05/0.1796, allocations: 23.98 kB / 0.6351 GB, free: 1.383 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000155/0.1798, allocations: 103.9 kB / 0.6352 GB, free: 1.281 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 9.419e-05/0.1799, allocations: 47.84 kB / 0.6353 GB, free: 1.234 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001116/0.18, allocations: 115.3 kB / 0.6354 GB, free: 1.121 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003831/0.1804, allocations: 307.9 kB / 0.6357 GB, free: 0.8203 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.93e-06/0.1804, allocations: 0 / 0.6357 GB, free: 0.8203 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.664e-06/0.1804, allocations: 0 / 0.6357 GB, free: 0.8203 MB / 478.1 MB Notification: Performance of Transformations before backend: time 9.077e-06/0.1804, allocations: 0 / 0.6357 GB, free: 0.8203 MB / 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.0009091/0.1813, allocations: 0.578 MB / 0.6362 GB, free: 192 kB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.1814, allocations: 12.03 kB / 0.6362 GB, free: 180 kB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.974e-05/0.1814, allocations: 50.67 kB / 0.6363 GB, free: 120 kB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.766e-05/0.1815, allocations: 32.56 kB / 0.6363 GB, free: 88 kB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005036/0.182, allocations: 302.9 kB / 0.6366 GB, free: 15.75 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.147e-05/0.1821, allocations: 12.38 kB / 0.6366 GB, free: 15.74 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.667e-05/0.1821, allocations: 20.38 kB / 0.6366 GB, free: 15.72 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004039/0.1825, allocations: 227.5 kB / 0.6368 GB, free: 15.47 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.144e-05/0.1825, allocations: 0 / 0.6368 GB, free: 15.47 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.829e-05/0.1826, allocations: 4 kB / 0.6369 GB, free: 15.47 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.993e-06/0.1826, allocations: 4 kB / 0.6369 GB, free: 15.46 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002685/0.1828, allocations: 132.3 kB / 0.637 GB, free: 15.34 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009521/0.1838, allocations: 0.6768 MB / 0.6376 GB, free: 14.6 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003635/0.1842, allocations: 178.6 kB / 0.6378 GB, free: 14.42 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001597/0.1843, allocations: 92.83 kB / 0.6379 GB, free: 14.32 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.713e-05/0.1844, allocations: 4 kB / 0.6379 GB, free: 14.32 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002822/0.1847, allocations: 165 kB / 0.6381 GB, free: 14.14 MB / 494.1 MB Notification: Performance of pre-optimization done (n=15): time 1.422e-06/0.1847, allocations: 4 kB / 0.6381 GB, free: 14.14 MB / 494.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006905/0.1854, allocations: 377.9 kB / 0.6384 GB, free: 13.76 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.128e-05/0.1854, allocations: 136.5 kB / 0.6386 GB, free: 13.59 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002733/0.1857, allocations: 278.6 kB / 0.6388 GB, free: 13.31 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.857e-05/0.1858, allocations: 33.7 kB / 0.6389 GB, free: 13.27 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001025/0.1859, allocations: 156.2 kB / 0.639 GB, free: 13.12 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.568e-05/0.1859, allocations: 39.45 kB / 0.639 GB, free: 13.08 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.516e-05/0.186, allocations: 45.8 kB / 0.6391 GB, free: 13.03 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001249/0.1861, allocations: 342.7 kB / 0.6394 GB, free: 12.68 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001656/0.1863, allocations: 87.95 kB / 0.6395 GB, free: 12.6 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001814/0.1865, allocations: 137.7 kB / 0.6396 GB, free: 12.45 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003295/0.1868, allocations: 252.6 kB / 0.6399 GB, free: 12.18 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.1868, allocations: 0 / 0.6399 GB, free: 12.18 MB / 494.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005075/0.1874, allocations: 323 kB / 0.6402 GB, free: 11.85 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.852e-05/0.1874, allocations: 45.78 kB / 0.6402 GB, free: 11.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-06/0.1874, allocations: 0 / 0.6402 GB, free: 11.8 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.529e-05/0.1874, allocations: 4 kB / 0.6402 GB, free: 11.79 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001197/0.1876, allocations: 19.98 kB / 0.6402 GB, free: 11.77 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.498e-06/0.1876, allocations: 3.938 kB / 0.6402 GB, free: 11.77 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001179/0.1877, allocations: 23.83 kB / 0.6403 GB, free: 11.75 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.129e-05/0.1877, allocations: 12 kB / 0.6403 GB, free: 11.73 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.0001562/0.1879, allocations: 196 kB / 0.6405 GB, free: 11.53 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.618e-05/0.1879, allocations: 27.72 kB / 0.6405 GB, free: 11.5 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.142e-05/0.188, allocations: 29.83 kB / 0.6405 GB, free: 11.46 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.188, allocations: 0 / 0.6405 GB, free: 11.46 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.72e-06/0.1881, allocations: 0 / 0.6405 GB, free: 11.46 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.1881, allocations: 0 / 0.6405 GB, free: 11.46 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002457/0.1883, allocations: 297.3 kB / 0.6408 GB, free: 11.12 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.1883, allocations: 0 / 0.6408 GB, free: 11.12 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001032/0.1884, allocations: 19.92 kB / 0.6408 GB, free: 11.11 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.1884, allocations: 0 / 0.6408 GB, free: 11.11 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.942e-05/0.1885, allocations: 4 kB / 0.6408 GB, free: 11.1 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.1885, allocations: 4 kB / 0.6408 GB, free: 11.1 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.1885, allocations: 0 / 0.6408 GB, free: 11.1 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006899/0.1892, allocations: 466.4 kB / 0.6413 GB, free: 10.62 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.941e-05/0.1893, allocations: 96.77 kB / 0.6414 GB, free: 10.5 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.843e-05/0.1893, allocations: 8 kB / 0.6414 GB, free: 10.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001005/0.1894, allocations: 16.05 kB / 0.6414 GB, free: 10.48 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.777e-05/0.1895, allocations: 31.89 kB / 0.6414 GB, free: 10.45 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.192e-05/0.1895, allocations: 8 kB / 0.6414 GB, free: 10.44 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001745/0.1897, allocations: 201.9 kB / 0.6416 GB, free: 10.25 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1897, allocations: 0 / 0.6416 GB, free: 10.25 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002835/0.19, allocations: 67.95 kB / 0.6417 GB, free: 10.18 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.001018/0.191, allocations: 1.022 MB / 0.6427 GB, free: 9.125 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0004776/0.1915, allocations: 295.4 kB / 0.643 GB, free: 8.824 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.1915, allocations: 0 / 0.643 GB, free: 8.824 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002297/0.1918, allocations: 191.5 kB / 0.6431 GB, free: 8.625 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002963/0.1921, allocations: 42.78 kB / 0.6432 GB, free: 8.586 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003628/0.1957, allocations: 2.772 MB / 0.6459 GB, free: 5.703 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003583/0.1961, allocations: 0.7509 MB / 0.6466 GB, free: 4.93 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 9.19e-05/0.1962, allocations: 25.53 kB / 0.6467 GB, free: 4.902 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001054/0.1963, allocations: 71.42 kB / 0.6467 GB, free: 4.832 MB / 494.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1963, allocations: 0 / 0.6467 GB, free: 4.832 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02545/0.2218, allocations: 5.484 MB / 0.6521 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.449/7.671, allocations: 10.09 kB / 0.6521 GB, free: 15.44 MB / 0.4981 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > IBPSA_latest_IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)