Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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 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_3_2_3_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_3_2_3_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.00129/0.00129, allocations: 96.28 kB / 15.69 MB, free: 480 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001163/0.001163, allocations: 176.5 kB / 16.57 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.7/1.7, allocations: 205.4 MB / 222.7 MB, free: 5.676 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4603/0.4603, allocations: 43.54 MB / 314.5 MB, free: 8.797 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005773/0.0005776, allocations: 16 kB / 384 MB, free: 7.93 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1533/0.1539, allocations: 58.85 MB / 442.8 MB, free: 12.97 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.002238/0.1562, allocations: 1.525 MB / 444.4 MB, free: 11.43 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008398/0.157, allocations: 0.5078 MB / 444.9 MB, free: 10.92 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.715e-05/0.1571, allocations: 0 / 444.9 MB, free: 10.92 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 4.085e-05/0.1572, allocations: 19.84 kB / 444.9 MB, free: 10.9 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001248/0.1573, allocations: 39.91 kB / 444.9 MB, free: 10.86 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001598/0.1575, allocations: 35.89 kB / 445 MB, free: 10.82 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000194/0.1577, allocations: 99.8 kB / 445.1 MB, free: 10.73 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001644/0.1579, allocations: 53.72 kB / 445.1 MB, free: 10.66 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.268e-05/0.158, allocations: 43.84 kB / 445.2 MB, free: 10.62 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001108/0.1581, allocations: 59.7 kB / 445.2 MB, free: 10.56 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.315e-05/0.1581, allocations: 12 kB / 445.2 MB, free: 10.55 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.183e-05/0.1581, allocations: 4 kB / 445.2 MB, free: 10.55 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.358e-05/0.1582, allocations: 19.92 kB / 445.3 MB, free: 10.53 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.362e-05/0.1582, allocations: 49.64 kB / 445.3 MB, free: 10.47 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001369/0.1584, allocations: 111.9 kB / 445.4 MB, free: 10.36 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.1584, allocations: 0 / 445.4 MB, free: 10.36 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.1584, allocations: 3.938 kB / 445.4 MB, free: 10.36 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.779e-06/0.1584, allocations: 0 / 445.4 MB, free: 10.36 MB / 382.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.0006102/0.159, allocations: 410.9 kB / 445.8 MB, free: 9.91 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.146e-05/0.1591, allocations: 8.031 kB / 445.8 MB, free: 9.902 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.62e-05/0.1591, allocations: 50.55 kB / 445.9 MB, free: 9.844 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.001e-05/0.1592, allocations: 19.75 kB / 445.9 MB, free: 9.824 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002343/0.1594, allocations: 198.8 kB / 446.1 MB, free: 9.59 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.869e-05/0.1595, allocations: 12 kB / 446.1 MB, free: 9.578 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.384e-05/0.1595, allocations: 12 kB / 446.1 MB, free: 9.566 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002716/0.1598, allocations: 129.5 kB / 446.2 MB, free: 9.434 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.384e-05/0.1598, allocations: 0 / 446.2 MB, free: 9.434 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.216e-05/0.1599, allocations: 15.95 kB / 446.3 MB, free: 9.418 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.253e-05/0.1599, allocations: 4 kB / 446.3 MB, free: 9.414 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001938/0.1601, allocations: 79.95 kB / 446.3 MB, free: 9.336 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007433/0.1608, allocations: 476.2 kB / 446.8 MB, free: 8.82 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002344/0.1611, allocations: 126.5 kB / 446.9 MB, free: 8.688 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.766e-05/0.1611, allocations: 0 / 446.9 MB, free: 8.688 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.883e-05/0.1611, allocations: 38.56 kB / 447 MB, free: 8.641 MB / 382.1 MB Notification: Performance of pre-optimization done (n=13): time 9.52e-07/0.1612, allocations: 0 / 447 MB, free: 8.641 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.001527/0.1627, allocations: 0.8144 MB / 447.8 MB, free: 7.73 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.148e-05/0.1628, allocations: 55.41 kB / 447.8 MB, free: 7.664 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001255/0.1629, allocations: 141.7 kB / 448 MB, free: 7.52 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.04e-05/0.1629, allocations: 29.7 kB / 448 MB, free: 7.484 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.355e-05/0.163, allocations: 116.3 kB / 448.1 MB, free: 7.367 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.146e-05/0.1631, allocations: 63.02 kB / 448.2 MB, free: 7.305 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.472e-06/0.1631, allocations: 8 kB / 448.2 MB, free: 7.297 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001617/0.1633, allocations: 326.8 kB / 448.5 MB, free: 6.969 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.344e-05/0.1634, allocations: 48.34 kB / 448.6 MB, free: 6.922 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001141/0.1635, allocations: 72.16 kB / 448.6 MB, free: 6.84 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000123/0.1636, allocations: 56 kB / 448.7 MB, free: 6.785 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.82e-07/0.1636, allocations: 0 / 448.7 MB, free: 6.785 MB / 382.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003901/0.164, allocations: 218 kB / 448.9 MB, free: 6.562 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.809e-05/0.164, allocations: 4 kB / 448.9 MB, free: 6.559 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.1641, allocations: 0 / 448.9 MB, free: 6.559 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001742/0.1642, allocations: 52.86 kB / 448.9 MB, free: 6.504 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001675/0.1644, allocations: 35.92 kB / 449 MB, free: 6.469 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00142/0.1659, allocations: 1.565 MB / 450.5 MB, free: 4.773 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.706e-05/0.1659, allocations: 8 kB / 450.6 MB, free: 4.766 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.159e-05/0.166, allocations: 4 kB / 450.6 MB, free: 4.762 MB / 382.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.000126/0.1661, allocations: 137.7 kB / 450.7 MB, free: 4.617 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.305e-05/0.1661, allocations: 11.81 kB / 450.7 MB, free: 4.605 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.148e-05/0.1662, allocations: 25.25 kB / 450.7 MB, free: 4.578 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.1662, allocations: 0 / 450.7 MB, free: 4.578 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.1662, allocations: 4 kB / 450.7 MB, free: 4.574 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.1662, allocations: 0 / 450.7 MB, free: 4.574 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007562/0.167, allocations: 0.5585 MB / 451.3 MB, free: 3.953 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.167, allocations: 0 / 451.3 MB, free: 3.953 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001598/0.1672, allocations: 35.97 kB / 451.3 MB, free: 3.918 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.721e-05/0.1673, allocations: 28.84 kB / 451.4 MB, free: 3.887 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.497e-05/0.1673, allocations: 8 kB / 451.4 MB, free: 3.879 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00116/0.1684, allocations: 1.394 MB / 452.8 MB, free: 2.355 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.115e-06/0.1685, allocations: 0 / 452.8 MB, free: 2.355 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005249/0.169, allocations: 367.2 kB / 453.1 MB, free: 1.969 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.792e-05/0.1691, allocations: 85.05 kB / 453.2 MB, free: 1.867 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.081e-05/0.1691, allocations: 8 kB / 453.2 MB, free: 1.859 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.608e-05/0.1692, allocations: 12.06 kB / 453.2 MB, free: 1.848 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.37e-05/0.1693, allocations: 23.86 kB / 453.2 MB, free: 1.824 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.136e-05/0.1693, allocations: 8 kB / 453.2 MB, free: 1.816 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.49e-05/0.1694, allocations: 106.7 kB / 453.4 MB, free: 1.715 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1694, allocations: 0 / 453.4 MB, free: 1.715 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003194/0.1697, allocations: 36 kB / 453.4 MB, free: 1.68 MB / 382.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.0009022/0.1706, allocations: 0.9638 MB / 454.3 MB, free: 0.6836 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005541/0.1712, allocations: 266.6 kB / 454.6 MB, free: 420 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.1712, allocations: 0 / 454.6 MB, free: 420 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002569/0.1715, allocations: 194.6 kB / 454.8 MB, free: 212 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003121/0.1718, allocations: 16.11 kB / 454.8 MB, free: 196 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2116/0.3834, allocations: 1.535 MB / 456.4 MB, free: 45.37 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000176/0.3836, allocations: 0.7221 MB / 457.1 MB, free: 44.67 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.443e-05/0.3837, allocations: 10.86 kB / 457.1 MB, free: 44.67 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.358e-05/0.3837, allocations: 43.75 kB / 457.1 MB, free: 44.67 MB / 382.1 MB Notification: Performance of SimCode: time 1.223e-06/0.3837, allocations: 3.938 kB / 457.1 MB, free: 44.67 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01442/0.3982, allocations: 3.005 MB / 460.1 MB, free: 44.41 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001321/0.3983, allocations: 216.2 kB / 460.3 MB, free: 44.16 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.832/2.23, allocations: 0 / 460.3 MB, free: 44.16 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat does not exist to compare? outputFormat=mat