Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Thermal.HeatTransfer.Examples.Motor.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_3_2_2_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.139/2.139, allocations: 194.9 MB / 211.1 MB, free: 7.594 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00035/0.0003501, allocations: 12 kB / 264.1 MB, free: 2.52 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2911/0.2915, allocations: 44.5 MB / 308.6 MB, free: 12.65 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003174/0.2948, allocations: 1.745 MB / 310.3 MB, free: 10.89 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002095/0.2969, allocations: 0.8901 MB / 311.2 MB, free: 9.996 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00014/0.2971, allocations: 4 kB / 311.2 MB, free: 9.992 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003494/0.2974, allocations: 71.7 kB / 311.3 MB, free: 9.922 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003498/0.2978, allocations: 111.7 kB / 311.4 MB, free: 9.812 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003222/0.2981, allocations: 79.78 kB / 311.5 MB, free: 9.734 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003737/0.2985, allocations: 199.6 kB / 311.6 MB, free: 9.539 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002164/0.2988, allocations: 72.55 kB / 311.7 MB, free: 9.469 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001733/0.2989, allocations: 91.69 kB / 311.8 MB, free: 9.379 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000227/0.2992, allocations: 103.6 kB / 311.9 MB, free: 9.277 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.974e-05/0.2992, allocations: 12 kB / 311.9 MB, free: 9.266 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001613/0.2994, allocations: 27.98 kB / 311.9 MB, free: 9.238 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.422e-05/0.2995, allocations: 51.83 kB / 312 MB, free: 9.188 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001059/0.2996, allocations: 61.58 kB / 312.1 MB, free: 9.121 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003771/0.3, allocations: 212.4 kB / 312.3 MB, free: 8.914 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.014e-06/0.3, allocations: 0 / 312.3 MB, free: 8.914 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.3, allocations: 0 / 312.3 MB, free: 8.914 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.461e-06/0.3001, allocations: 0 / 312.3 MB, free: 8.914 MB / 250.7 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.001018/0.3011, allocations: 0.5493 MB / 312.8 MB, free: 8.301 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.658e-05/0.3012, allocations: 12.03 kB / 312.8 MB, free: 8.289 MB / 250.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.683e-05/0.3012, allocations: 54.55 kB / 312.9 MB, free: 8.227 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001751/0.3014, allocations: 27.72 kB / 312.9 MB, free: 8.199 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003918/0.3018, allocations: 251.5 kB / 313.2 MB, free: 7.91 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.84e-05/0.3019, allocations: 12 kB / 313.2 MB, free: 7.898 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.361e-05/0.3019, allocations: 19.98 kB / 313.2 MB, free: 7.879 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004729/0.3024, allocations: 157.4 kB / 313.3 MB, free: 7.719 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.594e-05/0.3025, allocations: 0 / 313.3 MB, free: 7.719 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.996e-05/0.3025, allocations: 8 kB / 313.3 MB, free: 7.711 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.134e-05/0.3025, allocations: 8 kB / 313.4 MB, free: 7.703 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003854/0.3029, allocations: 123.9 kB / 313.5 MB, free: 7.582 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00124/0.3042, allocations: 0.5741 MB / 314 MB, free: 6.957 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004964/0.3047, allocations: 162.5 kB / 314.2 MB, free: 6.789 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.007e-05/0.3047, allocations: 4 kB / 314.2 MB, free: 6.785 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003405/0.3051, allocations: 119.6 kB / 314.3 MB, free: 6.656 MB / 250.7 MB Notification: Performance of pre-optimization done (n=20): time 2.455e-06/0.3051, allocations: 0 / 314.3 MB, free: 6.656 MB / 250.7 MB Notification: Performance of matching and sorting (n=20): time 0.0007683/0.3059, allocations: 239.3 kB / 314.6 MB, free: 6.418 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.905e-05/0.306, allocations: 59.41 kB / 314.6 MB, free: 6.348 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003573/0.3063, allocations: 244.2 kB / 314.9 MB, free: 6.098 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.559e-05/0.3064, allocations: 33.7 kB / 314.9 MB, free: 6.059 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001305/0.3065, allocations: 136.3 kB / 315 MB, free: 5.922 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.626e-05/0.3066, allocations: 70.94 kB / 315.1 MB, free: 5.852 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.755e-05/0.3066, allocations: 8 kB / 315.1 MB, free: 5.844 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.000159/0.3068, allocations: 334.8 kB / 315.4 MB, free: 5.508 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002168/0.307, allocations: 60.2 kB / 315.5 MB, free: 5.449 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002516/0.3073, allocations: 103.8 kB / 315.6 MB, free: 5.336 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000265/0.3076, allocations: 98.86 kB / 315.7 MB, free: 5.234 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/0.3076, allocations: 0 / 315.7 MB, free: 5.234 MB / 250.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006535/0.3083, allocations: 260.6 kB / 315.9 MB, free: 4.969 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.821e-05/0.3083, allocations: 45.78 kB / 316 MB, free: 4.918 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/0.3084, allocations: 4 kB / 316 MB, free: 4.914 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.398e-05/0.3084, allocations: 0 / 316 MB, free: 4.914 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003889/0.3088, allocations: 43.92 kB / 316 MB, free: 4.871 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.182e-05/0.3088, allocations: 4 kB / 316 MB, free: 4.867 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002059/0.309, allocations: 27.83 kB / 316.1 MB, free: 4.84 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.543e-05/0.3091, allocations: 4 kB / 316.1 MB, free: 4.836 MB / 250.7 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 ($whenCondition1,$PRE.lossTable.nextTimeEvent,lossTable.nextTimeEvent,$PRE.lossTable.nextTimeEventScaled,lossTable.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000199/0.3093, allocations: 155.5 kB / 316.2 MB, free: 4.676 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.593e-05/0.3093, allocations: 23.67 kB / 316.2 MB, free: 4.652 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.537e-05/0.3094, allocations: 29.86 kB / 316.3 MB, free: 4.621 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.783e-06/0.3094, allocations: 0 / 316.3 MB, free: 4.621 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.726e-06/0.3095, allocations: 7.938 kB / 316.3 MB, free: 4.613 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.3095, allocations: 0 / 316.3 MB, free: 4.613 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004056/0.3099, allocations: 285.4 kB / 316.6 MB, free: 4.285 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.3099, allocations: 0 / 316.6 MB, free: 4.285 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003268/0.3102, allocations: 35.92 kB / 316.6 MB, free: 4.25 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.3103, allocations: 0 / 316.6 MB, free: 4.25 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.94e-05/0.3103, allocations: 11.95 kB / 316.6 MB, free: 4.238 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.915e-06/0.3103, allocations: 4 kB / 316.6 MB, free: 4.234 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.3103, allocations: 3.984 kB / 316.6 MB, free: 4.23 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007645/0.3111, allocations: 281.5 kB / 316.9 MB, free: 3.941 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001423/0.3113, allocations: 116.9 kB / 317 MB, free: 3.809 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.768e-05/0.3113, allocations: 4 kB / 317 MB, free: 3.805 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001537/0.3115, allocations: 11.95 kB / 317 MB, free: 3.793 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.57e-05/0.3115, allocations: 16.05 kB / 317 MB, free: 3.777 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.628e-05/0.3116, allocations: 11.98 kB / 317 MB, free: 3.766 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0002346/0.3118, allocations: 177.6 kB / 317.2 MB, free: 3.594 MB / 250.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.3119, allocations: 3.938 kB / 317.2 MB, free: 3.59 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003924/0.3123, allocations: 63.91 kB / 317.3 MB, free: 3.527 MB / 250.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002128/0.3144, allocations: 1.107 MB / 318.4 MB, free: 2.438 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0006233/0.315, allocations: 239.2 kB / 318.6 MB, free: 2.191 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.3151, allocations: 0 / 318.6 MB, free: 2.191 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002281/0.3153, allocations: 75.91 kB / 318.7 MB, free: 2.117 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004133/0.3157, allocations: 32.33 kB / 318.7 MB, free: 2.086 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001911/0.3177, allocations: 0.9234 MB / 319.7 MB, free: 1.109 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004093/0.3181, allocations: 0.7518 MB / 320.4 MB, free: 336 kB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0001977/0.3183, allocations: 29.48 kB / 320.4 MB, free: 308 kB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001585/0.3185, allocations: 67.41 kB / 320.5 MB, free: 240 kB / 250.7 MB Notification: Performance of SimCode: time 1.333e-06/0.3185, allocations: 3.938 kB / 320.5 MB, free: 236 kB / 250.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02768/0.3462, allocations: 4.56 MB / 325.1 MB, free: 11.66 MB / 266.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000362/0.3466, allocations: 221.4 kB / 325.3 MB, free: 11.41 MB / 266.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.74/3.087, allocations: 0 / 325.3 MB, free: 11.41 MB / 266.7 MB "" Variables in the reference:time,core.T,winding.T Variables in the result:TAmb,Tcore.T,Tcore.port.Q_flow,Tcore.port.T,Twinding.T,Twinding.port.Q_flow,Twinding.port.T,convection.Gc,convection.Q_flow,convection.dT,convection.fluid.Q_flow,convection.fluid.T,convection.solid.Q_flow,convection.solid.T,convectionConstant.k,convectionConstant.y,core.C,core.T,core.der_T,core.port.Q_flow,core.port.T,coreLosses.Q_flow,coreLosses.T_ref,coreLosses.alpha,coreLosses.port.Q_flow,coreLosses.port.T,der(core.T),der(winding.T),environment.T,environment.port.Q_flow,environment.port.T,lossTable.columns[1],lossTable.columns[2],lossTable.extrapolation,lossTable.nextTimeEvent,lossTable.nextTimeEventScaled,lossTable.nout,lossTable.offset[1],lossTable.p_offset[1],lossTable.p_offset[2],lossTable.smoothness,lossTable.startTime,lossTable.t_max,lossTable.t_maxScaled,lossTable.t_min,lossTable.t_minScaled,lossTable.tableOnFile,lossTable.tableOnFileRead,lossTable.table[1,1],lossTable.table[1,2],lossTable.table[1,3],lossTable.table[2,1],lossTable.table[2,2],lossTable.table[2,3],lossTable.table[3,1],lossTable.table[3,2],lossTable.table[3,3],lossTable.timeScale,lossTable.timeScaled,lossTable.verboseRead,lossTable.y[1],lossTable.y[2],time,winding.C,winding.T,winding.der_T,winding.port.Q_flow,winding.port.T,winding2core.G,winding2core.Q_flow,winding2core.dT,winding2core.port_a.Q_flow,winding2core.port_a.T,winding2core.port_b.Q_flow,winding2core.port_b.T,windingLosses.Q_flow,windingLosses.T_ref,windingLosses.alpha,windingLosses.port.Q_flow,windingLosses.port.T