Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00127/0.00127, allocations: 108.5 kB / 16.45 MB, free: 6.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001378/0.001378, allocations: 216.2 kB / 19.43 MB, free: 3.625 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.425/1.425, allocations: 230.6 MB / 252.8 MB, free: 8.945 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002474/0.002474, allocations: 288.6 kB / 309.1 MB, free: 3.965 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.22/1.22, allocations: 180.9 MB / 0.5333 GB, free: 13.8 MB / 382.1 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: NcDataReader2 requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: BuildingSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00293/0.00293, allocations: 98.75 kB / 0.7342 GB, free: 28.08 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1732/0.1761, allocations: 95.33 MB / 0.8273 GB, free: 9.891 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003348/0.1795, allocations: 1.99 MB / 0.8293 GB, free: 7.891 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.001291/0.1808, allocations: 0.748 MB / 0.83 GB, free: 7.137 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001045/0.1809, allocations: 7.938 kB / 0.83 GB, free: 7.129 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0002286/0.1811, allocations: 91.62 kB / 0.8301 GB, free: 7.039 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0001312/0.1812, allocations: 83.64 kB / 0.8302 GB, free: 6.957 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.000556/0.1818, allocations: 182.4 kB / 0.8304 GB, free: 6.781 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0003146/0.1821, allocations: 271.2 kB / 0.8306 GB, free: 6.516 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001411/0.1822, allocations: 45.89 kB / 0.8307 GB, free: 6.465 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001471/0.1824, allocations: 123.6 kB / 0.8308 GB, free: 6.344 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002102/0.1826, allocations: 155.5 kB / 0.8309 GB, free: 6.191 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 4.119e-05/0.1826, allocations: 24 kB / 0.8309 GB, free: 6.168 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001441/0.1828, allocations: 91.92 kB / 0.831 GB, free: 6.078 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 8.212e-05/0.1829, allocations: 59.77 kB / 0.8311 GB, free: 6.02 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0001083/0.183, allocations: 107.4 kB / 0.8312 GB, free: 5.914 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0004043/0.1834, allocations: 310.8 kB / 0.8315 GB, free: 5.609 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.1834, allocations: 4 kB / 0.8315 GB, free: 5.605 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.663e-06/0.1834, allocations: 3.938 kB / 0.8315 GB, free: 5.602 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 6.553e-06/0.1834, allocations: 0 / 0.8315 GB, free: 5.602 MB / 0.5762 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.0008815/0.1843, allocations: 0.5855 MB / 0.8321 GB, free: 4.961 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.669e-05/0.1843, allocations: 12.03 kB / 0.8321 GB, free: 4.949 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.352e-05/0.1844, allocations: 46.73 kB / 0.8321 GB, free: 4.895 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.1e-05/0.1844, allocations: 36.75 kB / 0.8322 GB, free: 4.859 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00056/0.185, allocations: 299 kB / 0.8324 GB, free: 4.527 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.038e-05/0.185, allocations: 12.38 kB / 0.8325 GB, free: 4.516 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.961e-05/0.185, allocations: 20.38 kB / 0.8325 GB, free: 4.496 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004106/0.1855, allocations: 223.6 kB / 0.8327 GB, free: 4.254 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.678e-06/0.1855, allocations: 0 / 0.8327 GB, free: 4.254 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.175e-05/0.1855, allocations: 8 kB / 0.8327 GB, free: 4.246 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.528e-06/0.1855, allocations: 0 / 0.8327 GB, free: 4.246 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002614/0.1858, allocations: 128.4 kB / 0.8328 GB, free: 4.121 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008665/0.1866, allocations: 0.6809 MB / 0.8335 GB, free: 3.383 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003713/0.187, allocations: 150.7 kB / 0.8336 GB, free: 3.227 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001907/0.1872, allocations: 96.86 kB / 0.8337 GB, free: 3.129 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 1.21e-05/0.1872, allocations: 3.938 kB / 0.8337 GB, free: 3.125 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002791/0.1875, allocations: 165 kB / 0.8339 GB, free: 2.945 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=15): time 1.433e-06/0.1875, allocations: 0 / 0.8339 GB, free: 2.945 MB / 0.5762 GB Notification: Performance of matching and sorting (n=15): time 0.0007175/0.1882, allocations: 393.4 kB / 0.8343 GB, free: 2.551 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.481e-05/0.1883, allocations: 132.5 kB / 0.8344 GB, free: 2.391 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002824/0.1886, allocations: 278.7 kB / 0.8347 GB, free: 2.109 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.846e-05/0.1886, allocations: 29.7 kB / 0.8347 GB, free: 2.074 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001238/0.1887, allocations: 164.3 kB / 0.8348 GB, free: 1.91 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 4.37e-05/0.1888, allocations: 43.64 kB / 0.8349 GB, free: 1.867 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.405e-05/0.1888, allocations: 37.72 kB / 0.8349 GB, free: 1.824 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001527/0.189, allocations: 342.8 kB / 0.8352 GB, free: 1.48 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001752/0.1892, allocations: 83.95 kB / 0.8353 GB, free: 1.398 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002162/0.1894, allocations: 143.6 kB / 0.8355 GB, free: 1.242 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003577/0.1897, allocations: 241.8 kB / 0.8357 GB, free: 0.9844 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.1897, allocations: 0 / 0.8357 GB, free: 0.9844 MB / 0.5762 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005374/0.1903, allocations: 335 kB / 0.836 GB, free: 0.6445 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 4.023e-05/0.1903, allocations: 37.69 kB / 0.836 GB, free: 0.6016 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.636e-06/0.1903, allocations: 4 kB / 0.836 GB, free: 0.5977 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.261e-05/0.1903, allocations: 0 / 0.836 GB, free: 0.5977 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001298/0.1905, allocations: 28.08 kB / 0.8361 GB, free: 0.5703 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.002e-06/0.1905, allocations: 0 / 0.8361 GB, free: 0.5703 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001249/0.1906, allocations: 27.88 kB / 0.8361 GB, free: 0.543 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.612e-05/0.1906, allocations: 4 kB / 0.8361 GB, free: 0.5391 MB / 0.5762 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.0001859/0.1908, allocations: 196 kB / 0.8363 GB, free: 340 kB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.75e-05/0.1908, allocations: 35.8 kB / 0.8363 GB, free: 304 kB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.215e-05/0.1909, allocations: 25.83 kB / 0.8364 GB, free: 280 kB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.029e-06/0.1909, allocations: 8 kB / 0.8364 GB, free: 272 kB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.1909, allocations: 0 / 0.8364 GB, free: 272 kB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.1909, allocations: 0 / 0.8364 GB, free: 272 kB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000303/0.1912, allocations: 297.3 kB / 0.8366 GB, free: 15.93 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.1912, allocations: 0 / 0.8366 GB, free: 15.93 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001065/0.1913, allocations: 15.98 kB / 0.8367 GB, free: 15.91 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.1913, allocations: 0 / 0.8367 GB, free: 15.91 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.408e-05/0.1913, allocations: 8 kB / 0.8367 GB, free: 15.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.1913, allocations: 0 / 0.8367 GB, free: 15.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.1913, allocations: 0 / 0.8367 GB, free: 15.9 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007618/0.1921, allocations: 474.4 kB / 0.8371 GB, free: 15.41 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 6.985e-05/0.1922, allocations: 104.9 kB / 0.8372 GB, free: 15.29 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.761e-05/0.1922, allocations: 4 kB / 0.8372 GB, free: 15.29 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001123/0.1923, allocations: 15.98 kB / 0.8372 GB, free: 15.27 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.002e-05/0.1924, allocations: 23.95 kB / 0.8373 GB, free: 15.25 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.182e-05/0.1924, allocations: 4 kB / 0.8373 GB, free: 15.25 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001972/0.1926, allocations: 206 kB / 0.8375 GB, free: 15.04 MB / 0.5919 GB Notification: Performance of sort global known variables: time 7e-08/0.1926, allocations: 192 / 0.8375 GB, free: 15.04 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0002895/0.1929, allocations: 63.86 kB / 0.8375 GB, free: 14.98 MB / 0.5919 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.001137/0.194, allocations: 1.034 MB / 0.8385 GB, free: 13.91 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0004834/0.1945, allocations: 263.2 kB / 0.8388 GB, free: 13.64 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.1945, allocations: 0 / 0.8388 GB, free: 13.64 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0002311/0.1948, allocations: 151.4 kB / 0.8389 GB, free: 13.48 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003096/0.1951, allocations: 38.2 kB / 0.839 GB, free: 13.45 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003511/0.1986, allocations: 2.757 MB / 0.8417 GB, free: 10.59 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003877/0.199, allocations: 0.7553 MB / 0.8424 GB, free: 9.809 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 7.217e-05/0.199, allocations: 17.55 kB / 0.8424 GB, free: 9.793 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001175/0.1992, allocations: 71.41 kB / 0.8425 GB, free: 9.723 MB / 0.5919 GB Notification: Performance of SimCode: time 3.21e-07/0.1992, allocations: 0 / 0.8425 GB, free: 9.723 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02969/0.2288, allocations: 5.405 MB / 0.8478 GB, free: 4.449 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.313/8.542, allocations: 26.08 kB / 0.8478 GB, free: 4.43 MB / 0.5919 GB " [Timeout remaining time 651] (rm -f BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor_res.csv --start-time 0 --stop-time 600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.24 BuildingSystems_BuildingSystems_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > BuildingSystems_BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.715243394020945] Failed to read output from testmodel.py, exit status != 0: 8.614559398032725 8.636950996 8.449447837 Calling exit ...