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.001209/0.001209, allocations: 95.61 kB / 16.3 MB, free: 5.996 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.00137/0.00137, allocations: 183.9 kB / 17.2 MB, free: 5.914 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.413/1.413, allocations: 223.2 MB / 241.1 MB, free: 5.391 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003964/0.0003965, allocations: 6.406 kB / 300.8 MB, free: 6.074 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1588/0.1592, allocations: 50.43 MB / 351.2 MB, free: 11.61 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake): time 0.0018/0.1611, allocations: 1.394 MB / 352.6 MB, free: 10.21 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.000927/0.162, allocations: 0.581 MB / 353.2 MB, free: 9.625 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.308e-05/0.1621, allocations: 7.875 kB / 353.2 MB, free: 9.617 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.838e-05/0.1621, allocations: 11.92 kB / 353.2 MB, free: 9.605 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001085/0.1623, allocations: 39.91 kB / 353.3 MB, free: 9.566 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001867/0.1625, allocations: 39.94 kB / 353.3 MB, free: 9.527 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001647/0.1626, allocations: 87.81 kB / 353.4 MB, free: 9.441 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001162/0.1628, allocations: 20.25 kB / 353.4 MB, free: 9.422 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.029e-05/0.1628, allocations: 39.86 kB / 353.4 MB, free: 9.383 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.341e-05/0.1629, allocations: 43.78 kB / 353.5 MB, free: 9.34 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.545e-05/0.1629, allocations: 4 kB / 353.5 MB, free: 9.336 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.908e-05/0.163, allocations: 23.97 kB / 353.5 MB, free: 9.312 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.741e-05/0.163, allocations: 15.98 kB / 353.5 MB, free: 9.297 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.06e-05/0.1631, allocations: 41.64 kB / 353.6 MB, free: 9.25 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001424/0.1632, allocations: 95.72 kB / 353.7 MB, free: 9.156 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.375e-06/0.1633, allocations: 0 / 353.7 MB, free: 9.156 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.1633, allocations: 0 / 353.7 MB, free: 9.156 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.128e-06/0.1633, allocations: 0 / 353.7 MB, free: 9.156 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.0005055/0.1638, allocations: 379.3 kB / 354 MB, free: 8.738 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.444e-05/0.1638, allocations: 15.97 kB / 354.1 MB, free: 8.723 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.091e-05/0.1639, allocations: 46.55 kB / 354.1 MB, free: 8.668 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001875/0.1641, allocations: 35.78 kB / 354.1 MB, free: 8.633 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001877/0.1643, allocations: 183 kB / 354.3 MB, free: 8.414 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.438e-06/0.1643, allocations: 4.188 kB / 354.3 MB, free: 8.41 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.839e-05/0.1643, allocations: 15.91 kB / 354.3 MB, free: 8.395 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001894/0.1645, allocations: 97.33 kB / 354.4 MB, free: 8.297 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.073e-05/0.1645, allocations: 0 / 354.4 MB, free: 8.297 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.011e-05/0.1646, allocations: 11.94 kB / 354.4 MB, free: 8.285 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.435e-06/0.1646, allocations: 3.953 kB / 354.4 MB, free: 8.281 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001227/0.1647, allocations: 56.53 kB / 354.5 MB, free: 8.227 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007423/0.1655, allocations: 482.1 kB / 355 MB, free: 7.691 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002336/0.1657, allocations: 86.5 kB / 355.1 MB, free: 7.598 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.071e-05/0.1657, allocations: 4 kB / 355.1 MB, free: 7.594 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.744e-05/0.1658, allocations: 38.56 kB / 355.1 MB, free: 7.547 MB / 286.1 MB Notification: Performance of pre-optimization done (n=8): time 1.182e-06/0.1658, allocations: 0 / 355.1 MB, free: 7.547 MB / 286.1 MB Notification: Performance of matching and sorting (n=8): time 0.000218/0.166, allocations: 97.77 kB / 355.2 MB, free: 7.445 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.089e-05/0.166, allocations: 55.41 kB / 355.2 MB, free: 7.379 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.735e-05/0.1661, allocations: 109.8 kB / 355.4 MB, free: 7.262 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.53e-05/0.1662, allocations: 29.7 kB / 355.4 MB, free: 7.227 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.073e-05/0.1662, allocations: 115.7 kB / 355.5 MB, free: 7.109 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.837e-05/0.1663, allocations: 35.55 kB / 355.5 MB, free: 7.074 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.512e-06/0.1663, allocations: 4 kB / 355.5 MB, free: 7.07 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001178/0.1664, allocations: 322.8 kB / 355.8 MB, free: 6.746 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.477e-05/0.1665, allocations: 23.94 kB / 355.9 MB, free: 6.723 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.148e-05/0.1665, allocations: 50.67 kB / 355.9 MB, free: 6.664 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.936e-05/0.1666, allocations: 28 kB / 355.9 MB, free: 6.637 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.1666, allocations: 0 / 355.9 MB, free: 6.637 MB / 286.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001601/0.1668, allocations: 113.5 kB / 356.1 MB, free: 6.52 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.525e-05/0.1668, allocations: 4 kB / 356.1 MB, free: 6.516 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.469e-06/0.1668, allocations: 0 / 356.1 MB, free: 6.516 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.186e-05/0.1668, allocations: 4 kB / 356.1 MB, free: 6.512 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001126/0.1669, allocations: 23.98 kB / 356.1 MB, free: 6.488 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.117e-05/0.1669, allocations: 0 / 356.1 MB, free: 6.488 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.45e-05/0.167, allocations: 19.88 kB / 356.1 MB, free: 6.469 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.319e-05/0.167, allocations: 8 kB / 356.1 MB, free: 6.461 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 9.948e-05/0.1671, allocations: 117.8 kB / 356.2 MB, free: 6.336 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.665e-05/0.1672, allocations: 7.906 kB / 356.2 MB, free: 6.328 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.943e-05/0.1672, allocations: 16.47 kB / 356.3 MB, free: 6.309 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.507e-06/0.1672, allocations: 7.922 kB / 356.3 MB, free: 6.301 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.1672, allocations: 0 / 356.3 MB, free: 6.301 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.1672, allocations: 0 / 356.3 MB, free: 6.301 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002067/0.1675, allocations: 193.6 kB / 356.5 MB, free: 6.062 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.1675, allocations: 4 kB / 356.5 MB, free: 6.059 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001224/0.1676, allocations: 23.98 kB / 356.5 MB, free: 6.035 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.1676, allocations: 0 / 356.5 MB, free: 6.035 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.007e-06/0.1676, allocations: 0 / 356.5 MB, free: 6.035 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.1676, allocations: 0 / 356.5 MB, free: 6.035 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.1676, allocations: 3.938 kB / 356.5 MB, free: 6.031 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002304/0.1679, allocations: 211.4 kB / 356.7 MB, free: 5.809 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.394e-05/0.1679, allocations: 84.95 kB / 356.8 MB, free: 5.707 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.708e-05/0.168, allocations: 12.03 kB / 356.8 MB, free: 5.695 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.829e-05/0.168, allocations: 8 kB / 356.8 MB, free: 5.688 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2e-05/0.1681, allocations: 4 kB / 356.8 MB, free: 5.684 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.088e-06/0.1681, allocations: 0 / 356.8 MB, free: 5.684 MB / 286.1 MB Notification: Performance of sorting global known variables: time 4.978e-05/0.1681, allocations: 95.64 kB / 356.9 MB, free: 5.59 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1681, allocations: 0 / 356.9 MB, free: 5.59 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000253/0.1684, allocations: 27.91 kB / 356.9 MB, free: 5.562 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.0005073/0.1689, allocations: 0.7397 MB / 357.7 MB, free: 4.797 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001425/0.1691, allocations: 67.94 kB / 357.7 MB, free: 4.73 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.1691, allocations: 0 / 357.7 MB, free: 4.73 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 3.791e-05/0.1691, allocations: 20 kB / 357.7 MB, free: 4.711 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002715/0.1694, allocations: 19.92 kB / 357.8 MB, free: 4.691 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001475/0.1709, allocations: 1.365 MB / 359.1 MB, free: 3.258 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002773/0.1712, allocations: 0.7043 MB / 359.8 MB, free: 2.527 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 5.259e-05/0.1712, allocations: 8.438 kB / 359.8 MB, free: 2.52 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.571e-05/0.1713, allocations: 27.42 kB / 359.9 MB, free: 2.492 MB / 286.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1713, allocations: 4.125 kB / 359.9 MB, free: 2.488 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0118/0.1831, allocations: 1.986 MB / 361.9 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001787/0.1833, allocations: 189.4 kB / 362 MB, free: 412 kB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.683/1.867, allocations: 0 / 362 MB, free: 412 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