Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00127/0.00127, allocations: 121.1 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001261/0.001261, allocations: 204.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.378/1.378, allocations: 227.4 MB / 247 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0018/0.0018, allocations: 67.88 kB / 358.3 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2893/0.2911, allocations: 50.55 MB / 408.8 MB, free: 1.508 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.004301/0.2955, allocations: 2.254 MB / 411.1 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002492/0.298, allocations: 1.22 MB / 412.3 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001601/0.2982, allocations: 4 kB / 412.3 MB, free: 14.01 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004721/0.2987, allocations: 91.5 kB / 412.4 MB, free: 13.92 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004639/0.2991, allocations: 163.1 kB / 412.5 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003006/0.2994, allocations: 123.5 kB / 412.7 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003868/0.2998, allocations: 290.8 kB / 412.9 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000238/0.3001, allocations: 92.56 kB / 413 MB, free: 13.26 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001812/0.3003, allocations: 111.6 kB / 413.1 MB, free: 13.15 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002287/0.3005, allocations: 131.5 kB / 413.3 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.954e-05/0.3006, allocations: 20 kB / 413.3 MB, free: 13 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001415/0.3007, allocations: 47.98 kB / 413.3 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.419e-05/0.3008, allocations: 51.78 kB / 413.4 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000134/0.3009, allocations: 123.4 kB / 413.5 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004041/0.3014, allocations: 293.8 kB / 413.8 MB, free: 12.5 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.3014, allocations: 0 / 413.8 MB, free: 12.5 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3014, allocations: 0 / 413.8 MB, free: 12.5 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.813e-06/0.3014, allocations: 7.938 kB / 413.8 MB, free: 12.49 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.001025/0.3024, allocations: 0.5647 MB / 414.4 MB, free: 11.88 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.012e-05/0.3025, allocations: 8.031 kB / 414.4 MB, free: 11.87 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.076e-05/0.3026, allocations: 50.67 kB / 414.4 MB, free: 11.81 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001653/0.3027, allocations: 32.75 kB / 414.5 MB, free: 11.78 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004525/0.3032, allocations: 263.9 kB / 414.7 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.335e-05/0.3032, allocations: 12.38 kB / 414.7 MB, free: 11.47 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.924e-05/0.3033, allocations: 23.94 kB / 414.7 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003699/0.3037, allocations: 157.6 kB / 414.9 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.485e-05/0.3037, allocations: 0 / 414.9 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.398e-05/0.3037, allocations: 8 kB / 414.9 MB, free: 11.28 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.017e-06/0.3037, allocations: 4 kB / 414.9 MB, free: 11.28 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002627/0.304, allocations: 115.7 kB / 415 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001002/0.305, allocations: 0.5665 MB / 415.6 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003307/0.3053, allocations: 158.5 kB / 415.7 MB, free: 10.38 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001699/0.3055, allocations: 92.55 kB / 415.8 MB, free: 10.29 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.304e-05/0.3056, allocations: 3.984 kB / 415.8 MB, free: 10.29 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002682/0.3058, allocations: 133.5 kB / 416 MB, free: 10.15 MB / 334.1 MB Notification: Performance of pre-optimization done (n=20): time 1.743e-06/0.3059, allocations: 0 / 416 MB, free: 10.15 MB / 334.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005702/0.3064, allocations: 232.2 kB / 416.2 MB, free: 9.918 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.984e-05/0.3065, allocations: 55.39 kB / 416.3 MB, free: 9.852 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000306/0.3068, allocations: 257 kB / 416.5 MB, free: 9.59 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.101e-05/0.3068, allocations: 29.7 kB / 416.5 MB, free: 9.555 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001241/0.307, allocations: 160.3 kB / 416.7 MB, free: 9.395 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.66e-05/0.3071, allocations: 67.42 kB / 416.8 MB, free: 9.328 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.756e-05/0.3071, allocations: 45.66 kB / 416.8 MB, free: 9.277 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000179/0.3073, allocations: 338.7 kB / 417.1 MB, free: 8.938 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001286/0.3075, allocations: 51.97 kB / 417.2 MB, free: 8.887 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001405/0.3076, allocations: 87.34 kB / 417.3 MB, free: 8.789 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002757/0.3079, allocations: 151.3 kB / 417.4 MB, free: 8.629 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.3079, allocations: 0 / 417.4 MB, free: 8.629 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003695/0.3083, allocations: 197.4 kB / 417.6 MB, free: 8.43 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.404e-05/0.3083, allocations: 8 kB / 417.6 MB, free: 8.422 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.785e-06/0.3083, allocations: 0 / 417.6 MB, free: 8.422 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.239e-05/0.3084, allocations: 4.094 kB / 417.6 MB, free: 8.418 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002408/0.3086, allocations: 55.86 kB / 417.7 MB, free: 8.363 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.301e-05/0.3086, allocations: 3.984 kB / 417.7 MB, free: 8.359 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.87e-05/0.3087, allocations: 15.89 kB / 417.7 MB, free: 8.344 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.714e-05/0.3087, allocations: 8 kB / 417.7 MB, free: 8.336 MB / 334.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.0001649/0.3089, allocations: 148.6 kB / 417.8 MB, free: 8.184 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.3e-05/0.309, allocations: 23.86 kB / 417.9 MB, free: 8.16 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.128e-05/0.3091, allocations: 26.17 kB / 417.9 MB, free: 8.133 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/0.3091, allocations: 11.88 kB / 417.9 MB, free: 8.121 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.872e-06/0.3091, allocations: 4 kB / 417.9 MB, free: 8.117 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.3091, allocations: 3.984 kB / 417.9 MB, free: 8.113 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003446/0.3094, allocations: 289.4 kB / 418.2 MB, free: 7.781 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.3095, allocations: 0 / 418.2 MB, free: 7.781 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001799/0.3096, allocations: 35.97 kB / 418.2 MB, free: 7.746 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.3097, allocations: 0 / 418.2 MB, free: 7.746 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.313e-05/0.3097, allocations: 8 kB / 418.2 MB, free: 7.738 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.325e-05/0.3097, allocations: 3.938 kB / 418.2 MB, free: 7.734 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.3097, allocations: 3.938 kB / 418.2 MB, free: 7.73 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005307/0.3102, allocations: 284.8 kB / 418.5 MB, free: 7.434 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.549e-05/0.3103, allocations: 97.03 kB / 418.6 MB, free: 7.32 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.411e-05/0.3104, allocations: 3.938 kB / 418.6 MB, free: 7.316 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.008e-05/0.3105, allocations: 8 kB / 418.6 MB, free: 7.309 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.239e-05/0.3105, allocations: 11.94 kB / 418.6 MB, free: 7.297 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.678e-05/0.3106, allocations: 12 kB / 418.7 MB, free: 7.285 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002223/0.3108, allocations: 192.5 kB / 418.8 MB, free: 7.098 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3108, allocations: 3.938 kB / 418.8 MB, free: 7.094 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002822/0.3111, allocations: 60 kB / 418.9 MB, free: 7.035 MB / 334.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.nextTimeEventScaled,lossTable.nextTimeEvent) * 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.002185/0.3133, allocations: 1.128 MB / 420 MB, free: 6.023 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003321/0.3136, allocations: 136 kB / 420.2 MB, free: 5.891 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.3136, allocations: 8 kB / 420.2 MB, free: 5.883 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001383/0.3138, allocations: 75.91 kB / 420.2 MB, free: 5.809 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003375/0.3141, allocations: 52.33 kB / 420.3 MB, free: 5.758 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003072/0.3172, allocations: 2.388 MB / 422.7 MB, free: 3.262 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003857/0.3176, allocations: 0.748 MB / 423.4 MB, free: 2.488 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001032/0.3177, allocations: 25.95 kB / 423.5 MB, free: 2.461 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001288/0.3178, allocations: 79.34 kB / 423.5 MB, free: 2.383 MB / 334.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3179, allocations: 4 kB / 423.5 MB, free: 2.379 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02923/0.3471, allocations: 5.356 MB / 428.9 MB, free: 13.13 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.332/8.68, allocations: 12.16 kB / 428.9 MB, free: 13.12 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat --tempDir=temp_Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_Motor_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_Motor.fmu > Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1)