Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008378/0.0008378, allocations: 95.38 kB / 17 MB, free: 6.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001024/0.001024, allocations: 197 kB / 17.91 MB, free: 5.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.363/1.363, allocations: 227.4 MB / 246 MB, free: 10.24 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2168/0.2168, allocations: 45.91 MB / 344.1 MB, free: 12 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002472/0.0002472, allocations: 7.938 kB / 418.2 MB, free: 20.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.122/0.1223, allocations: 63.47 MB / 481.6 MB, free: 5.25 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.002376/0.1247, allocations: 1.583 MB / 483.2 MB, free: 3.652 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008097/0.1256, allocations: 0.5069 MB / 483.7 MB, free: 3.141 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.668e-05/0.1257, allocations: 0 / 483.7 MB, free: 3.141 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001121/0.1258, allocations: 15.86 kB / 483.7 MB, free: 3.125 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.653e-05/0.1259, allocations: 47.62 kB / 483.8 MB, free: 3.078 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001945/0.1261, allocations: 19.98 kB / 483.8 MB, free: 3.059 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001788/0.1263, allocations: 135.3 kB / 483.9 MB, free: 2.926 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001574/0.1264, allocations: 45.78 kB / 484 MB, free: 2.875 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001538/0.1266, allocations: 51.8 kB / 484 MB, free: 2.824 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001123/0.1267, allocations: 59.75 kB / 484.1 MB, free: 2.766 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.26e-05/0.1268, allocations: 12 kB / 484.1 MB, free: 2.754 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.579e-05/0.1268, allocations: 8 kB / 484.1 MB, free: 2.746 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.677e-05/0.1269, allocations: 23.86 kB / 484.1 MB, free: 2.723 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.325e-05/0.1269, allocations: 49.64 kB / 484.2 MB, free: 2.668 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001643/0.1271, allocations: 111.9 kB / 484.3 MB, free: 2.559 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.1271, allocations: 0 / 484.3 MB, free: 2.559 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1271, allocations: 0 / 484.3 MB, free: 2.559 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.668e-06/0.1271, allocations: 0 / 484.3 MB, free: 2.559 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0005341/0.1277, allocations: 414.9 kB / 484.7 MB, free: 2.105 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.956e-05/0.1277, allocations: 12.03 kB / 484.7 MB, free: 2.094 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.619e-05/0.1278, allocations: 46.55 kB / 484.8 MB, free: 2.039 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001358/0.1279, allocations: 23.81 kB / 484.8 MB, free: 2.016 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002044/0.1281, allocations: 198.9 kB / 485 MB, free: 1.781 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.309e-05/0.1281, allocations: 12 kB / 485 MB, free: 1.77 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.303e-05/0.1282, allocations: 19.91 kB / 485 MB, free: 1.75 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002618/0.1285, allocations: 130.2 kB / 485.1 MB, free: 1.617 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.232e-05/0.1285, allocations: 0 / 485.1 MB, free: 1.617 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.481e-05/0.1285, allocations: 4 kB / 485.1 MB, free: 1.613 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.446e-06/0.1285, allocations: 4 kB / 485.1 MB, free: 1.609 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001754/0.1287, allocations: 91.86 kB / 485.2 MB, free: 1.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006936/0.1294, allocations: 492.1 kB / 485.7 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002079/0.1296, allocations: 110.5 kB / 485.8 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001061/0.1297, allocations: 64.83 kB / 485.9 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.384e-05/0.1298, allocations: 4 kB / 485.9 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.217e-05/0.1298, allocations: 34.56 kB / 485.9 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.293e-06/0.1298, allocations: 0 / 485.9 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.001673/0.1315, allocations: 0.8128 MB / 486.7 MB, free: 15.85 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.581e-05/0.1316, allocations: 63.34 kB / 486.8 MB, free: 15.77 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001318/0.1317, allocations: 140.5 kB / 486.9 MB, free: 15.63 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.831e-05/0.1317, allocations: 29.7 kB / 487 MB, free: 15.59 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.697e-05/0.1318, allocations: 116.3 kB / 487.1 MB, free: 15.48 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.381e-05/0.1319, allocations: 63.02 kB / 487.1 MB, free: 15.41 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.907e-06/0.1319, allocations: 4 kB / 487.1 MB, free: 15.41 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001544/0.132, allocations: 322.8 kB / 487.5 MB, free: 15.09 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.69e-05/0.1321, allocations: 48.34 kB / 487.5 MB, free: 15.04 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001119/0.1323, allocations: 79.16 kB / 487.6 MB, free: 14.95 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001133/0.1324, allocations: 59.89 kB / 487.6 MB, free: 14.89 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-06/0.1324, allocations: 0 / 487.6 MB, free: 14.89 MB / 366.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003604/0.1328, allocations: 206.3 kB / 487.8 MB, free: 14.68 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.824e-05/0.1328, allocations: 7.938 kB / 487.8 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.1328, allocations: 4 kB / 487.8 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001648/0.133, allocations: 40.83 kB / 487.9 MB, free: 14.63 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001706/0.1332, allocations: 39.88 kB / 487.9 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001358/0.1345, allocations: 1.561 MB / 489.5 MB, free: 12.9 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.994e-05/0.1346, allocations: 4.031 kB / 489.5 MB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.454e-05/0.1346, allocations: 12 kB / 489.5 MB, free: 12.88 MB / 366.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 (17): * Single equations (assignments): 16 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001219/0.1348, allocations: 129.8 kB / 489.6 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.784e-05/0.1348, allocations: 19.77 kB / 489.7 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.113e-05/0.1348, allocations: 17.19 kB / 489.7 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.824e-06/0.1348, allocations: 4 kB / 489.7 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.1349, allocations: 0 / 489.7 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.05e-06/0.1349, allocations: 0 / 489.7 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007137/0.1356, allocations: 0.5583 MB / 490.2 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.1356, allocations: 0 / 490.2 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001559/0.1358, allocations: 35.97 kB / 490.3 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.844e-05/0.1359, allocations: 36.88 kB / 490.3 MB, free: 12.02 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.055e-05/0.1359, allocations: 0 / 490.3 MB, free: 12.02 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009674/0.1369, allocations: 1.378 MB / 491.7 MB, free: 10.5 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.1369, allocations: 0 / 491.7 MB, free: 10.5 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004455/0.1373, allocations: 349.4 kB / 492 MB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.671e-05/0.1374, allocations: 101.1 kB / 492.1 MB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.621e-05/0.1374, allocations: 0 / 492.1 MB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.563e-05/0.1375, allocations: 8 kB / 492.1 MB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.462e-05/0.1376, allocations: 11.98 kB / 492.1 MB, free: 10 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.212e-05/0.1376, allocations: 11.98 kB / 492.1 MB, free: 9.992 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.452e-05/0.1377, allocations: 105.5 kB / 492.3 MB, free: 9.891 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.1377, allocations: 0 / 492.3 MB, free: 9.891 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003208/0.138, allocations: 40 kB / 492.3 MB, free: 9.852 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (J1.phi,J1.w) * 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 (16): * Single equations (assignments): 15 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007351/0.1387, allocations: 0.8877 MB / 493.2 MB, free: 8.938 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004672/0.1392, allocations: 262.5 kB / 493.4 MB, free: 8.668 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.1392, allocations: 3.938 kB / 493.4 MB, free: 8.664 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002379/0.1395, allocations: 194.7 kB / 493.6 MB, free: 8.461 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003198/0.1398, allocations: 27.94 kB / 493.7 MB, free: 8.434 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001516/0.1413, allocations: 1.085 MB / 494.7 MB, free: 7.289 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002678/0.1416, allocations: 0.7246 MB / 495.5 MB, free: 6.539 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.877e-05/0.1417, allocations: 5.438 kB / 495.5 MB, free: 6.535 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.926e-05/0.1417, allocations: 43.42 kB / 495.5 MB, free: 6.492 MB / 366.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1417, allocations: 0 / 495.5 MB, free: 6.492 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01373/0.1555, allocations: 3.026 MB / 498.5 MB, free: 3.637 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001667/0.1557, allocations: 209.7 kB / 498.7 MB, free: 3.402 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.898/2.054, allocations: 0 / 498.7 MB, free: 3.402 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat does not exist to compare? outputFormat=mat