Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.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 4.1.0-beta.om/package.mo", uses=false) 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.Mechanics.Rotational.Examples.EddyCurrentBrake,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_EddyCurrentBrake",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_EddyCurrentBrake",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001705/0.001705, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001929/0.001929, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.479/1.479, allocations: 227.7 MB / 247.2 MB, free: 10.21 MB / 206.1 MB 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.001952/0.001952, allocations: 63.91 kB / 358.5 MB, free: 13.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2737/0.2757, allocations: 50.53 MB / 409 MB, free: 1.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake): time 0.003318/0.2791, allocations: 1.994 MB / 411 MB, free: 15.41 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001099/0.2802, allocations: 0.6935 MB / 411.7 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.486e-05/0.2803, allocations: 4 kB / 411.7 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001184/0.2804, allocations: 19.8 kB / 411.7 MB, free: 14.69 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.636e-05/0.2805, allocations: 35.64 kB / 411.8 MB, free: 14.65 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000258/0.2808, allocations: 55.8 kB / 411.8 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002043/0.281, allocations: 139.3 kB / 412 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001511/0.2812, allocations: 45.08 kB / 412 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.304e-05/0.2813, allocations: 59.72 kB / 412.1 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.69e-05/0.2814, allocations: 51.78 kB / 412.1 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.191e-05/0.2814, allocations: 12 kB / 412.1 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.113e-05/0.2815, allocations: 27.98 kB / 412.2 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.989e-05/0.2815, allocations: 19.92 kB / 412.2 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.741e-05/0.2816, allocations: 67.66 kB / 412.2 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002629/0.2819, allocations: 142.5 kB / 412.4 MB, free: 14.04 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.187e-06/0.2819, allocations: 3.938 kB / 412.4 MB, free: 14.04 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2819, allocations: 4 kB / 412.4 MB, free: 14.04 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.47e-06/0.2819, allocations: 0 / 412.4 MB, free: 14.04 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0007175/0.2826, allocations: 446.7 kB / 412.8 MB, free: 13.55 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.207e-05/0.2827, allocations: 8.031 kB / 412.8 MB, free: 13.54 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.369e-05/0.2827, allocations: 42.73 kB / 412.9 MB, free: 13.49 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001967/0.283, allocations: 24.88 kB / 412.9 MB, free: 13.46 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002972/0.2833, allocations: 208.2 kB / 413.1 MB, free: 13.22 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.666e-05/0.2833, allocations: 8.375 kB / 413.1 MB, free: 13.21 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.651e-05/0.2833, allocations: 20.11 kB / 413.1 MB, free: 13.2 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002882/0.2836, allocations: 113.5 kB / 413.2 MB, free: 13.08 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.484e-05/0.2836, allocations: 0 / 413.2 MB, free: 13.08 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.617e-05/0.2837, allocations: 4 kB / 413.2 MB, free: 13.07 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.334e-06/0.2837, allocations: 4 kB / 413.2 MB, free: 13.07 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002902/0.284, allocations: 91.92 kB / 413.3 MB, free: 12.98 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000942/0.2849, allocations: 0.5128 MB / 413.8 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003496/0.2853, allocations: 110.4 kB / 414 MB, free: 12.29 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001309/0.2854, allocations: 48.81 kB / 414 MB, free: 12.24 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.541e-05/0.2854, allocations: 4 kB / 414 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.965e-05/0.2855, allocations: 30.56 kB / 414 MB, free: 12.2 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 3.176e-06/0.2855, allocations: 3.984 kB / 414 MB, free: 12.19 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004724/0.286, allocations: 153.7 kB / 414.2 MB, free: 12.04 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.415e-05/0.286, allocations: 51.41 kB / 414.2 MB, free: 11.97 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001278/0.2862, allocations: 132.5 kB / 414.4 MB, free: 11.84 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.014e-05/0.2862, allocations: 29.7 kB / 414.4 MB, free: 11.8 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.247e-05/0.2863, allocations: 112.2 kB / 414.5 MB, free: 11.68 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.64e-05/0.2863, allocations: 39.62 kB / 414.5 MB, free: 11.64 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.507e-05/0.2864, allocations: 29.7 kB / 414.6 MB, free: 11.61 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001506/0.2865, allocations: 318.8 kB / 414.9 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001193/0.2867, allocations: 39.98 kB / 414.9 MB, free: 11.25 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001411/0.2868, allocations: 71.34 kB / 415 MB, free: 11.17 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002621/0.2871, allocations: 115.3 kB / 415.1 MB, free: 11.04 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/0.2871, allocations: 0 / 415.1 MB, free: 11.04 MB / 334.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003299/0.2874, allocations: 149.4 kB / 415.3 MB, free: 10.89 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.75e-05/0.2875, allocations: 4 kB / 415.3 MB, free: 10.89 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.2875, allocations: 0 / 415.3 MB, free: 10.89 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.824e-05/0.2875, allocations: 4 kB / 415.3 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001595/0.2877, allocations: 36.02 kB / 415.3 MB, free: 10.85 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.159e-05/0.2877, allocations: 3.984 kB / 415.3 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.268e-05/0.2878, allocations: 12 kB / 415.3 MB, free: 10.83 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.085e-05/0.2878, allocations: 4 kB / 415.3 MB, free: 10.83 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * 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.0001141/0.2879, allocations: 118.7 kB / 415.4 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.612e-05/0.288, allocations: 15.91 kB / 415.4 MB, free: 10.69 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.079e-05/0.288, allocations: 16.7 kB / 415.5 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.288, allocations: 0 / 415.5 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.111e-06/0.288, allocations: 7.938 kB / 415.5 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.436e-06/0.2881, allocations: 0 / 415.5 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002886/0.2883, allocations: 229.8 kB / 415.7 MB, free: 10.38 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.2884, allocations: 0 / 415.7 MB, free: 10.38 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001732/0.2885, allocations: 27.92 kB / 415.7 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.494e-06/0.2885, allocations: 0 / 415.7 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.318e-05/0.2886, allocations: 7.938 kB / 415.7 MB, free: 10.35 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.2886, allocations: 0 / 415.7 MB, free: 10.35 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.2886, allocations: 0 / 415.7 MB, free: 10.35 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005054/0.2891, allocations: 263.3 kB / 416 MB, free: 10.07 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.547e-05/0.2892, allocations: 89.02 kB / 416.1 MB, free: 9.969 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.099e-05/0.2892, allocations: 0 / 416.1 MB, free: 9.969 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001089/0.2893, allocations: 12.03 kB / 416.1 MB, free: 9.957 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.817e-05/0.2893, allocations: 4 kB / 416.1 MB, free: 9.953 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.704e-06/0.2894, allocations: 4 kB / 416.1 MB, free: 9.949 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.133e-05/0.2894, allocations: 110.8 kB / 416.2 MB, free: 9.844 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2895, allocations: 0 / 416.2 MB, free: 9.844 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002575/0.2897, allocations: 24 kB / 416.2 MB, free: 9.82 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (eddyCurrentTorque.phi,inertia.w,heatCapacitor.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 9 * 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 Backend phase and start with SimCode phase: time 0.0008231/0.2905, allocations: 0.7982 MB / 417 MB, free: 8.996 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003069/0.2909, allocations: 91.83 kB / 417.1 MB, free: 8.906 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.2909, allocations: 0 / 417.1 MB, free: 8.906 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000125/0.291, allocations: 43.97 kB / 417.2 MB, free: 8.863 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003283/0.2913, allocations: 24.23 kB / 417.2 MB, free: 8.84 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002449/0.2938, allocations: 1.876 MB / 419.1 MB, free: 6.867 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000353/0.2942, allocations: 0.7041 MB / 419.8 MB, free: 6.137 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.276e-05/0.2942, allocations: 20.41 kB / 419.8 MB, free: 6.117 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.22e-05/0.2943, allocations: 31.44 kB / 419.8 MB, free: 6.086 MB / 334.1 MB Notification: Performance of SimCode: time 4.21e-07/0.2943, allocations: 0 / 419.8 MB, free: 6.086 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02363/0.318, allocations: 2.727 MB / 422.5 MB, free: 3.492 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.807/8.125, allocations: 8.047 kB / 422.5 MB, free: 3.484 MB / 334.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_EddyCurrentBrake_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_EddyCurrentBrake.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe 2>&1)