Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_EddyCurrentBrake",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_EddyCurrentBrake",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007922/0.0007923, allocations: 86 kB / 16.31 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008113/0.0008114, allocations: 180.6 kB / 17.21 MB, free: 6.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.45/1.45, allocations: 223.3 MB / 241.2 MB, free: 5.258 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002876/0.0002878, allocations: 6.406 kB / 300.9 MB, free: 5.488 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1047, allocations: 50.43 MB / 351.3 MB, free: 11.3 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake): time 0.002148/0.1069, allocations: 1.452 MB / 352.8 MB, free: 9.844 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009443/0.1079, allocations: 0.5809 MB / 353.4 MB, free: 9.258 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.272e-05/0.108, allocations: 7.938 kB / 353.4 MB, free: 9.25 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001031/0.1081, allocations: 7.922 kB / 353.4 MB, free: 9.242 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 6.324e-05/0.1082, allocations: 27.77 kB / 353.4 MB, free: 9.215 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002004/0.1084, allocations: 43.88 kB / 353.5 MB, free: 9.172 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001572/0.1085, allocations: 115.4 kB / 353.6 MB, free: 9.059 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001141/0.1087, allocations: 19.94 kB / 353.6 MB, free: 9.039 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.482e-05/0.1087, allocations: 39.86 kB / 353.6 MB, free: 9 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.967e-05/0.1088, allocations: 43.78 kB / 353.7 MB, free: 8.957 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.596e-05/0.1088, allocations: 4 kB / 353.7 MB, free: 8.953 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.74e-05/0.1089, allocations: 19.98 kB / 353.7 MB, free: 8.934 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.055e-05/0.109, allocations: 19.91 kB / 353.7 MB, free: 8.914 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.652e-05/0.109, allocations: 41.7 kB / 353.8 MB, free: 8.867 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001446/0.1091, allocations: 87.78 kB / 353.8 MB, free: 8.781 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.1092, allocations: 0 / 353.8 MB, free: 8.781 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.1092, allocations: 0 / 353.8 MB, free: 8.781 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.581e-06/0.1092, allocations: 4 kB / 353.8 MB, free: 8.777 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0005018/0.1097, allocations: 391.1 kB / 354.2 MB, free: 8.348 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.586e-05/0.1097, allocations: 12.03 kB / 354.2 MB, free: 8.336 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.449e-05/0.1098, allocations: 46.48 kB / 354.3 MB, free: 8.281 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001796/0.11, allocations: 27.84 kB / 354.3 MB, free: 8.254 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002085/0.1102, allocations: 179 kB / 354.5 MB, free: 8.039 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.343e-05/0.1102, allocations: 16.11 kB / 354.5 MB, free: 8.023 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.954e-05/0.1103, allocations: 12 kB / 354.5 MB, free: 8.012 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000191/0.1105, allocations: 101.3 kB / 354.6 MB, free: 7.91 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.511e-05/0.1105, allocations: 3.906 kB / 354.6 MB, free: 7.906 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.419e-05/0.1105, allocations: 8 kB / 354.6 MB, free: 7.898 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.177e-06/0.1105, allocations: 3.953 kB / 354.6 MB, free: 7.895 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001368/0.1107, allocations: 56.53 kB / 354.7 MB, free: 7.84 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007404/0.1114, allocations: 478.1 kB / 355.2 MB, free: 7.309 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002345/0.1116, allocations: 86.52 kB / 355.2 MB, free: 7.215 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.638e-05/0.1117, allocations: 28.89 kB / 355.3 MB, free: 7.184 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.103e-05/0.1117, allocations: 0 / 355.3 MB, free: 7.184 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.318e-05/0.1118, allocations: 30.56 kB / 355.3 MB, free: 7.145 MB / 286.1 MB Notification: Performance of pre-optimization done (n=8): time 9.42e-07/0.1118, allocations: 4 kB / 355.3 MB, free: 7.141 MB / 286.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002306/0.112, allocations: 97.73 kB / 355.4 MB, free: 7.039 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.792e-05/0.1121, allocations: 51.41 kB / 355.4 MB, free: 6.977 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001085/0.1122, allocations: 125.8 kB / 355.6 MB, free: 6.844 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.6e-05/0.1122, allocations: 25.7 kB / 355.6 MB, free: 6.812 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.666e-05/0.1123, allocations: 111.8 kB / 355.7 MB, free: 6.699 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.918e-05/0.1123, allocations: 27.56 kB / 355.7 MB, free: 6.672 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.321e-06/0.1123, allocations: 4 kB / 355.7 MB, free: 6.668 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001329/0.1125, allocations: 326.8 kB / 356.1 MB, free: 6.34 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.3e-05/0.1125, allocations: 23.98 kB / 356.1 MB, free: 6.316 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.461e-05/0.1126, allocations: 47.42 kB / 356.1 MB, free: 6.258 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.533e-05/0.1127, allocations: 28 kB / 356.1 MB, free: 6.23 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.1127, allocations: 0 / 356.1 MB, free: 6.23 MB / 286.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001607/0.1128, allocations: 109.5 kB / 356.3 MB, free: 6.117 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.496e-05/0.1129, allocations: 8 kB / 356.3 MB, free: 6.109 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.1129, allocations: 0 / 356.3 MB, free: 6.109 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.381e-05/0.1129, allocations: 4 kB / 356.3 MB, free: 6.105 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001134/0.113, allocations: 35.86 kB / 356.3 MB, free: 6.07 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.163e-06/0.113, allocations: 0 / 356.3 MB, free: 6.07 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.155e-05/0.1131, allocations: 7.906 kB / 356.3 MB, free: 6.062 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.247e-06/0.1131, allocations: 4.094 kB / 356.3 MB, free: 6.059 MB / 286.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 (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * 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.0001055/0.1132, allocations: 133.8 kB / 356.4 MB, free: 5.918 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.865e-05/0.1132, allocations: 7.906 kB / 356.5 MB, free: 5.91 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.884e-05/0.1133, allocations: 8.375 kB / 356.5 MB, free: 5.898 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.1133, allocations: 4 kB / 356.5 MB, free: 5.895 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.1133, allocations: 0 / 356.5 MB, free: 5.895 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.1133, allocations: 0 / 356.5 MB, free: 5.895 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002117/0.1135, allocations: 209.5 kB / 356.7 MB, free: 5.641 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.1135, allocations: 0 / 356.7 MB, free: 5.641 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001231/0.1137, allocations: 27.92 kB / 356.7 MB, free: 5.613 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.1137, allocations: 0 / 356.7 MB, free: 5.613 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.17e-05/0.1137, allocations: 3.984 kB / 356.7 MB, free: 5.609 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.1137, allocations: 4 kB / 356.7 MB, free: 5.605 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.1137, allocations: 0 / 356.7 MB, free: 5.605 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002365/0.1139, allocations: 211.4 kB / 356.9 MB, free: 5.383 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.78e-05/0.114, allocations: 81.02 kB / 357 MB, free: 5.285 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.833e-05/0.114, allocations: 0 / 357 MB, free: 5.285 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.511e-05/0.1141, allocations: 4 kB / 357 MB, free: 5.281 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.936e-05/0.1141, allocations: 4.031 kB / 357 MB, free: 5.277 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.85e-05/0.1142, allocations: 12 kB / 357 MB, free: 5.266 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.222e-05/0.1142, allocations: 91.27 kB / 357.1 MB, free: 5.176 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1142, allocations: 0 / 357.1 MB, free: 5.176 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002394/0.1145, allocations: 20 kB / 357.1 MB, free: 5.156 MB / 286.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 (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0004967/0.115, allocations: 0.7436 MB / 357.9 MB, free: 4.387 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001408/0.1151, allocations: 59.95 kB / 357.9 MB, free: 4.328 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.556e-06/0.1151, allocations: 4 kB / 357.9 MB, free: 4.324 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 4.248e-05/0.1152, allocations: 36.33 kB / 358 MB, free: 4.289 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003433/0.1155, allocations: 8 kB / 358 MB, free: 4.281 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001262/0.1168, allocations: 0.9155 MB / 358.9 MB, free: 3.301 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002634/0.1171, allocations: 0.6928 MB / 359.6 MB, free: 2.582 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 5.238e-05/0.1171, allocations: 8.422 kB / 359.6 MB, free: 2.574 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.561e-05/0.1172, allocations: 35.42 kB / 359.6 MB, free: 2.539 MB / 286.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1172, allocations: 0 / 359.6 MB, free: 2.539 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01241/0.1296, allocations: 1.991 MB / 361.6 MB, free: 0.6914 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001791/0.1298, allocations: 194.8 kB / 361.8 MB, free: 460 kB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.709/1.838, allocations: 0 / 361.8 MB, free: 460 kB / 286.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_EddyCurrentBrake_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_EddyCurrentBrake.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake_res.mat does not exist to compare? outputFormat=mat