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.001317/0.001317, allocations: 113.2 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001311/0.001311, allocations: 207.8 kB / 18.74 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.409/1.409, allocations: 227.7 MB / 247.2 MB, free: 10.15 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.001923/0.001923, allocations: 67.89 kB / 358.5 MB, free: 13.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.249/0.251, allocations: 50.54 MB / 409.1 MB, free: 1.367 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake): time 0.003282/0.2543, allocations: 1.989 MB / 411 MB, free: 15.38 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001102/0.2554, allocations: 0.6935 MB / 411.7 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.837e-05/0.2555, allocations: 8 kB / 411.7 MB, free: 14.67 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001236/0.2557, allocations: 15.8 kB / 411.8 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.431e-05/0.2558, allocations: 39.64 kB / 411.8 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002563/0.256, allocations: 55.8 kB / 411.9 MB, free: 14.56 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002119/0.2563, allocations: 143.3 kB / 412 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00014/0.2564, allocations: 33.09 kB / 412 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.141e-05/0.2565, allocations: 59.72 kB / 412.1 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000111/0.2566, allocations: 55.78 kB / 412.1 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.567e-05/0.2567, allocations: 12 kB / 412.2 MB, free: 14.26 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.55e-05/0.2568, allocations: 31.97 kB / 412.2 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.745e-05/0.2568, allocations: 23.86 kB / 412.2 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.174e-05/0.2569, allocations: 59.67 kB / 412.3 MB, free: 14.15 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002732/0.2571, allocations: 146.5 kB / 412.4 MB, free: 14.01 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.2572, allocations: 0 / 412.4 MB, free: 14.01 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.2572, allocations: 3.938 kB / 412.4 MB, free: 14 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.949e-06/0.2572, allocations: 0 / 412.4 MB, free: 14 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.0006829/0.2579, allocations: 458.7 kB / 412.9 MB, free: 13.5 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.611e-05/0.2579, allocations: 8.031 kB / 412.9 MB, free: 13.5 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.43e-05/0.258, allocations: 38.75 kB / 412.9 MB, free: 13.45 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001716/0.2581, allocations: 24.88 kB / 412.9 MB, free: 13.43 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002685/0.2584, allocations: 204.2 kB / 413.1 MB, free: 13.19 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.083e-05/0.2584, allocations: 8.375 kB / 413.1 MB, free: 13.18 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.547e-05/0.2585, allocations: 16.12 kB / 413.2 MB, free: 13.16 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002827/0.2588, allocations: 117.5 kB / 413.3 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.221e-05/0.2588, allocations: 0 / 413.3 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.613e-05/0.2588, allocations: 7.984 kB / 413.3 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.732e-06/0.2588, allocations: 4 kB / 413.3 MB, free: 13.03 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002783/0.2591, allocations: 83.94 kB / 413.4 MB, free: 12.95 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008995/0.26, allocations: 0.5167 MB / 413.9 MB, free: 12.37 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003101/0.2603, allocations: 102.5 kB / 414 MB, free: 12.26 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001344/0.2605, allocations: 48.81 kB / 414 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.467e-05/0.2605, allocations: 8 kB / 414 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.371e-05/0.2605, allocations: 30.56 kB / 414.1 MB, free: 12.16 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.203e-06/0.2605, allocations: 0 / 414.1 MB, free: 12.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004516/0.261, allocations: 145.7 kB / 414.2 MB, free: 12.02 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.661e-05/0.261, allocations: 51.41 kB / 414.3 MB, free: 11.95 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001288/0.2612, allocations: 141.1 kB / 414.4 MB, free: 11.81 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.99e-05/0.2612, allocations: 25.7 kB / 414.4 MB, free: 11.78 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.39e-05/0.2613, allocations: 116.2 kB / 414.5 MB, free: 11.66 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.342e-05/0.2613, allocations: 39.62 kB / 414.6 MB, free: 11.62 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.022e-05/0.2614, allocations: 29.7 kB / 414.6 MB, free: 11.58 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001491/0.2615, allocations: 319.2 kB / 414.9 MB, free: 11.26 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001173/0.2617, allocations: 31.98 kB / 414.9 MB, free: 11.23 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001449/0.2618, allocations: 75.33 kB / 415 MB, free: 11.14 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002611/0.2621, allocations: 111.3 kB / 415.1 MB, free: 11.02 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.2621, allocations: 3.938 kB / 415.1 MB, free: 11.02 MB / 334.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003265/0.2624, allocations: 153.4 kB / 415.3 MB, free: 10.86 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.302e-05/0.2625, allocations: 4 kB / 415.3 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.538e-06/0.2625, allocations: 0 / 415.3 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.703e-05/0.2625, allocations: 4 kB / 415.3 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000153/0.2626, allocations: 31.92 kB / 415.3 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.064e-06/0.2627, allocations: 3.984 kB / 415.3 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.669e-05/0.2628, allocations: 12.09 kB / 415.3 MB, free: 10.81 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.21e-05/0.2628, allocations: 8 kB / 415.3 MB, free: 10.8 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 9.793e-05/0.2629, allocations: 118.7 kB / 415.5 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.575e-05/0.2629, allocations: 15.89 kB / 415.5 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.678e-05/0.263, allocations: 16.72 kB / 415.5 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.263, allocations: 3.984 kB / 415.5 MB, free: 10.63 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.152e-05/0.263, allocations: 4 kB / 415.5 MB, free: 10.63 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.263, allocations: 3.938 kB / 415.5 MB, free: 10.62 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000252/0.2633, allocations: 221.5 kB / 415.7 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.2633, allocations: 4 kB / 415.7 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001778/0.2635, allocations: 31.92 kB / 415.8 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.2635, allocations: 0 / 415.8 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.443e-05/0.2635, allocations: 4 kB / 415.8 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.472e-06/0.2635, allocations: 0 / 415.8 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.2635, allocations: 0 / 415.8 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004784/0.264, allocations: 263.3 kB / 416 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.392e-05/0.264, allocations: 89.02 kB / 416.1 MB, free: 9.941 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.864e-05/0.2641, allocations: 0 / 416.1 MB, free: 9.941 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001112/0.2642, allocations: 8.031 kB / 416.1 MB, free: 9.934 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.9e-05/0.2642, allocations: 8 kB / 416.1 MB, free: 9.926 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.067e-05/0.2642, allocations: 7.984 kB / 416.1 MB, free: 9.918 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.731e-05/0.2643, allocations: 99.27 kB / 416.2 MB, free: 9.82 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2643, allocations: 0 / 416.2 MB, free: 9.82 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002465/0.2646, allocations: 24 kB / 416.2 MB, free: 9.797 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.0007891/0.2654, allocations: 0.8022 MB / 417 MB, free: 8.969 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003011/0.2657, allocations: 91.83 kB / 417.1 MB, free: 8.879 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.2657, allocations: 0 / 417.1 MB, free: 8.879 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001228/0.2658, allocations: 47.97 kB / 417.2 MB, free: 8.832 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003064/0.2661, allocations: 19.92 kB / 417.2 MB, free: 8.812 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002378/0.2685, allocations: 1.88 MB / 419.1 MB, free: 6.836 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003523/0.2689, allocations: 0.7041 MB / 419.8 MB, free: 6.105 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.013e-05/0.269, allocations: 16.41 kB / 419.8 MB, free: 6.09 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.184e-05/0.2691, allocations: 31.44 kB / 419.8 MB, free: 6.059 MB / 334.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2691, allocations: 0 / 419.8 MB, free: 6.059 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02485/0.2939, allocations: 2.732 MB / 422.6 MB, free: 3.453 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.96/8.254, allocations: 10.27 kB / 422.6 MB, free: 3.449 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 & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 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)