Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildSysPro_BuildSysPro.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/BuildSysPro 3.6.0/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/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(BuildSysPro.IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="BuildSysPro_BuildSysPro_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.007476/0.007476, allocations: 102.7 kB / 15.73 MB, free: 6.031 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.001291/0.001291, allocations: 190.1 kB / 16.67 MB, free: 5.953 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.396/1.396, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/Building/BuildingEnvelope/HeatTransfer/package.mo:2:1-40:17:writable] Warning: Soil_case_nappe was referenced in the package.order file, but was not found in package.mo, Soil_case_nappe/package.mo or Soil_case_nappe.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/package.mo): time 0.8855/0.8855, allocations: 143.1 MB / 433.6 MB, free: 11.93 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001364/0.001364, allocations: 63.97 kB / 0.595 GB, free: 12.78 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1757/0.177, allocations: 82.04 MB / 0.6752 GB, free: 10.85 MB / 0.5137 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003301/0.1804, allocations: 1.943 MB / 0.677 GB, free: 8.895 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.001273/0.1817, allocations: 0.7129 MB / 0.6777 GB, free: 8.176 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001635/0.1819, allocations: 0 / 0.6777 GB, free: 8.176 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0002566/0.1821, allocations: 83.62 kB / 0.6778 GB, free: 8.094 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.0001595/0.1823, allocations: 91.58 kB / 0.6779 GB, free: 8.004 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006543/0.183, allocations: 187.6 kB / 0.6781 GB, free: 7.82 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.0003484/0.1833, allocations: 263.4 kB / 0.6783 GB, free: 7.562 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001697/0.1835, allocations: 76.67 kB / 0.6784 GB, free: 7.492 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001767/0.1837, allocations: 111.7 kB / 0.6785 GB, free: 7.383 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002278/0.1839, allocations: 151.5 kB / 0.6787 GB, free: 7.234 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 4.521e-05/0.184, allocations: 24 kB / 0.6787 GB, free: 7.211 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001634/0.1842, allocations: 95.92 kB / 0.6788 GB, free: 7.117 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 9.158e-05/0.1843, allocations: 55.77 kB / 0.6788 GB, free: 7.062 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0001165/0.1844, allocations: 111.3 kB / 0.6789 GB, free: 6.953 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.000388/0.1848, allocations: 311.8 kB / 0.6792 GB, free: 6.648 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 6.092e-06/0.1848, allocations: 3.984 kB / 0.6792 GB, free: 6.645 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.723e-06/0.1848, allocations: 0 / 0.6792 GB, free: 6.645 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 7.555e-06/0.1848, allocations: 0 / 0.6792 GB, free: 6.645 MB / 0.5137 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.0009555/0.1858, allocations: 0.5819 MB / 0.6798 GB, free: 6.008 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.549e-05/0.1858, allocations: 8.031 kB / 0.6798 GB, free: 6 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.807e-05/0.1859, allocations: 50.67 kB / 0.6799 GB, free: 5.941 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.951e-05/0.186, allocations: 36.56 kB / 0.6799 GB, free: 5.906 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005058/0.1865, allocations: 310.8 kB / 0.6802 GB, free: 5.559 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.232e-05/0.1865, allocations: 8.375 kB / 0.6802 GB, free: 5.551 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.951e-05/0.1865, allocations: 16.38 kB / 0.6802 GB, free: 5.535 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003879/0.1869, allocations: 219.9 kB / 0.6804 GB, free: 5.297 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.097e-05/0.187, allocations: 0 / 0.6804 GB, free: 5.297 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.448e-05/0.187, allocations: 12 kB / 0.6804 GB, free: 5.285 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/0.187, allocations: 4 kB / 0.6804 GB, free: 5.281 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000263/0.1873, allocations: 132.3 kB / 0.6806 GB, free: 5.152 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009697/0.1883, allocations: 0.6884 MB / 0.6812 GB, free: 4.406 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003572/0.1886, allocations: 162.5 kB / 0.6814 GB, free: 4.238 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001565/0.1888, allocations: 96.95 kB / 0.6815 GB, free: 4.141 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 1.617e-05/0.1888, allocations: 0 / 0.6815 GB, free: 4.141 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002947/0.1891, allocations: 180.3 kB / 0.6817 GB, free: 3.949 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=15): time 1.443e-06/0.1891, allocations: 0 / 0.6817 GB, free: 3.949 MB / 0.5137 GB Notification: Performance of matching and sorting (n=15): time 0.0006867/0.1898, allocations: 370.9 kB / 0.682 GB, free: 3.574 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.537e-05/0.1899, allocations: 136.5 kB / 0.6821 GB, free: 3.41 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002742/0.1902, allocations: 286.5 kB / 0.6824 GB, free: 3.121 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 2.907e-05/0.1902, allocations: 29.7 kB / 0.6824 GB, free: 3.086 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001097/0.1903, allocations: 160.3 kB / 0.6826 GB, free: 2.926 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 4.361e-05/0.1904, allocations: 39.36 kB / 0.6826 GB, free: 2.887 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.874e-05/0.1905, allocations: 41.7 kB / 0.6827 GB, free: 2.84 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001352/0.1906, allocations: 342.8 kB / 0.683 GB, free: 2.496 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001656/0.1908, allocations: 83.95 kB / 0.6831 GB, free: 2.414 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001873/0.191, allocations: 133.1 kB / 0.6832 GB, free: 2.266 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003134/0.1913, allocations: 236.8 kB / 0.6834 GB, free: 2.012 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.1913, allocations: 0 / 0.6834 GB, free: 2.012 MB / 0.5137 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004725/0.1918, allocations: 334.9 kB / 0.6838 GB, free: 1.672 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 4.439e-05/0.1919, allocations: 41.69 kB / 0.6838 GB, free: 1.625 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.732e-06/0.1919, allocations: 0 / 0.6838 GB, free: 1.625 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.686e-05/0.1919, allocations: 4 kB / 0.6838 GB, free: 1.621 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001299/0.192, allocations: 23.92 kB / 0.6838 GB, free: 1.598 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.366e-06/0.192, allocations: 4 kB / 0.6838 GB, free: 1.594 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001214/0.1922, allocations: 23.83 kB / 0.6839 GB, free: 1.57 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.965e-05/0.1922, allocations: 8 kB / 0.6839 GB, free: 1.562 MB / 0.5137 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.0001762/0.1924, allocations: 197 kB / 0.684 GB, free: 1.355 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.96e-05/0.1924, allocations: 31.66 kB / 0.6841 GB, free: 1.324 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.221e-05/0.1925, allocations: 29.83 kB / 0.6841 GB, free: 1.293 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.1925, allocations: 0 / 0.6841 GB, free: 1.293 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.1925, allocations: 96 / 0.6841 GB, free: 1.293 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.1925, allocations: 7.938 kB / 0.6841 GB, free: 1.285 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002391/0.1928, allocations: 301.4 kB / 0.6844 GB, free: 0.9414 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.1928, allocations: 0 / 0.6844 GB, free: 0.9414 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001041/0.1929, allocations: 16 kB / 0.6844 GB, free: 0.9258 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.434e-06/0.1929, allocations: 0 / 0.6844 GB, free: 0.9258 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.34e-05/0.1929, allocations: 15.98 kB / 0.6844 GB, free: 0.9102 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.1929, allocations: 0 / 0.6844 GB, free: 0.9102 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.1929, allocations: 0 / 0.6844 GB, free: 0.9102 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006988/0.1936, allocations: 462.3 kB / 0.6849 GB, free: 444 kB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 6.534e-05/0.1937, allocations: 104.8 kB / 0.685 GB, free: 320 kB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.448e-05/0.1938, allocations: 8 kB / 0.685 GB, free: 312 kB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001099/0.1939, allocations: 11.98 kB / 0.685 GB, free: 300 kB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.752e-05/0.194, allocations: 27.97 kB / 0.685 GB, free: 272 kB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.447e-05/0.194, allocations: 7.984 kB / 0.685 GB, free: 264 kB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0001784/0.1942, allocations: 202 kB / 0.6852 GB, free: 64 kB / 0.5137 GB Notification: Performance of sort global known variables: time 1.7e-07/0.1942, allocations: 0 / 0.6852 GB, free: 64 kB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0003052/0.1945, allocations: 63.84 kB / 0.6853 GB, free: 0 / 0.5137 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.001036/0.1955, allocations: 1.03 MB / 0.6863 GB, free: 14.94 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0004494/0.196, allocations: 295.4 kB / 0.6866 GB, free: 14.64 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.196, allocations: 0 / 0.6866 GB, free: 14.64 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0002115/0.1962, allocations: 183.3 kB / 0.6867 GB, free: 14.45 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003083/0.1965, allocations: 35.34 kB / 0.6868 GB, free: 14.41 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00335/0.1999, allocations: 2.786 MB / 0.6895 GB, free: 11.52 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003041/0.2002, allocations: 0.7514 MB / 0.6902 GB, free: 10.75 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 8.011e-05/0.2003, allocations: 17.55 kB / 0.6902 GB, free: 10.73 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001132/0.2004, allocations: 71.41 kB / 0.6903 GB, free: 10.66 MB / 0.5294 GB Notification: Performance of SimCode: time 4.61e-07/0.2004, allocations: 3.938 kB / 0.6903 GB, free: 10.66 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.025/0.2255, allocations: 5.506 MB / 0.6957 GB, free: 5.262 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.76/7.986, allocations: 3.938 kB / 0.6957 GB, free: 5.258 MB / 0.5294 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1)