Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Thermal.HeatTransfer.Examples.Motor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001629/0.001629, allocations: 110.5 kB / 21.23 MB, free: 0.6641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002082/0.002082, allocations: 211.9 kB / 24.54 MB, free: 4.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.477/1.477, allocations: 230.6 MB / 258.3 MB, free: 8.039 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001953/0.001953, allocations: 60.78 kB / 378.5 MB, free: 3.172 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3013/0.3032, allocations: 53.36 MB / 431.9 MB, free: 6.918 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.004023/0.3073, allocations: 2.285 MB / 434.2 MB, free: 4.625 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002377/0.3096, allocations: 1.251 MB / 435.4 MB, free: 3.367 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001256/0.3098, allocations: 0 / 435.4 MB, free: 3.367 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003883/0.3102, allocations: 99.5 kB / 435.5 MB, free: 3.27 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004862/0.3106, allocations: 163.1 kB / 435.7 MB, free: 3.109 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000305/0.311, allocations: 115.6 kB / 435.8 MB, free: 2.996 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003857/0.3113, allocations: 290.8 kB / 436.1 MB, free: 2.711 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002003/0.3115, allocations: 77.45 kB / 436.2 MB, free: 2.633 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001786/0.3117, allocations: 119.5 kB / 436.3 MB, free: 2.516 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002241/0.3119, allocations: 135.5 kB / 436.4 MB, free: 2.383 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.587e-05/0.312, allocations: 20 kB / 436.4 MB, free: 2.363 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001327/0.3121, allocations: 44 kB / 436.5 MB, free: 2.32 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.799e-05/0.3122, allocations: 67.69 kB / 436.5 MB, free: 2.254 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001222/0.3123, allocations: 111.4 kB / 436.6 MB, free: 2.145 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004144/0.3127, allocations: 291.6 kB / 436.9 MB, free: 1.863 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.3128, allocations: 0 / 436.9 MB, free: 1.863 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.3128, allocations: 0 / 436.9 MB, free: 1.863 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.09e-05/0.3128, allocations: 0 / 436.9 MB, free: 1.863 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.0008885/0.3137, allocations: 0.4894 MB / 437.4 MB, free: 1.344 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.025e-05/0.3137, allocations: 8.031 kB / 437.4 MB, free: 1.336 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.988e-05/0.3138, allocations: 54.66 kB / 437.5 MB, free: 1.273 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000138/0.3139, allocations: 32.75 kB / 437.5 MB, free: 1.242 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003817/0.3143, allocations: 209.9 kB / 437.7 MB, free: 1.012 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.64e-05/0.3143, allocations: 16.38 kB / 437.7 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.358e-05/0.3143, allocations: 19.94 kB / 437.8 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003334/0.3147, allocations: 157.6 kB / 437.9 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.646e-05/0.3147, allocations: 3.984 kB / 437.9 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.047e-05/0.3147, allocations: 8 kB / 437.9 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.684e-06/0.3147, allocations: 4 kB / 437.9 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002537/0.315, allocations: 115.7 kB / 438 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009325/0.3159, allocations: 0.5343 MB / 438.6 MB, free: 112 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003423/0.3162, allocations: 142.5 kB / 438.7 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001596/0.3164, allocations: 84.83 kB / 438.8 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.548e-05/0.3164, allocations: 8.328 kB / 438.8 MB, free: 15.87 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002421/0.3167, allocations: 119.2 kB / 438.9 MB, free: 15.74 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.613e-06/0.3167, allocations: 7.938 kB / 438.9 MB, free: 15.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005451/0.3172, allocations: 232 kB / 439.2 MB, free: 15.5 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.844e-05/0.3173, allocations: 55.41 kB / 439.2 MB, free: 15.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002945/0.3176, allocations: 260.9 kB / 439.5 MB, free: 15.17 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.191e-05/0.3176, allocations: 37.69 kB / 439.5 MB, free: 15.13 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001144/0.3177, allocations: 140.4 kB / 439.6 MB, free: 14.99 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.887e-05/0.3178, allocations: 71.42 kB / 439.7 MB, free: 14.92 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.463e-05/0.3179, allocations: 49.59 kB / 439.8 MB, free: 14.86 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001771/0.318, allocations: 342.8 kB / 440.1 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000119/0.3182, allocations: 47.98 kB / 440.1 MB, free: 14.47 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001415/0.3183, allocations: 91.33 kB / 440.2 MB, free: 14.37 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002694/0.3186, allocations: 145.2 kB / 440.4 MB, free: 14.22 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.3186, allocations: 0 / 440.4 MB, free: 14.22 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003698/0.3189, allocations: 205.4 kB / 440.6 MB, free: 14.01 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.52e-05/0.319, allocations: 7.938 kB / 440.6 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.199e-06/0.319, allocations: 0 / 440.6 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.834e-05/0.319, allocations: 4 kB / 440.6 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002259/0.3192, allocations: 55.84 kB / 440.6 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.127e-05/0.3192, allocations: 7.984 kB / 440.6 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.645e-05/0.3193, allocations: 19.98 kB / 440.7 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.562e-05/0.3193, allocations: 4 kB / 440.7 MB, free: 13.91 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.lossTable.nextTimeEvent,$whenCondition1,lossTable.nextTimeEventScaled,$PRE.lossTable.nextTimeEventScaled,lossTable.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * 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.0001548/0.3195, allocations: 145.8 kB / 440.8 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.826e-05/0.3195, allocations: 23.86 kB / 440.8 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004123/0.3199, allocations: 203.7 kB / 441 MB, free: 13.53 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.01e-06/0.3199, allocations: 3.938 kB / 441 MB, free: 13.53 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.3199, allocations: 0 / 441 MB, free: 13.53 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.3199, allocations: 0 / 441 MB, free: 13.53 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003082/0.3203, allocations: 264.5 kB / 441.3 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.3203, allocations: 4 kB / 441.3 MB, free: 13.22 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001831/0.3204, allocations: 35.92 kB / 441.3 MB, free: 13.19 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.3204, allocations: 0 / 441.3 MB, free: 13.19 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.407e-05/0.3205, allocations: 8 kB / 441.3 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.727e-06/0.3205, allocations: 3.938 kB / 441.3 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.3205, allocations: 0 / 441.3 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005311/0.321, allocations: 291.3 kB / 441.6 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.818e-05/0.321, allocations: 27.83 kB / 441.7 MB, free: 12.85 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.58e-05/0.3211, allocations: 11.94 kB / 441.7 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.421e-05/0.3212, allocations: 0 / 441.7 MB, free: 12.84 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.162e-05/0.3212, allocations: 15.97 kB / 441.7 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.991e-05/0.3212, allocations: 8 kB / 441.7 MB, free: 12.82 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002057/0.3214, allocations: 196.5 kB / 441.9 MB, free: 12.62 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3214, allocations: 0 / 441.9 MB, free: 12.62 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002828/0.3217, allocations: 63.83 kB / 441.9 MB, free: 12.56 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (winding.T,core.T) * Number of discrete variables: 3 ($whenCondition1,lossTable.nextTimeEvent,lossTable.nextTimeEventScaled) * Number of discrete states: 2 (lossTable.nextTimeEvent,lossTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.00225/0.324, allocations: 1.122 MB / 443.1 MB, free: 11.57 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003525/0.3243, allocations: 135.8 kB / 443.2 MB, free: 11.44 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.3243, allocations: 0 / 443.2 MB, free: 11.44 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001355/0.3245, allocations: 67.91 kB / 443.3 MB, free: 11.38 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003516/0.3248, allocations: 44.59 kB / 443.3 MB, free: 11.33 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003303/0.3281, allocations: 2.392 MB / 445.7 MB, free: 8.84 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004576/0.3286, allocations: 0.7518 MB / 446.5 MB, free: 8.062 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001346/0.3287, allocations: 25.94 kB / 446.5 MB, free: 8.035 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001318/0.3288, allocations: 75.41 kB / 446.6 MB, free: 7.961 MB / 350.1 MB Notification: Performance of SimCode: time 7.22e-07/0.3288, allocations: 0 / 446.6 MB, free: 7.961 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03395/0.3628, allocations: 5.581 MB / 452.1 MB, free: 2.434 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.369/8.732, allocations: 3.984 kB / 452.1 MB, free: 2.43 MB / 350.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0-beta.om_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Thermal_HeatTransfer_Examples_Motor_fmu --startTime=0 --stopTime=7200 --stepSize=0.01 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Thermal_HeatTransfer_Examples_Motor.fmu > Modelica_4.1.0-beta.om_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 12.161029951646924] Failed to read output from testmodel.py, exit status != 0: ['time', 'core.T', 'winding.T'] 8.879049144219607 8.907458655 8.58922961 Calling exit ...