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.003498/0.003497, allocations: 188.9 kB / 16.41 MB, free: 5.723 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.12/2.12, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.001193/0.001192, allocations: 93.97 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5236/0.5236, allocations: 43.55 MB / 362.7 MB, free: 52.24 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004907/0.0004908, allocations: 16 kB / 431.5 MB, free: 6.078 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1326/0.1331, allocations: 58.84 MB / 490.3 MB, free: 11.16 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4694/0.6026, allocations: 86.38 MB / 0.5632 GB, free: 284 kB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002448/0.6029, allocations: 71.95 kB / 0.5632 GB, free: 212 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01117/0.6141, allocations: 2.509 MB / 0.5657 GB, free: 13.71 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.545e-06/0.6141, allocations: 0 / 0.5657 GB, free: 13.71 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.38e-05/0.6142, allocations: 4 kB / 0.5657 GB, free: 13.71 MB / 394.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.001243/0.6154, allocations: 421.6 kB / 0.5661 GB, free: 13.26 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.441e-05/0.6155, allocations: 12.03 kB / 0.5661 GB, free: 13.25 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001114/0.6156, allocations: 46.55 kB / 0.5662 GB, free: 13.19 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.601e-05/0.6157, allocations: 15.25 kB / 0.5662 GB, free: 13.18 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000394/0.6162, allocations: 206.7 kB / 0.5664 GB, free: 12.94 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.07e-05/0.6162, allocations: 8 kB / 0.5664 GB, free: 12.93 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.51e-05/0.6163, allocations: 16 kB / 0.5664 GB, free: 12.92 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004228/0.6167, allocations: 121.6 kB / 0.5665 GB, free: 12.79 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.98e-05/0.6167, allocations: 3.125 kB / 0.5665 GB, free: 12.79 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.635e-05/0.6168, allocations: 13.02 kB / 0.5665 GB, free: 12.78 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.654e-06/0.6168, allocations: 4 kB / 0.5665 GB, free: 12.78 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003359/0.6171, allocations: 90.02 kB / 0.5666 GB, free: 12.69 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00106/0.6182, allocations: 468.2 kB / 0.5671 GB, free: 12.18 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003533/0.6186, allocations: 118.5 kB / 0.5672 GB, free: 12.06 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.717e-05/0.6186, allocations: 7.984 kB / 0.5672 GB, free: 12.05 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.498e-05/0.6187, allocations: 30.56 kB / 0.5672 GB, free: 12.01 MB / 394.7 MB Notification: Performance of pre-optimization done (n=13): time 2.856e-06/0.6187, allocations: 4 kB / 0.5672 GB, free: 12.01 MB / 394.7 MB Notification: Performance of matching and sorting (n=19): time 0.00239/0.6211, allocations: 0.8186 MB / 0.568 GB, free: 11.1 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.688e-05/0.6212, allocations: 55.39 kB / 0.5681 GB, free: 11.03 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001823/0.6214, allocations: 123.4 kB / 0.5682 GB, free: 10.9 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.06e-05/0.6214, allocations: 29.7 kB / 0.5682 GB, free: 10.87 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001033/0.6215, allocations: 178.7 kB / 0.5684 GB, free: 10.69 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.623e-05/0.6216, allocations: 67 kB / 0.5684 GB, free: 10.62 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.504e-05/0.6217, allocations: 7.938 kB / 0.5685 GB, free: 10.62 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.6218, allocations: 326.8 kB / 0.5688 GB, free: 10.29 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001776/0.622, allocations: 44.34 kB / 0.5688 GB, free: 10.24 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002075/0.6222, allocations: 76.09 kB / 0.5689 GB, free: 10.16 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002137/0.6224, allocations: 59.95 kB / 0.5689 GB, free: 10.1 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.6224, allocations: 4 kB / 0.5689 GB, free: 10.1 MB / 394.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0006613/0.6231, allocations: 202.5 kB / 0.5691 GB, free: 9.895 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.343e-05/0.6232, allocations: 8 kB / 0.5691 GB, free: 9.887 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.824e-06/0.6232, allocations: 0 / 0.5691 GB, free: 9.887 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002424/0.6234, allocations: 36.84 kB / 0.5692 GB, free: 9.848 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003044/0.6237, allocations: 51.83 kB / 0.5692 GB, free: 9.797 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002225/0.626, allocations: 1.567 MB / 0.5708 GB, free: 8.098 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001715/0.6262, allocations: 4 kB / 0.5708 GB, free: 8.094 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.482e-05/0.6263, allocations: 8 kB / 0.5708 GB, free: 8.086 MB / 394.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 () * 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.0001881/0.6265, allocations: 125.8 kB / 0.5709 GB, free: 7.953 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.392e-05/0.6265, allocations: 11.86 kB / 0.5709 GB, free: 7.941 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.598e-05/0.6266, allocations: 22.48 kB / 0.5709 GB, free: 7.926 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.712e-06/0.6266, allocations: 7.938 kB / 0.5709 GB, free: 7.918 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.795e-06/0.6266, allocations: 64 / 0.5709 GB, free: 7.918 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.6266, allocations: 4 kB / 0.5709 GB, free: 7.914 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001331/0.628, allocations: 0.5599 MB / 0.5715 GB, free: 7.293 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-06/0.628, allocations: 8.031 kB / 0.5715 GB, free: 7.285 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000335/0.6284, allocations: 31.98 kB / 0.5715 GB, free: 7.254 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001847/0.6286, allocations: 28.83 kB / 0.5715 GB, free: 7.223 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.194e-05/0.6286, allocations: 8 kB / 0.5716 GB, free: 7.215 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00167/0.6303, allocations: 1.388 MB / 0.5729 GB, free: 5.691 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.6304, allocations: 0 / 0.5729 GB, free: 5.691 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009133/0.6313, allocations: 365.6 kB / 0.5733 GB, free: 5.309 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.538e-05/0.6314, allocations: 96.94 kB / 0.5733 GB, free: 5.195 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.939e-05/0.6314, allocations: 0 / 0.5733 GB, free: 5.195 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001592/0.6316, allocations: 11.83 kB / 0.5734 GB, free: 5.188 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.804e-05/0.6317, allocations: 15.98 kB / 0.5734 GB, free: 5.172 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.717e-05/0.6317, allocations: 4 kB / 0.5734 GB, free: 5.168 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001235/0.6318, allocations: 111.3 kB / 0.5735 GB, free: 5.059 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.6319, allocations: 0 / 0.5735 GB, free: 5.059 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004783/0.6323, allocations: 40 kB / 0.5735 GB, free: 5.02 MB / 394.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 () * 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.001382/0.6337, allocations: 0.9666 MB / 0.5745 GB, free: 4.023 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0007692/0.6346, allocations: 268.8 kB / 0.5747 GB, free: 3.754 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.6346, allocations: 4.125 kB / 0.5747 GB, free: 3.75 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004343/0.635, allocations: 199.9 kB / 0.5749 GB, free: 3.543 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000369/0.6354, allocations: 13.23 kB / 0.5749 GB, free: 3.531 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002831/0.6383, allocations: 1.568 MB / 0.5765 GB, free: 1.895 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004058/0.6387, allocations: 0.7324 MB / 0.5772 GB, free: 1.137 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001257/0.6389, allocations: 43.42 kB / 0.5772 GB, free: 1.094 MB / 394.7 MB Notification: Performance of SimCode: time 1.182e-06/0.6389, allocations: 4 kB / 0.5772 GB, free: 1.09 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.776/3.415, allocations: 3.005 MB / 0.5802 GB, free: 14.09 MB / 410.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