Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.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) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001338/0.001338, allocations: 113.9 kB / 18.94 MB, free: 2.93 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001905/0.001905, allocations: 189 kB / 22.22 MB, free: 5.105 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.454/1.454, allocations: 225.6 MB / 251 MB, free: 13.01 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8437/0.8437, allocations: 134 MB / 440.3 MB, free: 200 kB / 334.1 MB
"
[Timeout remaining time 179]
Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.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: translateModel(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor")
translateModel(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.00194/0.00194, allocations: 72.47 kB / 0.6107 GB, free: 13.65 MB / 446.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.1813/0.1832, allocations: 84.72 MB / 0.6935 GB, free: 9.004 MB / 0.5137 GB
Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003435/0.1867, allocations: 1.978 MB / 0.6954 GB, free: 7.012 MB / 0.5137 GB
Notification: Performance of NFInst.instExpressions: time 0.001295/0.188, allocations: 0.7207 MB / 0.6961 GB, free: 6.289 MB / 0.5137 GB
Notification: Performance of NFInst.updateImplicitVariability: time 9.909e-05/0.1881, allocations: 3.938 kB / 0.6961 GB, free: 6.285 MB / 0.5137 GB
Notification: Performance of NFTyping.typeComponents: time 0.0002345/0.1883, allocations: 91.64 kB / 0.6962 GB, free: 6.195 MB / 0.5137 GB
Notification: Performance of NFTyping.typeBindings: time 0.0001352/0.1884, allocations: 87.61 kB / 0.6963 GB, free: 6.109 MB / 0.5137 GB
Notification: Performance of NFTyping.typeClassSections: time 0.0005773/0.189, allocations: 187.2 kB / 0.6964 GB, free: 5.93 MB / 0.5137 GB
Notification: Performance of NFFlatten.flatten: time 0.0003223/0.1893, allocations: 267.4 kB / 0.6967 GB, free: 5.668 MB / 0.5137 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.000154/0.1895, allocations: 50.17 kB / 0.6968 GB, free: 5.621 MB / 0.5137 GB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001546/0.1897, allocations: 123.6 kB / 0.6969 GB, free: 5.5 MB / 0.5137 GB
Notification: Performance of NFSimplifyModel.simplify: time 0.000233/0.1899, allocations: 159.5 kB / 0.697 GB, free: 5.344 MB / 0.5137 GB
Notification: Performance of NFPackage.collectConstants: time 4.195e-05/0.1899, allocations: 23.94 kB / 0.697 GB, free: 5.32 MB / 0.5137 GB
Notification: Performance of NFFlatten.collectFunctions: time 0.0001581/0.1901, allocations: 91.94 kB / 0.6971 GB, free: 5.23 MB / 0.5137 GB
Notification: Performance of NFScalarize.scalarize: time 9.557e-05/0.1902, allocations: 63.7 kB / 0.6972 GB, free: 5.168 MB / 0.5137 GB
Notification: Performance of NFVerifyModel.verify: time 0.0001122/0.1903, allocations: 103.4 kB / 0.6973 GB, free: 5.066 MB / 0.5137 GB
Notification: Performance of NFConvertDAE.convert: time 0.0003991/0.1907, allocations: 314.7 kB / 0.6976 GB, free: 4.758 MB / 0.5137 GB
Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.1907, allocations: 0 / 0.6976 GB, free: 4.758 MB / 0.5137 GB
Notification: Performance of FrontEnd: time 1.443e-06/0.1907, allocations: 4 kB / 0.6976 GB, free: 4.754 MB / 0.5137 GB
Notification: Performance of Transformations before backend: time 6.703e-06/0.1907, allocations: 0 / 0.6976 GB, free: 4.754 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.0008922/0.1916, allocations: 0.5141 MB / 0.6981 GB, free: 4.203 MB / 0.5137 GB
Notification: Performance of prepare preOptimizeDAE: time 3.842e-05/0.1916, allocations: 8.031 kB / 0.6981 GB, free: 4.195 MB / 0.5137 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 7.123e-05/0.1917, allocations: 32.75 kB / 0.6981 GB, free: 4.164 MB / 0.5137 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005023/0.1922, allocations: 245.2 kB / 0.6984 GB, free: 3.902 MB / 0.5137 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.464e-05/0.1922, allocations: 16.12 kB / 0.6984 GB, free: 3.887 MB / 0.5137 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 3.828e-05/0.1923, allocations: 12 kB / 0.6984 GB, free: 3.875 MB / 0.5137 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004122/0.1927, allocations: 227.1 kB / 0.6986 GB, free: 3.629 MB / 0.5137 GB
Notification: Performance of preOpt findStateOrder (simulation): time 8.175e-06/0.1927, allocations: 0 / 0.6986 GB, free: 3.629 MB / 0.5137 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.362e-05/0.1927, allocations: 8 kB / 0.6986 GB, free: 3.621 MB / 0.5137 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.1927, allocations: 0 / 0.6986 GB, free: 3.621 MB / 0.5137 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002643/0.193, allocations: 128.4 kB / 0.6987 GB, free: 3.496 MB / 0.5137 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000897/0.1939, allocations: 0.6604 MB / 0.6994 GB, free: 2.785 MB / 0.5137 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.0003649/0.1942, allocations: 150.8 kB / 0.6995 GB, free: 2.629 MB / 0.5137 GB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001676/0.1944, allocations: 92.75 kB / 0.6996 GB, free: 2.535 MB / 0.5137 GB
Notification: Performance of preOpt evalFunc (simulation): time 1.971e-05/0.1944, allocations: 7.984 kB / 0.6996 GB, free: 2.527 MB / 0.5137 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002721/0.1947, allocations: 161 kB / 0.6998 GB, free: 2.352 MB / 0.5137 GB
Notification: Performance of pre-optimization done (n=15): time 1.322e-06/0.1947, allocations: 0 / 0.6998 GB, free: 2.352 MB / 0.5137 GB
Notification: Performance of matching and sorting (n=15): time 0.0007306/0.1954, allocations: 381.9 kB / 0.7001 GB, free: 1.969 MB / 0.5137 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 9.35e-05/0.1955, allocations: 144.5 kB / 0.7003 GB, free: 1.797 MB / 0.5137 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002838/0.1958, allocations: 273.9 kB / 0.7005 GB, free: 1.516 MB / 0.5137 GB
Notification: Performance of collectPreVariables (initialization): time 3.474e-05/0.1959, allocations: 33.69 kB / 0.7006 GB, free: 1.477 MB / 0.5137 GB
Notification: Performance of collectInitialEqns (initialization): time 0.0001172/0.196, allocations: 160.3 kB / 0.7007 GB, free: 1.316 MB / 0.5137 GB
Notification: Performance of collectInitialBindings (initialization): time 4.615e-05/0.196, allocations: 43.64 kB / 0.7008 GB, free: 1.273 MB / 0.5137 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 7.544e-05/0.1961, allocations: 41.7 kB / 0.7008 GB, free: 1.227 MB / 0.5137 GB
Notification: Performance of setup shared object (initialization): time 0.0001475/0.1962, allocations: 338.8 kB / 0.7011 GB, free: 0.8867 MB / 0.5137 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001696/0.1964, allocations: 83.97 kB / 0.7012 GB, free: 0.8047 MB / 0.5137 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002039/0.1966, allocations: 140.4 kB / 0.7013 GB, free: 0.6523 MB / 0.5137 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0003488/0.197, allocations: 240.6 kB / 0.7016 GB, free: 404 kB / 0.5137 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.047e-06/0.197, allocations: 4 kB / 0.7016 GB, free: 400 kB / 0.5137 GB
Notification: Performance of matching and sorting (n=22) (initialization): time 0.000533/0.1975, allocations: 335 kB / 0.7019 GB, free: 52 kB / 0.5137 GB
Notification: Performance of prepare postOptimizeDAE: time 4.451e-05/0.1975, allocations: 37.8 kB / 0.7019 GB, free: 8 kB / 0.5137 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.1975, allocations: 3.938 kB / 0.7019 GB, free: 4 kB / 0.5137 GB
Notification: Performance of postOpt tearingSystem (initialization): time 1.718e-05/0.1976, allocations: 4 kB / 0.7019 GB, free: 0 / 0.5137 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001455/0.1977, allocations: 19.98 kB / 0.702 GB, free: 15.98 MB / 0.5294 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.286e-06/0.1977, allocations: 4 kB / 0.702 GB, free: 15.98 MB / 0.5294 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001223/0.1978, allocations: 31.86 kB / 0.702 GB, free: 15.95 MB / 0.5294 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.96e-05/0.1979, allocations: 12 kB / 0.702 GB, free: 15.93 MB / 0.5294 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.198, allocations: 193 kB / 0.7022 GB, free: 15.73 MB / 0.5294 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 4.07e-05/0.1981, allocations: 27.86 kB / 0.7022 GB, free: 15.7 MB / 0.5294 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.484e-05/0.1981, allocations: 29.77 kB / 0.7022 GB, free: 15.68 MB / 0.5294 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.1981, allocations: 0 / 0.7022 GB, free: 15.68 MB / 0.5294 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.1981, allocations: 4 kB / 0.7023 GB, free: 15.67 MB / 0.5294 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.568e-06/0.1982, allocations: 7.938 kB / 0.7023 GB, free: 15.66 MB / 0.5294 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002626/0.1984, allocations: 256.6 kB / 0.7025 GB, free: 15.37 MB / 0.5294 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.1984, allocations: 0 / 0.7025 GB, free: 15.37 MB / 0.5294 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001062/0.1985, allocations: 15.98 kB / 0.7025 GB, free: 15.36 MB / 0.5294 GB
Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.1985, allocations: 3.938 kB / 0.7025 GB, free: 15.35 MB / 0.5294 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.91e-05/0.1985, allocations: 4 kB / 0.7025 GB, free: 15.35 MB / 0.5294 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.1985, allocations: 0 / 0.7025 GB, free: 15.35 MB / 0.5294 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.005e-06/0.1985, allocations: 3.984 kB / 0.7025 GB, free: 15.34 MB / 0.5294 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007759/0.1993, allocations: 482.2 kB / 0.703 GB, free: 14.85 MB / 0.5294 GB
Notification: Performance of postOpt removeConstants (simulation): time 3.985e-05/0.1994, allocations: 19.89 kB / 0.703 GB, free: 14.83 MB / 0.5294 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.259e-05/0.1994, allocations: 8 kB / 0.703 GB, free: 14.82 MB / 0.5294 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001068/0.1995, allocations: 11.98 kB / 0.703 GB, free: 14.81 MB / 0.5294 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 8.424e-05/0.1996, allocations: 27.89 kB / 0.7031 GB, free: 14.78 MB / 0.5294 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.324e-05/0.1996, allocations: 11.98 kB / 0.7031 GB, free: 14.77 MB / 0.5294 GB
Notification: Performance of sorting global known variables: time 0.0001942/0.1998, allocations: 201.3 kB / 0.7033 GB, free: 14.57 MB / 0.5294 GB
Notification: Performance of sort global known variables: time 8e-08/0.1998, allocations: 4 kB / 0.7033 GB, free: 14.57 MB / 0.5294 GB
Notification: Performance of remove unused functions: time 0.0002786/0.2001, allocations: 55.89 kB / 0.7033 GB, free: 14.52 MB / 0.5294 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.0002019/0.2003, allocations: 127.1 kB / 0.7034 GB, free: 14.38 MB / 0.5294 GB
Notification: Performance of simCode: created initialization part: time 0.0004886/0.2008, allocations: 265.7 kB / 0.7037 GB, free: 14.11 MB / 0.5294 GB
Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.2008, allocations: 192 / 0.7037 GB, free: 14.11 MB / 0.5294 GB
Notification: Performance of simCode: created simulation system equations: time 0.0002225/0.201, allocations: 155.3 kB / 0.7038 GB, free: 13.95 MB / 0.5294 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003101/0.2013, allocations: 36.7 kB / 0.7039 GB, free: 13.91 MB / 0.5294 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001034/0.2024, allocations: 492.9 kB / 0.7043 GB, free: 13.41 MB / 0.5294 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004039/0.2028, allocations: 0.7515 MB / 0.7051 GB, free: 12.63 MB / 0.5294 GB
Notification: Performance of simCode: alias equations: time 7.865e-05/0.2028, allocations: 21.48 kB / 0.7051 GB, free: 12.61 MB / 0.5294 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 5.406e-05/0.2029, allocations: 19.42 kB / 0.7051 GB, free: 12.59 MB / 0.5294 GB
Notification: Performance of SimCode: time 3.1e-07/0.2029, allocations: 0 / 0.7051 GB, free: 12.59 MB / 0.5294 GB
Notification: Performance of Templates: time 0.007135/0.21, allocations: 2.92 MB / 0.708 GB, free: 9.688 MB / 0.5294 GB
"
[Timeout remaining time 660]
make -j1 -f IDEAS_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.makefile [Timeout 660]
(rm -f IDEAS_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo IDEAS_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/IDEAS_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./IDEAS_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor  -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) [Timeout 480]
[Calling sys.exit(0), Time elapsed: 5.635320533066988]
Failed to read output from testmodel.py, exit status != 0:
0.21722560934722424 0.232182878 0.038549048
Calling exit ...
<OMPython.OMCSessionZMQ object at 0x7fc51a0ad7b0>