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.001395/0.001395, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001611/0.001611, allocations: 216.6 kB / 22.25 MB, free: 5.078 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.417/1.417, allocations: 230.6 MB / 256 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.002422/0.002422, allocations: 287.5 kB / 312.7 MB, free: 2.781 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 1.214/1.214, allocations: 180.6 MB / 0.5369 GB, free: 12.99 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 master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 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.002883/0.002883, allocations: 104.9 kB / 0.7396 GB, free: 28.18 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1699/0.1727, allocations: 95.38 MB / 0.8327 GB, free: 8.672 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003813/0.1766, allocations: 2.011 MB / 0.8347 GB, free: 6.648 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.001372/0.1779, allocations: 0.748 MB / 0.8354 GB, free: 5.895 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001161/0.178, allocations: 7.938 kB / 0.8354 GB, free: 5.887 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0002675/0.1783, allocations: 83.62 kB / 0.8355 GB, free: 5.805 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0001444/0.1785, allocations: 91.62 kB / 0.8356 GB, free: 5.715 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006124/0.1791, allocations: 189.8 kB / 0.8358 GB, free: 5.531 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.000327/0.1794, allocations: 259.2 kB / 0.836 GB, free: 5.277 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001511/0.1795, allocations: 46.17 kB / 0.8361 GB, free: 5.227 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000165/0.1797, allocations: 123.6 kB / 0.8362 GB, free: 5.105 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000242/0.1799, allocations: 163.5 kB / 0.8363 GB, free: 4.945 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 4.733e-05/0.18, allocations: 20 kB / 0.8363 GB, free: 4.926 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001597/0.1802, allocations: 99.86 kB / 0.8364 GB, free: 4.828 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 8.917e-05/0.1802, allocations: 59.78 kB / 0.8365 GB, free: 4.77 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0001147/0.1804, allocations: 99.41 kB / 0.8366 GB, free: 4.672 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0004045/0.1808, allocations: 318.6 kB / 0.8369 GB, free: 4.359 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.1808, allocations: 0 / 0.8369 GB, free: 4.359 MB / 0.5762 GB Notification: Performance of FrontEnd: time 4.558e-06/0.1808, allocations: 4 kB / 0.8369 GB, free: 4.355 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 5.871e-06/0.1808, allocations: 0 / 0.8369 GB, free: 4.355 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.0008588/0.1816, allocations: 0.5141 MB / 0.8374 GB, free: 3.805 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.089e-05/0.1817, allocations: 13.34 kB / 0.8374 GB, free: 3.793 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.732e-05/0.1817, allocations: 46.73 kB / 0.8375 GB, free: 3.738 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.11e-05/0.1818, allocations: 32.75 kB / 0.8375 GB, free: 3.707 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004899/0.1823, allocations: 241.2 kB / 0.8377 GB, free: 3.445 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.616e-05/0.1823, allocations: 16.38 kB / 0.8377 GB, free: 3.43 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.995e-05/0.1823, allocations: 12.38 kB / 0.8378 GB, free: 3.418 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003858/0.1827, allocations: 227.5 kB / 0.838 GB, free: 3.172 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.738e-06/0.1827, allocations: 4 kB / 0.838 GB, free: 3.168 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.955e-05/0.1828, allocations: 8 kB / 0.838 GB, free: 3.16 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.1828, allocations: 0 / 0.838 GB, free: 3.16 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002524/0.183, allocations: 132.3 kB / 0.8381 GB, free: 3.031 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000854/0.1839, allocations: 0.6488 MB / 0.8387 GB, free: 2.332 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003433/0.1842, allocations: 154.6 kB / 0.8389 GB, free: 2.172 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001601/0.1844, allocations: 92.75 kB / 0.839 GB, free: 2.078 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 1.787e-05/0.1844, allocations: 4 kB / 0.839 GB, free: 2.074 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000278/0.1847, allocations: 169 kB / 0.8391 GB, free: 1.891 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=15): time 1.273e-06/0.1847, allocations: 0 / 0.8391 GB, free: 1.891 MB / 0.5762 GB Notification: Performance of matching and sorting (n=15): time 0.0006699/0.1853, allocations: 382 kB / 0.8395 GB, free: 1.508 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.718e-05/0.1854, allocations: 132.5 kB / 0.8396 GB, free: 1.348 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002842/0.1857, allocations: 281.9 kB / 0.8399 GB, free: 1.062 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.804e-05/0.1857, allocations: 33.7 kB / 0.8399 GB, free: 1.023 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001252/0.1859, allocations: 160.3 kB / 0.8401 GB, free: 0.8633 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 4.187e-05/0.1859, allocations: 43.64 kB / 0.8401 GB, free: 0.8203 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.974e-05/0.186, allocations: 37.7 kB / 0.8402 GB, free: 0.7773 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001499/0.1861, allocations: 342.8 kB / 0.8405 GB, free: 444 kB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001647/0.1863, allocations: 87.95 kB / 0.8406 GB, free: 356 kB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000196/0.1865, allocations: 137 kB / 0.8407 GB, free: 200 kB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003393/0.1868, allocations: 238.1 kB / 0.8409 GB, free: 15.94 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.1868, allocations: 0 / 0.8409 GB, free: 15.94 MB / 0.5919 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005033/0.1873, allocations: 339 kB / 0.8413 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 4.116e-05/0.1874, allocations: 37.69 kB / 0.8413 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.1874, allocations: 0 / 0.8413 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.488e-05/0.1874, allocations: 4 kB / 0.8413 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001208/0.1875, allocations: 24.08 kB / 0.8413 GB, free: 15.52 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.174e-06/0.1875, allocations: 7.938 kB / 0.8413 GB, free: 15.52 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001149/0.1876, allocations: 23.81 kB / 0.8413 GB, free: 15.49 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.828e-05/0.1877, allocations: 12.09 kB / 0.8414 GB, free: 15.48 MB / 0.5919 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.0001781/0.1878, allocations: 194.5 kB / 0.8415 GB, free: 15.28 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.437e-05/0.1879, allocations: 35.8 kB / 0.8416 GB, free: 15.24 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.824e-05/0.1879, allocations: 25.77 kB / 0.8416 GB, free: 15.22 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.834e-06/0.1879, allocations: 0 / 0.8416 GB, free: 15.22 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-06/0.1879, allocations: 0 / 0.8416 GB, free: 15.22 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.1879, allocations: 0 / 0.8416 GB, free: 15.22 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000259/0.1882, allocations: 272.3 kB / 0.8419 GB, free: 14.91 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.1882, allocations: 4 kB / 0.8419 GB, free: 14.91 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001011/0.1883, allocations: 19.98 kB / 0.8419 GB, free: 14.89 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.1883, allocations: 3.938 kB / 0.8419 GB, free: 14.89 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.718e-05/0.1883, allocations: 4 kB / 0.8419 GB, free: 14.88 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.1883, allocations: 0 / 0.8419 GB, free: 14.88 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.1883, allocations: 3.984 kB / 0.8419 GB, free: 14.88 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007195/0.189, allocations: 470.4 kB / 0.8423 GB, free: 14.39 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 3.976e-05/0.1891, allocations: 27.83 kB / 0.8424 GB, free: 14.37 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.015e-05/0.1891, allocations: 8 kB / 0.8424 GB, free: 14.36 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001015/0.1892, allocations: 11.98 kB / 0.8424 GB, free: 14.35 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.308e-05/0.1893, allocations: 27.95 kB / 0.8424 GB, free: 14.32 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.896e-05/0.1893, allocations: 7.938 kB / 0.8424 GB, free: 14.31 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001928/0.1895, allocations: 205.2 kB / 0.8426 GB, free: 14.11 MB / 0.5919 GB Notification: Performance of sort global known variables: time 8e-08/0.1895, allocations: 0 / 0.8426 GB, free: 14.11 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.000271/0.1898, allocations: 55.88 kB / 0.8427 GB, free: 14.06 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.00107/0.1908, allocations: 1.032 MB / 0.8437 GB, free: 13 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0004497/0.1913, allocations: 267.2 kB / 0.8439 GB, free: 12.72 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.1913, allocations: 0 / 0.8439 GB, free: 12.72 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0002191/0.1915, allocations: 151.4 kB / 0.8441 GB, free: 12.56 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002698/0.1918, allocations: 31.05 kB / 0.8441 GB, free: 12.54 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00335/0.1951, allocations: 2.763 MB / 0.8468 GB, free: 9.672 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003672/0.1955, allocations: 0.7515 MB / 0.8475 GB, free: 8.895 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 7.611e-05/0.1956, allocations: 21.48 kB / 0.8476 GB, free: 8.867 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001088/0.1957, allocations: 75.34 kB / 0.8476 GB, free: 8.793 MB / 0.5919 GB Notification: Performance of SimCode: time 3.51e-07/0.1957, allocations: 0 / 0.8476 GB, free: 8.793 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0316/0.2273, allocations: 5.578 MB / 0.8531 GB, free: 3.363 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.33/10.56, allocations: 17.34 kB / 0.8531 GB, free: 3.355 MB / 0.5919 GB " [Timeout remaining time 649] (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: 14.734368866997102] Failed to read output from testmodel.py, exit status != 0: 10.660192613999243 10.67604105 10.492213519 Calling exit ...