Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_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 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.Mechanics.Rotational.Examples.EddyCurrentBrake,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_EddyCurrentBrake",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake,fileNamePrefix="Modelica_trunk_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.0007722/0.0007723, allocations: 94.33 kB / 17 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008622/0.0008625, allocations: 192.7 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.345/1.345, allocations: 227.4 MB / 246 MB, free: 10.24 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00028/0.0002801, allocations: 4 kB / 306.8 MB, free: 1.242 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1167/0.117, allocations: 51.49 MB / 358.3 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake): time 0.002166/0.1192, allocations: 1.644 MB / 360 MB, free: 12.1 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009855/0.1202, allocations: 0.6512 MB / 360.6 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.713e-05/0.1203, allocations: 7.875 kB / 360.6 MB, free: 11.44 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 9.515e-05/0.1204, allocations: 11.92 kB / 360.6 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.935e-05/0.1205, allocations: 31.7 kB / 360.7 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001997/0.1207, allocations: 47.88 kB / 360.7 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001732/0.1209, allocations: 135.3 kB / 360.8 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000128/0.121, allocations: 33.08 kB / 360.9 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.165e-05/0.1211, allocations: 47.8 kB / 360.9 MB, free: 11.13 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.855e-05/0.1212, allocations: 47.78 kB / 361 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.782e-05/0.1212, allocations: 4 kB / 361 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.53e-05/0.1213, allocations: 27.97 kB / 361 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.1e-05/0.1213, allocations: 15.92 kB / 361 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.008e-05/0.1213, allocations: 45.64 kB / 361 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001448/0.1215, allocations: 100 kB / 361.1 MB, free: 10.89 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.083e-06/0.1215, allocations: 3.984 kB / 361.2 MB, free: 10.89 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1215, allocations: 0 / 361.2 MB, free: 10.89 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.578e-06/0.1215, allocations: 0 / 361.2 MB, free: 10.89 MB / 302.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.0005677/0.1221, allocations: 423 kB / 361.6 MB, free: 10.43 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.569e-05/0.1221, allocations: 8.031 kB / 361.6 MB, free: 10.42 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.462e-05/0.1222, allocations: 42.55 kB / 361.6 MB, free: 10.37 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001747/0.1224, allocations: 27.8 kB / 361.6 MB, free: 10.34 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002236/0.1226, allocations: 210.8 kB / 361.8 MB, free: 10.09 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.231e-05/0.1226, allocations: 8 kB / 361.9 MB, free: 10.09 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.929e-05/0.1227, allocations: 15.95 kB / 361.9 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002725/0.1229, allocations: 114.7 kB / 362 MB, free: 9.953 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.374e-05/0.123, allocations: 0 / 362 MB, free: 9.953 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.437e-05/0.123, allocations: 7.938 kB / 362 MB, free: 9.945 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.019e-06/0.123, allocations: 4 kB / 362 MB, free: 9.941 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002591/0.1233, allocations: 104.5 kB / 362.1 MB, free: 9.84 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008565/0.1241, allocations: 0.5205 MB / 362.6 MB, free: 9.258 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000318/0.1245, allocations: 122.5 kB / 362.7 MB, free: 9.129 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001152/0.1246, allocations: 48.78 kB / 362.8 MB, free: 9.078 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.48e-05/0.1246, allocations: 0 / 362.8 MB, free: 9.078 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.432e-05/0.1246, allocations: 34.52 kB / 362.8 MB, free: 9.035 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 9.62e-07/0.1247, allocations: 0 / 362.8 MB, free: 9.035 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004316/0.1251, allocations: 161.7 kB / 363 MB, free: 8.871 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.441e-05/0.1251, allocations: 51.41 kB / 363 MB, free: 8.809 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001026/0.1252, allocations: 140.3 kB / 363.2 MB, free: 8.664 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.675e-05/0.1253, allocations: 33.69 kB / 363.2 MB, free: 8.625 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.876e-05/0.1253, allocations: 116.1 kB / 363.3 MB, free: 8.504 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.885e-05/0.1254, allocations: 31.55 kB / 363.3 MB, free: 8.473 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.466e-06/0.1254, allocations: 8 kB / 363.3 MB, free: 8.465 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001121/0.1255, allocations: 314.8 kB / 363.7 MB, free: 8.148 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001132/0.1256, allocations: 39.97 kB / 363.7 MB, free: 8.109 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001269/0.1258, allocations: 75.41 kB / 363.8 MB, free: 8.023 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001197/0.1259, allocations: 51.84 kB / 363.8 MB, free: 7.973 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.1259, allocations: 8 kB / 363.8 MB, free: 7.965 MB / 302.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002936/0.1262, allocations: 153.3 kB / 364 MB, free: 7.809 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.474e-05/0.1262, allocations: 4 kB / 364 MB, free: 7.805 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.1262, allocations: 3.953 kB / 364 MB, free: 7.801 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.569e-05/0.1263, allocations: 12.09 kB / 364 MB, free: 7.789 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001558/0.1264, allocations: 39.91 kB / 364 MB, free: 7.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.873e-06/0.1264, allocations: 0 / 364 MB, free: 7.75 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001033/0.1265, allocations: 19.92 kB / 364.1 MB, free: 7.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.036e-05/0.1266, allocations: 4 kB / 364.1 MB, free: 7.727 MB / 302.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.891e-05/0.1267, allocations: 121.8 kB / 364.2 MB, free: 7.598 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.075e-05/0.1267, allocations: 11.91 kB / 364.2 MB, free: 7.586 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.002e-05/0.1268, allocations: 12.72 kB / 364.2 MB, free: 7.566 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/0.1268, allocations: 7.953 kB / 364.2 MB, free: 7.559 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.1268, allocations: 0 / 364.2 MB, free: 7.559 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.644e-06/0.1268, allocations: 3.984 kB / 364.2 MB, free: 7.555 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002345/0.127, allocations: 209.9 kB / 364.4 MB, free: 7.301 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.127, allocations: 0 / 364.4 MB, free: 7.301 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001743/0.1272, allocations: 35.91 kB / 364.5 MB, free: 7.266 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.058e-06/0.1272, allocations: 4 kB / 364.5 MB, free: 7.262 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.109e-05/0.1273, allocations: 7.938 kB / 364.5 MB, free: 7.254 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.1273, allocations: 0 / 364.5 MB, free: 7.254 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.1273, allocations: 3.953 kB / 364.5 MB, free: 7.25 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004239/0.1277, allocations: 271.4 kB / 364.7 MB, free: 6.969 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.959e-05/0.1277, allocations: 88.95 kB / 364.8 MB, free: 6.863 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.495e-05/0.1278, allocations: 8.031 kB / 364.8 MB, free: 6.855 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001132/0.1279, allocations: 8 kB / 364.8 MB, free: 6.848 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.439e-05/0.1279, allocations: 11.94 kB / 364.8 MB, free: 6.836 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.661e-06/0.128, allocations: 0 / 364.8 MB, free: 6.836 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.152e-05/0.128, allocations: 105.6 kB / 364.9 MB, free: 6.734 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.128, allocations: 0 / 364.9 MB, free: 6.734 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002526/0.1283, allocations: 31.91 kB / 365 MB, free: 6.703 MB / 302.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 (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.0006414/0.1289, allocations: 0.806 MB / 365.8 MB, free: 5.871 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002785/0.1292, allocations: 112 kB / 365.9 MB, free: 5.762 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.1292, allocations: 0 / 365.9 MB, free: 5.762 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000114/0.1294, allocations: 47.97 kB / 365.9 MB, free: 5.715 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003256/0.1297, allocations: 23.02 kB / 366 MB, free: 5.695 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001501/0.1312, allocations: 1.049 MB / 367 MB, free: 4.586 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002605/0.1315, allocations: 0.7082 MB / 367.7 MB, free: 3.852 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.538e-05/0.1315, allocations: 12.42 kB / 367.7 MB, free: 3.84 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.625e-05/0.1316, allocations: 31.42 kB / 367.8 MB, free: 3.809 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1316, allocations: 0 / 367.8 MB, free: 3.809 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01245/0.1441, allocations: 2.361 MB / 370.1 MB, free: 1.602 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001967/0.1443, allocations: 194.5 kB / 370.3 MB, free: 1.359 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.849/1.993, allocations: 3.375 kB / 370.3 MB, free: 1.359 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_EddyCurrentBrake_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_EddyCurrentBrake.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake_res.mat does not exist to compare? outputFormat=mat