Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002406/0.002412, allocations: 180.9 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.138/2.138, allocations: 205.2 MB / 219.4 MB, free: 14.2 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001095/0.001095, allocations: 86.64 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2886/0.2886, allocations: 43.5 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 4.478e-05/4.496e-05, allocations: 8 kB / 425.4 MB, free: 23.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1627/0.1628, allocations: 58.85 MB / 484.2 MB, free: 12.37 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5559/0.7188, allocations: 86.3 MB / 0.5572 GB, free: 0.7891 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002387/0.719, allocations: 74.53 kB / 0.5572 GB, free: 0.7539 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0105/0.7296, allocations: 2.495 MB / 0.5597 GB, free: 14.63 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.7296, allocations: 0 / 0.5597 GB, free: 14.63 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.448e-05/0.7297, allocations: 0 / 0.5597 GB, free: 14.63 MB / 378.7 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.0006947/0.7304, allocations: 406.6 kB / 0.5601 GB, free: 14.2 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.172e-05/0.7304, allocations: 8.031 kB / 0.5601 GB, free: 14.19 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.203e-05/0.7305, allocations: 48.61 kB / 0.5601 GB, free: 14.14 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.213e-05/0.7306, allocations: 19.77 kB / 0.5601 GB, free: 14.12 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002621/0.7309, allocations: 198.1 kB / 0.5603 GB, free: 13.9 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.85e-05/0.7309, allocations: 7.875 kB / 0.5603 GB, free: 13.89 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.592e-05/0.7309, allocations: 11 kB / 0.5603 GB, free: 13.89 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003177/0.7313, allocations: 132.6 kB / 0.5605 GB, free: 13.79 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.997e-05/0.7313, allocations: 4 kB / 0.5605 GB, free: 13.78 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.95e-05/0.7313, allocations: 2.938 kB / 0.5605 GB, free: 13.78 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.43e-05/0.7314, allocations: 4 kB / 0.5605 GB, free: 13.78 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002233/0.7316, allocations: 72.48 kB / 0.5605 GB, free: 13.73 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009524/0.7326, allocations: 468.2 kB / 0.561 GB, free: 13.29 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002894/0.7329, allocations: 114.3 kB / 0.5611 GB, free: 13.2 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001299/0.733, allocations: 50.3 kB / 0.5611 GB, free: 13.16 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.517e-05/0.7331, allocations: 0 / 0.5611 GB, free: 13.16 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.401e-05/0.7331, allocations: 38.06 kB / 0.5612 GB, free: 13.12 MB / 378.7 MB Notification: Performance of pre-optimization done (n=13): time 1.963e-06/0.7331, allocations: 4 kB / 0.5612 GB, free: 13.11 MB / 378.7 MB Notification: Performance of matching and sorting (n=19): time 0.001935/0.7351, allocations: 0.7496 MB / 0.5619 GB, free: 12.38 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.819e-05/0.7352, allocations: 57.95 kB / 0.562 GB, free: 12.31 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001759/0.7354, allocations: 128 kB / 0.5621 GB, free: 12.18 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.978e-05/0.7354, allocations: 43.94 kB / 0.5621 GB, free: 12.14 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001012/0.7355, allocations: 175.2 kB / 0.5623 GB, free: 11.98 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.265e-05/0.7356, allocations: 64.75 kB / 0.5624 GB, free: 11.92 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.176e-05/0.7356, allocations: 7.5 kB / 0.5624 GB, free: 11.92 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001298/0.7358, allocations: 318.3 kB / 0.5627 GB, free: 11.6 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001173/0.7359, allocations: 35.25 kB / 0.5627 GB, free: 11.57 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001419/0.736, allocations: 70.36 kB / 0.5628 GB, free: 11.51 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001454/0.7362, allocations: 50.3 kB / 0.5628 GB, free: 11.48 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.145e-06/0.7362, allocations: 0 / 0.5628 GB, free: 11.48 MB / 378.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005438/0.7368, allocations: 194.2 kB / 0.563 GB, free: 11.32 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.339e-05/0.7368, allocations: 7.438 kB / 0.563 GB, free: 11.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.236e-06/0.7368, allocations: 0 / 0.563 GB, free: 11.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002486/0.7371, allocations: 44.11 kB / 0.5631 GB, free: 11.28 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003152/0.7374, allocations: 43.94 kB / 0.5631 GB, free: 11.24 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001996/0.7394, allocations: 1.55 MB / 0.5646 GB, free: 9.688 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001618/0.7396, allocations: 7.688 kB / 0.5646 GB, free: 9.684 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.085e-05/0.7397, allocations: 4 kB / 0.5646 GB, free: 9.68 MB / 378.7 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 () * 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.0001162/0.7398, allocations: 112 kB / 0.5647 GB, free: 9.57 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.456e-05/0.7399, allocations: 15.89 kB / 0.5647 GB, free: 9.555 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.778e-05/0.7399, allocations: 27.23 kB / 0.5648 GB, free: 9.539 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.74, allocations: 0 / 0.5648 GB, free: 9.539 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.74, allocations: 8.062 kB / 0.5648 GB, free: 9.531 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.74, allocations: 0 / 0.5648 GB, free: 9.531 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001096/0.7411, allocations: 0.5371 MB / 0.5653 GB, free: 9.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.689e-06/0.7411, allocations: 0 / 0.5653 GB, free: 9.02 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003238/0.7415, allocations: 36.02 kB / 0.5653 GB, free: 8.984 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001829/0.7417, allocations: 28.66 kB / 0.5654 GB, free: 8.957 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.085e-05/0.7417, allocations: 6.578 kB / 0.5654 GB, free: 8.953 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001582/0.7433, allocations: 1.374 MB / 0.5667 GB, free: 7.523 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.7433, allocations: 0 / 0.5667 GB, free: 7.523 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000689/0.744, allocations: 346.5 kB / 0.567 GB, free: 7.219 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.082e-05/0.7441, allocations: 88.95 kB / 0.5671 GB, free: 7.113 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.848e-05/0.7442, allocations: 7.375 kB / 0.5671 GB, free: 7.109 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001613/0.7443, allocations: 11.73 kB / 0.5672 GB, free: 7.102 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.186e-05/0.7444, allocations: 15.98 kB / 0.5672 GB, free: 7.086 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.85e-05/0.7444, allocations: 7.703 kB / 0.5672 GB, free: 7.082 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001111/0.7446, allocations: 104.5 kB / 0.5673 GB, free: 6.988 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.7446, allocations: 0 / 0.5673 GB, free: 6.988 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004498/0.745, allocations: 42.81 kB / 0.5673 GB, free: 6.953 MB / 378.7 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 () * 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.00107/0.7461, allocations: 0.9424 MB / 0.5682 GB, free: 6.043 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006772/0.7468, allocations: 263.7 kB / 0.5685 GB, free: 5.812 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.7468, allocations: 0 / 0.5685 GB, free: 5.812 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000373/0.7472, allocations: 192 kB / 0.5687 GB, free: 5.633 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003432/0.7476, allocations: 22.44 kB / 0.5687 GB, free: 5.617 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001147/0.7488, allocations: 401 kB / 0.5691 GB, free: 5.219 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003702/0.7492, allocations: 0.7207 MB / 0.5698 GB, free: 4.469 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001065/0.7493, allocations: 46.73 kB / 0.5698 GB, free: 4.445 MB / 378.7 MB Notification: Performance of SimCode: time 1.393e-06/0.7493, allocations: 0 / 0.5698 GB, free: 4.445 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.786/3.536, allocations: 3.013 MB / 0.5728 GB, free: 1.465 MB / 378.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat does not exist to compare? outputFormat=mat