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.0009797/0.0009798, allocations: 98.33 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009433/0.0009434, allocations: 200.6 kB / 17.9 MB, free: 5.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.381/1.381, allocations: 227.3 MB / 245.9 MB, free: 10.32 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2116/0.2116, allocations: 45.91 MB / 344 MB, free: 12.08 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003075/0.0003076, allocations: 12 kB / 418.1 MB, free: 20.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1359/0.1362, allocations: 63.45 MB / 481.5 MB, free: 5.262 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.00242/0.1387, allocations: 1.548 MB / 483.1 MB, free: 3.699 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001162/0.1399, allocations: 0.4992 MB / 483.6 MB, free: 3.195 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000153/0.14, allocations: 4 kB / 483.6 MB, free: 3.191 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.705e-05/0.1401, allocations: 11.92 kB / 483.6 MB, free: 3.18 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001718/0.1403, allocations: 47.83 kB / 483.6 MB, free: 3.133 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00022/0.1405, allocations: 27.91 kB / 483.6 MB, free: 3.105 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002683/0.1408, allocations: 107.8 kB / 483.8 MB, free: 3 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001726/0.141, allocations: 45.78 kB / 483.8 MB, free: 2.949 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001888/0.1412, allocations: 55.78 kB / 483.9 MB, free: 2.895 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001336/0.1413, allocations: 47.77 kB / 483.9 MB, free: 2.848 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.815e-05/0.1413, allocations: 8 kB / 483.9 MB, free: 2.84 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.251e-05/0.1414, allocations: 12 kB / 483.9 MB, free: 2.828 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.256e-05/0.1414, allocations: 19.92 kB / 483.9 MB, free: 2.809 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.444e-05/0.1415, allocations: 49.64 kB / 484 MB, free: 2.754 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001722/0.1417, allocations: 115.9 kB / 484.1 MB, free: 2.641 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.1417, allocations: 0 / 484.1 MB, free: 2.641 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.454e-06/0.1417, allocations: 0 / 484.1 MB, free: 2.641 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.683e-06/0.1417, allocations: 0 / 484.1 MB, free: 2.641 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.0006181/0.1424, allocations: 414.8 kB / 484.5 MB, free: 2.188 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.726e-05/0.1424, allocations: 8.031 kB / 484.5 MB, free: 2.18 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.218e-05/0.1425, allocations: 50.55 kB / 484.6 MB, free: 2.121 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001893/0.1427, allocations: 35.67 kB / 484.6 MB, free: 2.086 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002374/0.1429, allocations: 210.2 kB / 484.8 MB, free: 1.844 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.163e-05/0.143, allocations: 8 kB / 484.8 MB, free: 1.836 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.69e-05/0.143, allocations: 15.91 kB / 484.8 MB, free: 1.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002888/0.1433, allocations: 130.1 kB / 485 MB, free: 1.688 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.578e-05/0.1433, allocations: 0 / 485 MB, free: 1.688 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.692e-05/0.1433, allocations: 8 kB / 485 MB, free: 1.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.117e-06/0.1434, allocations: 4 kB / 485 MB, free: 1.676 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002031/0.1436, allocations: 87.94 kB / 485.1 MB, free: 1.59 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007725/0.1444, allocations: 480.1 kB / 485.5 MB, free: 1.07 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002149/0.1446, allocations: 110.5 kB / 485.6 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.306e-05/0.1446, allocations: 7.984 kB / 485.6 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.738e-05/0.1446, allocations: 38.81 kB / 485.7 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 2.775e-06/0.1447, allocations: 0 / 485.7 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.001607/0.1463, allocations: 0.8123 MB / 486.5 MB, free: 15.99 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.916e-05/0.1463, allocations: 51.41 kB / 486.5 MB, free: 15.93 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001208/0.1464, allocations: 140.2 kB / 486.7 MB, free: 15.79 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.305e-05/0.1465, allocations: 29.7 kB / 486.7 MB, free: 15.75 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.642e-05/0.1465, allocations: 116.3 kB / 486.8 MB, free: 15.63 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.202e-05/0.1466, allocations: 63.02 kB / 486.9 MB, free: 15.57 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.355e-06/0.1466, allocations: 4 kB / 486.9 MB, free: 15.57 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001369/0.1468, allocations: 326.8 kB / 487.2 MB, free: 15.24 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.901e-05/0.1469, allocations: 40.36 kB / 487.2 MB, free: 15.2 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001241/0.147, allocations: 88.08 kB / 487.3 MB, free: 15.1 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001097/0.1471, allocations: 52 kB / 487.4 MB, free: 15.05 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.939e-06/0.1471, allocations: 3.953 kB / 487.4 MB, free: 15.05 MB / 366.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003704/0.1475, allocations: 214.1 kB / 487.6 MB, free: 14.83 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.982e-05/0.1475, allocations: 8 kB / 487.6 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.1476, allocations: 0 / 487.6 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001678/0.1477, allocations: 40.88 kB / 487.6 MB, free: 14.78 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001689/0.1479, allocations: 35.97 kB / 487.7 MB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001433/0.1493, allocations: 1.577 MB / 489.2 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.588e-05/0.1494, allocations: 8.031 kB / 489.3 MB, free: 13.03 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.568e-05/0.1495, allocations: 4.438 kB / 489.3 MB, free: 13.02 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.0001407/0.1496, allocations: 125.8 kB / 489.4 MB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.179e-05/0.1497, allocations: 23.75 kB / 489.4 MB, free: 12.87 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.661e-05/0.1497, allocations: 21.19 kB / 489.4 MB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.1497, allocations: 8.031 kB / 489.4 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.1497, allocations: 0 / 489.4 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.081e-06/0.1498, allocations: 4 kB / 489.4 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007569/0.1505, allocations: 0.5566 MB / 490 MB, free: 12.22 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.1505, allocations: 0 / 490 MB, free: 12.22 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001666/0.1507, allocations: 43.91 kB / 490 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001048/0.1508, allocations: 28.84 kB / 490.1 MB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.32e-05/0.1508, allocations: 4 kB / 490.1 MB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001062/0.1519, allocations: 1.382 MB / 491.5 MB, free: 10.62 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.1519, allocations: 32 / 491.5 MB, free: 10.62 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004914/0.1524, allocations: 374.4 kB / 491.8 MB, free: 10.23 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.191e-05/0.1525, allocations: 85.05 kB / 491.9 MB, free: 10.13 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.058e-05/0.1525, allocations: 8 kB / 491.9 MB, free: 10.12 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.243e-05/0.1526, allocations: 4.062 kB / 491.9 MB, free: 10.12 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.707e-05/0.1527, allocations: 19.97 kB / 491.9 MB, free: 10.1 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.26e-05/0.1527, allocations: 4 kB / 491.9 MB, free: 10.1 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.785e-05/0.1528, allocations: 103.3 kB / 492 MB, free: 9.996 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1528, allocations: 0 / 492 MB, free: 9.996 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003324/0.1531, allocations: 44 kB / 492.1 MB, free: 9.953 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.0007905/0.1539, allocations: 0.9529 MB / 493 MB, free: 8.965 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005155/0.1544, allocations: 274.4 kB / 493.3 MB, free: 8.684 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.1544, allocations: 0 / 493.3 MB, free: 8.684 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002574/0.1547, allocations: 190.6 kB / 493.5 MB, free: 8.484 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000273/0.155, allocations: 26.03 kB / 493.5 MB, free: 8.465 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001889/0.1569, allocations: 1.537 MB / 495.1 MB, free: 6.859 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002904/0.1572, allocations: 0.7285 MB / 495.8 MB, free: 6.105 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.346e-05/0.1573, allocations: 9.422 kB / 495.8 MB, free: 6.098 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.393e-05/0.1573, allocations: 43.42 kB / 495.8 MB, free: 6.055 MB / 366.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1573, allocations: 0 / 495.8 MB, free: 6.055 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01494/0.1723, allocations: 2.992 MB / 498.8 MB, free: 3.234 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001884/0.1725, allocations: 208.3 kB / 499 MB, free: 2.996 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.843/2.015, allocations: 0 / 499 MB, free: 2.996 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