Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_EddyCurrentBrake",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_EddyCurrentBrake",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00219/0.002195, allocations: 186.3 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.063/2.063, allocations: 205.4 MB / 222.5 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001175/0.001175, allocations: 90.86 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005271/0.0005274, allocations: 8 kB / 327.1 MB, free: 15.01 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1325/0.1331, allocations: 47.58 MB / 374.6 MB, free: 15.36 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake): time 0.003373/0.1365, allocations: 1.4 MB / 376 MB, free: 13.95 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001902/0.1385, allocations: 0.6248 MB / 376.7 MB, free: 13.31 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001725/0.1387, allocations: 4 kB / 376.7 MB, free: 13.31 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 5.615e-05/0.1388, allocations: 7.922 kB / 376.7 MB, free: 13.3 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002296/0.139, allocations: 43.83 kB / 376.7 MB, free: 13.26 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003212/0.1394, allocations: 43.88 kB / 376.8 MB, free: 13.21 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002651/0.1397, allocations: 87.81 kB / 376.8 MB, free: 13.13 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001549/0.1398, allocations: 19.98 kB / 376.9 MB, free: 13.11 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001031/0.1399, allocations: 43.84 kB / 376.9 MB, free: 13.07 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001416/0.1401, allocations: 35.84 kB / 376.9 MB, free: 13.03 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.624e-05/0.1401, allocations: 4 kB / 376.9 MB, free: 13.03 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001403/0.1403, allocations: 20 kB / 377 MB, free: 13.01 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.378e-05/0.1404, allocations: 15.92 kB / 377 MB, free: 12.99 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.475e-05/0.1404, allocations: 49.64 kB / 377 MB, free: 12.94 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002746/0.1407, allocations: 92.05 kB / 377.1 MB, free: 12.85 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.1408, allocations: 0 / 377.1 MB, free: 12.85 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.535e-06/0.1408, allocations: 0 / 377.1 MB, free: 12.85 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.919e-06/0.1408, allocations: 0 / 377.1 MB, free: 12.85 MB / 282.7 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.0008128/0.1416, allocations: 383.2 kB / 377.5 MB, free: 12.43 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.216e-05/0.1417, allocations: 8.031 kB / 377.5 MB, free: 12.42 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.915e-05/0.1418, allocations: 46.55 kB / 377.5 MB, free: 12.36 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003458/0.1422, allocations: 27.8 kB / 377.6 MB, free: 12.34 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003237/0.1425, allocations: 194.9 kB / 377.8 MB, free: 12.11 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.319e-05/0.1425, allocations: 8.188 kB / 377.8 MB, free: 12.1 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.803e-05/0.1426, allocations: 8 kB / 377.8 MB, free: 12.09 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003548/0.143, allocations: 91.16 kB / 377.9 MB, free: 12 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.535e-05/0.143, allocations: 4 kB / 377.9 MB, free: 11.99 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.298e-05/0.1431, allocations: 7.938 kB / 377.9 MB, free: 11.98 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.665e-06/0.1431, allocations: 0 / 377.9 MB, free: 11.98 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002702/0.1434, allocations: 60.47 kB / 377.9 MB, free: 11.93 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001488/0.1449, allocations: 497.9 kB / 378.4 MB, free: 11.38 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004816/0.1454, allocations: 78.62 kB / 378.5 MB, free: 11.29 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.856e-05/0.1455, allocations: 7.953 kB / 378.5 MB, free: 11.28 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.07e-05/0.1455, allocations: 30.56 kB / 378.5 MB, free: 11.24 MB / 282.7 MB Notification: Performance of pre-optimization done (n=8): time 4.037e-06/0.1455, allocations: 3.938 kB / 378.5 MB, free: 11.24 MB / 282.7 MB Notification: Performance of matching and sorting (n=8): time 0.0004567/0.146, allocations: 97.53 kB / 378.6 MB, free: 11.14 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.159e-05/0.1461, allocations: 55.41 kB / 378.7 MB, free: 11.07 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001705/0.1463, allocations: 117.8 kB / 378.8 MB, free: 10.95 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.112e-05/0.1463, allocations: 33.7 kB / 378.8 MB, free: 10.91 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001344/0.1465, allocations: 170.3 kB / 379 MB, free: 10.74 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.56e-05/0.1466, allocations: 31.7 kB / 379 MB, free: 10.71 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.459e-05/0.1466, allocations: 8 kB / 379 MB, free: 10.7 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001732/0.1468, allocations: 314.8 kB / 379.3 MB, free: 10.38 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001012/0.1469, allocations: 24 kB / 379.4 MB, free: 10.36 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000132/0.147, allocations: 47.42 kB / 379.4 MB, free: 10.3 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001294/0.1472, allocations: 31.94 kB / 379.4 MB, free: 10.27 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.1472, allocations: 0 / 379.4 MB, free: 10.27 MB / 282.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000396/0.1476, allocations: 109.5 kB / 379.6 MB, free: 10.16 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.198e-05/0.1477, allocations: 16.05 kB / 379.6 MB, free: 10.14 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/0.1477, allocations: 0 / 379.6 MB, free: 10.14 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.412e-05/0.1477, allocations: 0 / 379.6 MB, free: 10.14 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003/0.148, allocations: 27.92 kB / 379.6 MB, free: 10.11 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.338e-05/0.1481, allocations: 4 kB / 379.6 MB, free: 10.11 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001627/0.1482, allocations: 8 kB / 379.6 MB, free: 10.1 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.824e-05/0.1483, allocations: 4 kB / 379.6 MB, free: 10.1 MB / 282.7 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.0001783/0.1485, allocations: 121.7 kB / 379.7 MB, free: 9.969 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.377e-05/0.1485, allocations: 11.91 kB / 379.7 MB, free: 9.957 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.188e-05/0.1486, allocations: 16.33 kB / 379.8 MB, free: 9.941 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.949e-06/0.1487, allocations: 3.984 kB / 379.8 MB, free: 9.938 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.004e-06/0.1487, allocations: 3.938 kB / 379.8 MB, free: 9.934 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.945e-06/0.1487, allocations: 4 kB / 379.8 MB, free: 9.93 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004864/0.1492, allocations: 197.5 kB / 380 MB, free: 9.688 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.1492, allocations: 0 / 380 MB, free: 9.688 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003454/0.1496, allocations: 19.98 kB / 380 MB, free: 9.668 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.985e-06/0.1496, allocations: 96 / 380 MB, free: 9.668 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.77e-05/0.1496, allocations: 11.94 kB / 380 MB, free: 9.656 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.316e-06/0.1497, allocations: 3.953 kB / 380 MB, free: 9.652 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.846e-06/0.1497, allocations: 4 kB / 380 MB, free: 9.648 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005174/0.1502, allocations: 199.4 kB / 380.2 MB, free: 9.438 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.617e-05/0.1503, allocations: 81.11 kB / 380.3 MB, free: 9.34 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.171e-05/0.1504, allocations: 8.031 kB / 380.3 MB, free: 9.332 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001838/0.1506, allocations: 0 / 380.3 MB, free: 9.332 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.937e-05/0.1506, allocations: 11.94 kB / 380.3 MB, free: 9.32 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.254e-05/0.1507, allocations: 0 / 380.3 MB, free: 9.32 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001145/0.1508, allocations: 99.27 kB / 380.4 MB, free: 9.223 MB / 282.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.1508, allocations: 0 / 380.4 MB, free: 9.223 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005953/0.1514, allocations: 31.84 kB / 380.4 MB, free: 9.191 MB / 282.7 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.0009185/0.1523, allocations: 0.7245 MB / 381.2 MB, free: 8.438 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0003113/0.1527, allocations: 68.16 kB / 381.2 MB, free: 8.371 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 6.342e-06/0.1527, allocations: 0 / 381.2 MB, free: 8.371 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001206/0.1528, allocations: 31.92 kB / 381.2 MB, free: 8.34 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005175/0.1534, allocations: 16.12 kB / 381.3 MB, free: 8.324 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003131/0.1565, allocations: 1.386 MB / 382.6 MB, free: 6.871 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005157/0.1571, allocations: 0.7043 MB / 383.4 MB, free: 6.137 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001207/0.1573, allocations: 23.5 kB / 383.4 MB, free: 6.113 MB / 282.7 MB Notification: Performance of SimCode: time 1.463e-06/0.1573, allocations: 0 / 383.4 MB, free: 6.113 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.642/2.799, allocations: 1.794 MB / 385.2 MB, free: 4.32 MB / 282.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_EddyCurrentBrake_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_EddyCurrentBrake.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake_res.mat does not exist to compare? outputFormat=mat