Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",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.000948/0.000948, allocations: 96.83 kB / 16.99 MB, free: 5.941 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.001101/0.001101, allocations: 183.4 kB / 17.87 MB, free: 5.609 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.385/1.385, allocations: 223.2 MB / 241.8 MB, free: 14.63 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1991/0.1991, allocations: 44.22 MB / 337.1 MB, free: 2.656 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003232/0.0003233, allocations: 12 kB / 409.6 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1327/0.1331, allocations: 61.91 MB / 471.5 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.002078/0.1352, allocations: 1.524 MB / 473.1 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007128/0.1359, allocations: 471.2 kB / 473.5 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.667e-05/0.136, allocations: 7.938 kB / 473.5 MB, free: 11.63 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.802e-05/0.1361, allocations: 15.92 kB / 473.5 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000144/0.1362, allocations: 39.89 kB / 473.6 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001628/0.1364, allocations: 31.91 kB / 473.6 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001667/0.1366, allocations: 103.8 kB / 473.7 MB, free: 11.44 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001395/0.1367, allocations: 45.78 kB / 473.8 MB, free: 11.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.271e-05/0.1368, allocations: 47.84 kB / 473.8 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001125/0.137, allocations: 59.7 kB / 473.9 MB, free: 11.28 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.813e-05/0.137, allocations: 8 kB / 473.9 MB, free: 11.27 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.071e-05/0.137, allocations: 4 kB / 473.9 MB, free: 11.27 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.505e-05/0.137, allocations: 15.92 kB / 473.9 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.089e-05/0.1371, allocations: 49.64 kB / 473.9 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001345/0.1372, allocations: 119.9 kB / 474.1 MB, free: 11.08 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.1372, allocations: 0 / 474.1 MB, free: 11.08 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.1372, allocations: 0 / 474.1 MB, free: 11.08 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.898e-06/0.1372, allocations: 4 kB / 474.1 MB, free: 11.08 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.0005192/0.1378, allocations: 410.9 kB / 474.5 MB, free: 10.63 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.233e-05/0.1378, allocations: 12.03 kB / 474.5 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.09e-05/0.1379, allocations: 46.55 kB / 474.5 MB, free: 10.56 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.286e-05/0.1379, allocations: 11.81 kB / 474.5 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002076/0.1381, allocations: 194.9 kB / 474.7 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.698e-05/0.1382, allocations: 12 kB / 474.7 MB, free: 10.31 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.744e-05/0.1382, allocations: 27.86 kB / 474.8 MB, free: 10.28 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002667/0.1385, allocations: 134.1 kB / 474.9 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.111e-05/0.1385, allocations: 0 / 474.9 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.444e-05/0.1385, allocations: 8 kB / 474.9 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.606e-06/0.1385, allocations: 4 kB / 474.9 MB, free: 10.13 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001803/0.1387, allocations: 75.95 kB / 475 MB, free: 10.06 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007091/0.1394, allocations: 480.2 kB / 475.4 MB, free: 9.539 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002239/0.1397, allocations: 126.4 kB / 475.6 MB, free: 9.406 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.552e-05/0.1397, allocations: 0 / 475.6 MB, free: 9.406 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.051e-05/0.1397, allocations: 38.56 kB / 475.6 MB, free: 9.359 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.083e-06/0.1397, allocations: 0 / 475.6 MB, free: 9.359 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.001457/0.1412, allocations: 0.815 MB / 476.4 MB, free: 8.453 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.967e-05/0.1413, allocations: 63.3 kB / 476.5 MB, free: 8.379 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001265/0.1414, allocations: 140.7 kB / 476.6 MB, free: 8.234 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.959e-05/0.1414, allocations: 29.7 kB / 476.7 MB, free: 8.199 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.043e-05/0.1415, allocations: 116.3 kB / 476.8 MB, free: 8.082 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.672e-05/0.1416, allocations: 67 kB / 476.8 MB, free: 8.016 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.566e-06/0.1416, allocations: 4 kB / 476.8 MB, free: 8.012 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001318/0.1417, allocations: 322.8 kB / 477.1 MB, free: 7.688 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.994e-05/0.1418, allocations: 40.36 kB / 477.2 MB, free: 7.648 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001216/0.1419, allocations: 81.47 kB / 477.3 MB, free: 7.559 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001101/0.1421, allocations: 59.92 kB / 477.3 MB, free: 7.5 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.1421, allocations: 4 kB / 477.3 MB, free: 7.496 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000364/0.1424, allocations: 210.2 kB / 477.5 MB, free: 7.281 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.64e-05/0.1425, allocations: 4 kB / 477.5 MB, free: 7.277 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.095e-06/0.1425, allocations: 4 kB / 477.5 MB, free: 7.273 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001591/0.1426, allocations: 40.78 kB / 477.6 MB, free: 7.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001688/0.1428, allocations: 35.97 kB / 477.6 MB, free: 7.195 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001381/0.1442, allocations: 1.569 MB / 479.2 MB, free: 5.496 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.439e-05/0.1443, allocations: 4.438 kB / 479.2 MB, free: 5.492 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.375e-05/0.1443, allocations: 8 kB / 479.2 MB, free: 5.484 MB / 350.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.0001229/0.1444, allocations: 129.8 kB / 479.3 MB, free: 5.348 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.533e-05/0.1445, allocations: 15.81 kB / 479.3 MB, free: 5.332 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.768e-05/0.1445, allocations: 21.17 kB / 479.4 MB, free: 5.312 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.1445, allocations: 0 / 479.4 MB, free: 5.312 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.1445, allocations: 8 kB / 479.4 MB, free: 5.305 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.68e-06/0.1446, allocations: 3.953 kB / 479.4 MB, free: 5.301 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007697/0.1453, allocations: 0.5529 MB / 479.9 MB, free: 4.688 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.1453, allocations: 0 / 479.9 MB, free: 4.688 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001589/0.1455, allocations: 39.98 kB / 480 MB, free: 4.648 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000103/0.1456, allocations: 32.86 kB / 480 MB, free: 4.613 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.308e-05/0.1456, allocations: 7.938 kB / 480 MB, free: 4.605 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001032/0.1467, allocations: 1.382 MB / 481.4 MB, free: 3.09 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.1467, allocations: 3.938 kB / 481.4 MB, free: 3.086 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004897/0.1472, allocations: 367.1 kB / 481.8 MB, free: 2.699 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.252e-05/0.1473, allocations: 85.05 kB / 481.8 MB, free: 2.598 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.003e-05/0.1473, allocations: 3.953 kB / 481.8 MB, free: 2.594 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.164e-05/0.1474, allocations: 11.94 kB / 481.8 MB, free: 2.582 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.469e-05/0.1474, allocations: 19.97 kB / 481.9 MB, free: 2.562 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.396e-06/0.1474, allocations: 4 kB / 481.9 MB, free: 2.559 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.079e-05/0.1475, allocations: 106 kB / 482 MB, free: 2.457 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1475, allocations: 0 / 482 MB, free: 2.457 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003165/0.1478, allocations: 40.06 kB / 482 MB, free: 2.418 MB / 350.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.0008211/0.1487, allocations: 0.9681 MB / 483 MB, free: 1.41 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004892/0.1492, allocations: 254.5 kB / 483.2 MB, free: 1.148 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1492, allocations: 0 / 483.2 MB, free: 1.148 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002657/0.1495, allocations: 198.8 kB / 483.4 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002765/0.1497, allocations: 19.94 kB / 483.4 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001993/0.1517, allocations: 1.541 MB / 485 MB, free: 15.31 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003741/0.1521, allocations: 0.7246 MB / 485.7 MB, free: 14.56 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.265e-05/0.1522, allocations: 17.41 kB / 485.7 MB, free: 14.55 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.644e-05/0.1523, allocations: 39.44 kB / 485.8 MB, free: 14.51 MB / 366.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1523, allocations: 4 kB / 485.8 MB, free: 14.5 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.015/0.1673, allocations: 2.996 MB / 488.8 MB, free: 11.68 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001841/0.1675, allocations: 208.4 kB / 489 MB, free: 11.45 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.796/1.963, allocations: 6.812 kB / 489 MB, free: 11.44 MB / 366.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat does not exist to compare? outputFormat=mat