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.001842/0.001842, allocations: 101.3 kB / 19.73 MB, free: 2.133 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.002638/0.002638, allocations: 218.7 kB / 23.03 MB, free: 4.949 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.469/1.469, allocations: 230.6 MB / 256.8 MB, free: 7.812 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.00268/0.00268, allocations: 282 kB / 313.5 MB, free: 2.637 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.271/1.271, allocations: 180.6 MB / 0.5377 GB, free: 14.45 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="cs",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.002915/0.002915, allocations: 99.25 kB / 0.7402 GB, free: 28.44 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1755/0.1784, allocations: 95.39 MB / 0.8334 GB, free: 8.375 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003591/0.182, allocations: 1.929 MB / 0.8353 GB, free: 6.434 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.001524/0.1835, allocations: 0.6974 MB / 0.836 GB, free: 5.73 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001967/0.1837, allocations: 8 kB / 0.836 GB, free: 5.723 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0002916/0.184, allocations: 83.62 kB / 0.836 GB, free: 5.641 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0002098/0.1842, allocations: 87.58 kB / 0.8361 GB, free: 5.555 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007678/0.185, allocations: 192.6 kB / 0.8363 GB, free: 5.367 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0005099/0.1855, allocations: 263.2 kB / 0.8366 GB, free: 5.109 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001903/0.1857, allocations: 50.16 kB / 0.8366 GB, free: 5.055 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000259/0.1859, allocations: 123.6 kB / 0.8367 GB, free: 4.934 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002911/0.1862, allocations: 155.5 kB / 0.8369 GB, free: 4.781 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 5.82e-05/0.1863, allocations: 20 kB / 0.8369 GB, free: 4.762 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00019/0.1865, allocations: 95.92 kB / 0.837 GB, free: 4.668 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001102/0.1866, allocations: 59.78 kB / 0.837 GB, free: 4.609 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0001221/0.1867, allocations: 83.52 kB / 0.8371 GB, free: 4.527 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0005403/0.1872, allocations: 318.7 kB / 0.8374 GB, free: 4.215 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.1872, allocations: 0 / 0.8374 GB, free: 4.215 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.863e-06/0.1872, allocations: 0 / 0.8374 GB, free: 4.215 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.176e-05/0.1872, allocations: 0 / 0.8374 GB, free: 4.215 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.001056/0.1883, allocations: 0.5102 MB / 0.8379 GB, free: 3.668 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.778e-05/0.1884, allocations: 9.938 kB / 0.8379 GB, free: 3.66 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.427e-05/0.1884, allocations: 8.188 kB / 0.8379 GB, free: 3.652 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.398e-05/0.1884, allocations: 54.67 kB / 0.838 GB, free: 3.59 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.291e-05/0.1885, allocations: 32.75 kB / 0.838 GB, free: 3.559 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005404/0.1891, allocations: 245.2 kB / 0.8383 GB, free: 3.293 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.589e-05/0.1891, allocations: 16.31 kB / 0.8383 GB, free: 3.277 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.66e-05/0.1891, allocations: 16.12 kB / 0.8383 GB, free: 3.262 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004792/0.1896, allocations: 305.5 kB / 0.8386 GB, free: 2.922 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.273e-05/0.1896, allocations: 8 kB / 0.8386 GB, free: 2.914 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.203e-05/0.1896, allocations: 4 kB / 0.8386 GB, free: 2.91 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.905e-06/0.1897, allocations: 4 kB / 0.8386 GB, free: 2.906 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000296/0.19, allocations: 162 kB / 0.8388 GB, free: 2.742 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009059/0.1909, allocations: 0.6137 MB / 0.8394 GB, free: 2.078 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000403/0.1913, allocations: 184.4 kB / 0.8395 GB, free: 1.883 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001923/0.1915, allocations: 116.7 kB / 0.8396 GB, free: 1.762 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 2.333e-05/0.1915, allocations: 7.984 kB / 0.8396 GB, free: 1.754 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003399/0.1918, allocations: 202.8 kB / 0.8398 GB, free: 1.531 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=15): time 1.824e-06/0.1918, allocations: 0 / 0.8398 GB, free: 1.531 MB / 0.5762 GB Notification: Performance of matching and sorting (n=15): time 0.0008173/0.1926, allocations: 445.3 kB / 0.8403 GB, free: 1.074 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001009/0.1927, allocations: 140.5 kB / 0.8404 GB, free: 0.9062 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003166/0.1931, allocations: 277.9 kB / 0.8407 GB, free: 0.625 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.39e-05/0.1931, allocations: 33.7 kB / 0.8407 GB, free: 0.5859 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001315/0.1932, allocations: 156.3 kB / 0.8408 GB, free: 440 kB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 4.879e-05/0.1933, allocations: 47.64 kB / 0.8409 GB, free: 392 kB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.033e-05/0.1933, allocations: 37.72 kB / 0.8409 GB, free: 348 kB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001586/0.1935, allocations: 338.8 kB / 0.8413 GB, free: 0 / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002088/0.1937, allocations: 113.7 kB / 0.8414 GB, free: 15.88 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002544/0.194, allocations: 218.2 kB / 0.8416 GB, free: 15.63 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003703/0.1943, allocations: 248.8 kB / 0.8418 GB, free: 15.37 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.1943, allocations: 0 / 0.8418 GB, free: 15.37 MB / 0.5919 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005699/0.1949, allocations: 372.8 kB / 0.8422 GB, free: 14.98 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 4.035e-05/0.195, allocations: 37.69 kB / 0.8422 GB, free: 14.94 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-06/0.195, allocations: 4 kB / 0.8422 GB, free: 14.94 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.405e-05/0.195, allocations: 96 / 0.8422 GB, free: 14.94 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001401/0.1951, allocations: 39.92 kB / 0.8422 GB, free: 14.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.482e-06/0.1951, allocations: 0 / 0.8422 GB, free: 14.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001274/0.1952, allocations: 23.88 kB / 0.8423 GB, free: 14.88 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.297e-05/0.1953, allocations: 11.94 kB / 0.8423 GB, free: 14.86 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.0002073/0.1955, allocations: 192.1 kB / 0.8425 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.224e-05/0.1955, allocations: 23.86 kB / 0.8425 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.724e-05/0.1956, allocations: 29.77 kB / 0.8425 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.015e-06/0.1956, allocations: 4 kB / 0.8425 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.1956, allocations: 0 / 0.8425 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.1956, allocations: 96 / 0.8425 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002616/0.1959, allocations: 248.4 kB / 0.8427 GB, free: 14.32 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.1959, allocations: 0 / 0.8427 GB, free: 14.32 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001084/0.196, allocations: 15.98 kB / 0.8428 GB, free: 14.3 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.092e-06/0.196, allocations: 4 kB / 0.8428 GB, free: 14.3 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.967e-05/0.196, allocations: 7.922 kB / 0.8428 GB, free: 14.29 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.018e-06/0.196, allocations: 4 kB / 0.8428 GB, free: 14.29 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.196, allocations: 0 / 0.8428 GB, free: 14.29 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008243/0.1968, allocations: 0.5251 MB / 0.8433 GB, free: 13.73 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 4.685e-05/0.1969, allocations: 31.77 kB / 0.8433 GB, free: 13.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.788e-05/0.1969, allocations: 8 kB / 0.8433 GB, free: 13.69 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001043/0.197, allocations: 11.98 kB / 0.8433 GB, free: 13.68 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.114e-05/0.1971, allocations: 23.95 kB / 0.8434 GB, free: 13.65 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.746e-05/0.1971, allocations: 11.98 kB / 0.8434 GB, free: 13.64 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002066/0.1973, allocations: 209.1 kB / 0.8436 GB, free: 13.44 MB / 0.5919 GB Notification: Performance of sort global known variables: time 8e-08/0.1973, allocations: 0 / 0.8436 GB, free: 13.44 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0002977/0.1976, allocations: 51.94 kB / 0.8436 GB, free: 13.39 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.001203/0.1988, allocations: 1.092 MB / 0.8447 GB, free: 12.25 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0005233/0.1994, allocations: 326.6 kB / 0.845 GB, free: 11.91 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.1994, allocations: 0 / 0.845 GB, free: 11.91 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0002531/0.1996, allocations: 193.2 kB / 0.8452 GB, free: 11.7 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003025/0.1999, allocations: 31.06 kB / 0.8452 GB, free: 11.67 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003887/0.2038, allocations: 2.933 MB / 0.8481 GB, free: 8.602 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001488/0.2039, allocations: 141.2 kB / 0.8482 GB, free: 8.445 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 9.122e-05/0.204, allocations: 17.48 kB / 0.8482 GB, free: 8.426 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001283/0.2042, allocations: 71.41 kB / 0.8483 GB, free: 8.355 MB / 0.5919 GB Notification: Performance of SimCode: time 5.61e-07/0.2042, allocations: 0 / 0.8483 GB, free: 8.355 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02824/0.2324, allocations: 5.787 MB / 0.8539 GB, free: 2.766 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.02/11.25, allocations: 14.12 kB / 0.854 GB, free: 2.754 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --stepSize=0.24 --timeout=50 --tolerance=1e-06 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: 15.655039731995203] Failed to read output from testmodel.py, exit status != 0: 11.418383794953115 11.447979768 11.254807563 Calling exit ...