Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_4_1_0-beta_om_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.0016/0.001599, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001507/0.001507, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.46/1.46, allocations: 227.4 MB / 246.8 MB, free: 10.6 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2312/0.2312, allocations: 46.11 MB / 344.2 MB, free: 11.59 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002308/0.002308, allocations: 81.39 kB / 417.8 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1342/0.1365, allocations: 62.46 MB / 480.2 MB, free: 5.16 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.004034/0.1406, allocations: 1.919 MB / 482.1 MB, free: 3.227 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001058/0.1417, allocations: 0.5571 MB / 482.7 MB, free: 2.664 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001062/0.1418, allocations: 7.938 kB / 482.7 MB, free: 2.656 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001327/0.142, allocations: 19.78 kB / 482.7 MB, free: 2.637 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.54e-05/0.1421, allocations: 43.64 kB / 482.8 MB, free: 2.594 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002376/0.1423, allocations: 43.88 kB / 482.8 MB, free: 2.551 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002113/0.1425, allocations: 151.3 kB / 482.9 MB, free: 2.402 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001761/0.1427, allocations: 57.64 kB / 483 MB, free: 2.344 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001598/0.1429, allocations: 63.73 kB / 483.1 MB, free: 2.281 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001214/0.143, allocations: 63.7 kB / 483.1 MB, free: 2.219 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.578e-05/0.143, allocations: 12 kB / 483.1 MB, free: 2.207 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.146e-05/0.1431, allocations: 19.94 kB / 483.2 MB, free: 2.188 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.592e-05/0.1432, allocations: 35.89 kB / 483.2 MB, free: 2.152 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.772e-05/0.1433, allocations: 71.61 kB / 483.3 MB, free: 2.082 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002288/0.1435, allocations: 151.7 kB / 483.4 MB, free: 1.934 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.1435, allocations: 0 / 483.4 MB, free: 1.934 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1435, allocations: 0 / 483.4 MB, free: 1.934 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.043e-05/0.1435, allocations: 0 / 483.4 MB, free: 1.934 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.0006268/0.1442, allocations: 435 kB / 483.8 MB, free: 1.461 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.075e-05/0.1442, allocations: 19.95 kB / 483.9 MB, free: 1.441 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.087e-05/0.1443, allocations: 42.75 kB / 483.9 MB, free: 1.391 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001558/0.1444, allocations: 24.83 kB / 483.9 MB, free: 1.367 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002465/0.1447, allocations: 216.1 kB / 484.1 MB, free: 1.117 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.622e-05/0.1447, allocations: 12.31 kB / 484.1 MB, free: 1.105 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.386e-05/0.1447, allocations: 16.38 kB / 484.2 MB, free: 1.09 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003569/0.1451, allocations: 129.5 kB / 484.3 MB, free: 0.957 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.387e-05/0.1451, allocations: 0 / 484.3 MB, free: 0.957 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.663e-05/0.1452, allocations: 8 kB / 484.3 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/0.1452, allocations: 0 / 484.3 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001997/0.1454, allocations: 83.95 kB / 484.4 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007344/0.1461, allocations: 472.1 kB / 484.8 MB, free: 364 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002312/0.1464, allocations: 122.5 kB / 485 MB, free: 232 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001094/0.1465, allocations: 56.83 kB / 485 MB, free: 172 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.837e-05/0.1465, allocations: 0 / 485 MB, free: 172 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.175e-05/0.1466, allocations: 38.56 kB / 485.1 MB, free: 124 kB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.222e-06/0.1466, allocations: 0 / 485.1 MB, free: 124 kB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.001545/0.1481, allocations: 0.8026 MB / 485.9 MB, free: 15.23 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.186e-05/0.1482, allocations: 55.41 kB / 485.9 MB, free: 15.16 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001427/0.1483, allocations: 144 kB / 486 MB, free: 15.01 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.385e-05/0.1484, allocations: 29.7 kB / 486.1 MB, free: 14.98 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.773e-05/0.1484, allocations: 112.3 kB / 486.2 MB, free: 14.86 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.42e-05/0.1485, allocations: 67.02 kB / 486.3 MB, free: 14.8 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.258e-05/0.1486, allocations: 37.7 kB / 486.3 MB, free: 14.75 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001552/0.1487, allocations: 326.8 kB / 486.6 MB, free: 14.43 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001176/0.1489, allocations: 47.97 kB / 486.7 MB, free: 14.38 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001248/0.149, allocations: 78.91 kB / 486.7 MB, free: 14.29 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002348/0.1492, allocations: 139.2 kB / 486.9 MB, free: 14.14 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-06/0.1493, allocations: 0 / 486.9 MB, free: 14.14 MB / 366.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003817/0.1496, allocations: 206.2 kB / 487.1 MB, free: 13.93 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.841e-05/0.1497, allocations: 11.94 kB / 487.1 MB, free: 13.92 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.509e-06/0.1497, allocations: 0 / 487.1 MB, free: 13.92 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001651/0.1499, allocations: 48.81 kB / 487.1 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001596/0.15, allocations: 35.97 kB / 487.2 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001669/0.1517, allocations: 1.737 MB / 488.9 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.626e-05/0.1518, allocations: 4.031 kB / 488.9 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.79e-05/0.1518, allocations: 11.98 kB / 488.9 MB, free: 11.95 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001361/0.152, allocations: 137.8 kB / 489.1 MB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.41e-05/0.152, allocations: 7.906 kB / 489.1 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.761e-05/0.152, allocations: 17.19 kB / 489.1 MB, free: 11.78 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.152, allocations: 3.938 kB / 489.1 MB, free: 11.78 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.834e-06/0.1521, allocations: 4 kB / 489.1 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.1521, allocations: 3.984 kB / 489.1 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008533/0.1529, allocations: 0.5533 MB / 489.6 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.1529, allocations: 0 / 489.6 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001605/0.1531, allocations: 39.97 kB / 489.7 MB, free: 11.12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.895e-05/0.1532, allocations: 28.84 kB / 489.7 MB, free: 11.09 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.216e-05/0.1532, allocations: 4 kB / 489.7 MB, free: 11.08 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001227/0.1545, allocations: 1.485 MB / 491.2 MB, free: 9.453 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.1545, allocations: 0 / 491.2 MB, free: 9.453 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005296/0.155, allocations: 344.9 kB / 491.5 MB, free: 9.094 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.982e-05/0.1551, allocations: 88.95 kB / 491.6 MB, free: 8.988 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.259e-05/0.1551, allocations: 7.984 kB / 491.6 MB, free: 8.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.145e-05/0.1552, allocations: 12.12 kB / 491.6 MB, free: 8.969 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.654e-05/0.1553, allocations: 19.86 kB / 491.7 MB, free: 8.949 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.606e-06/0.1553, allocations: 4 kB / 491.7 MB, free: 8.945 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001039/0.1554, allocations: 113.3 kB / 491.8 MB, free: 8.836 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.1554, allocations: 0 / 491.8 MB, free: 8.836 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000321/0.1557, allocations: 36 kB / 491.8 MB, free: 8.801 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008401/0.1566, allocations: 0.8763 MB / 492.7 MB, free: 7.895 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005326/0.1571, allocations: 266.6 kB / 492.9 MB, free: 7.621 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.1571, allocations: 0 / 492.9 MB, free: 7.621 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000269/0.1574, allocations: 194.5 kB / 493.1 MB, free: 7.418 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004049/0.1578, allocations: 26.45 kB / 493.2 MB, free: 7.395 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002665/0.1605, allocations: 2.049 MB / 495.2 MB, free: 5.227 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003708/0.1609, allocations: 0.7205 MB / 495.9 MB, free: 4.48 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.317e-05/0.161, allocations: 9.422 kB / 495.9 MB, free: 4.469 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.93e-05/0.161, allocations: 47.36 kB / 496 MB, free: 4.426 MB / 366.1 MB Notification: Performance of SimCode: time 2.01e-07/0.161, allocations: 0 / 496 MB, free: 4.426 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03267/0.1937, allocations: 3.388 MB / 499.4 MB, free: 1.191 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.993/10.19, allocations: 14.69 kB / 499.4 MB, free: 1.184 MB / 366.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1)