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/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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex trunk/package.mo): time 0.001256/0.001255, allocations: 196.1 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.381/1.381, allocations: 225.4 MB / 240.1 MB, free: 15.08 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008265/0.0008264, allocations: 94.3 kB / 292.1 MB, free: 6.004 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1885/0.1885, allocations: 45.15 MB / 389.3 MB, free: 11.88 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 3.792e-05/3.811e-05, allocations: 0 / 460.5 MB, free: 69.96 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1038, allocations: 63.25 MB / 0.5115 GB, free: 6.727 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4057/0.5095, allocations: 88.46 MB / 0.5978 GB, free: 5.43 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002199/0.5098, allocations: 69.59 kB / 0.5979 GB, free: 5.395 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007213/0.517, allocations: 2.677 MB / 0.6005 GB, free: 3.129 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.382e-06/0.5171, allocations: 0 / 0.6005 GB, free: 3.129 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.334e-05/0.5171, allocations: 8 kB / 0.6005 GB, free: 3.121 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.0005421/0.5176, allocations: 412.2 kB / 0.6009 GB, free: 2.684 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.303e-05/0.5177, allocations: 11.97 kB / 0.6009 GB, free: 2.672 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.01e-05/0.5178, allocations: 44.19 kB / 0.601 GB, free: 2.629 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001472/0.5179, allocations: 31.75 kB / 0.601 GB, free: 2.598 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002093/0.5181, allocations: 209.6 kB / 0.6012 GB, free: 2.363 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.44e-05/0.5182, allocations: 9.938 kB / 0.6012 GB, free: 2.359 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.281e-05/0.5182, allocations: 11.06 kB / 0.6012 GB, free: 2.352 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002601/0.5185, allocations: 120.6 kB / 0.6013 GB, free: 2.258 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.532e-05/0.5185, allocations: 4 kB / 0.6013 GB, free: 2.254 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.612e-05/0.5185, allocations: 7.188 kB / 0.6013 GB, free: 2.254 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.336e-06/0.5185, allocations: 7.984 kB / 0.6014 GB, free: 2.246 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001376/0.5187, allocations: 72.67 kB / 0.6014 GB, free: 2.195 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006932/0.5194, allocations: 465.7 kB / 0.6019 GB, free: 1.758 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001778/0.5196, allocations: 109.5 kB / 0.602 GB, free: 1.672 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.968e-05/0.5196, allocations: 55.36 kB / 0.602 GB, free: 1.633 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.726e-05/0.5197, allocations: 8.188 kB / 0.602 GB, free: 1.625 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.735e-05/0.5197, allocations: 34 kB / 0.6021 GB, free: 1.586 MB / 394.7 MB Notification: Performance of pre-optimization done (n=13): time 1.493e-06/0.5197, allocations: 0 / 0.6021 GB, free: 1.586 MB / 394.7 MB Notification: Performance of matching and sorting (n=19): time 0.001168/0.5209, allocations: 0.7492 MB / 0.6028 GB, free: 0.8477 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.118e-05/0.5209, allocations: 55.41 kB / 0.6029 GB, free: 0.7812 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001151/0.5211, allocations: 130.8 kB / 0.603 GB, free: 0.6562 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.731e-05/0.5211, allocations: 25.7 kB / 0.603 GB, free: 0.625 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.754e-05/0.5211, allocations: 118.8 kB / 0.6031 GB, free: 0.5117 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.169e-05/0.5212, allocations: 69.94 kB / 0.6032 GB, free: 464 kB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.951e-06/0.5212, allocations: 0 / 0.6032 GB, free: 464 kB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001248/0.5213, allocations: 330 kB / 0.6035 GB, free: 132 kB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.391e-05/0.5214, allocations: 38 kB / 0.6035 GB, free: 104 kB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.36e-05/0.5215, allocations: 73.36 kB / 0.6036 GB, free: 36 kB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.08e-05/0.5216, allocations: 52.16 kB / 0.6037 GB, free: 4 kB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-06/0.5216, allocations: 3.938 kB / 0.6037 GB, free: 0 / 394.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003213/0.5219, allocations: 194.1 kB / 0.6038 GB, free: 15.84 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.656e-05/0.5219, allocations: 4 kB / 0.6038 GB, free: 15.84 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.02e-06/0.522, allocations: 3.938 kB / 0.6038 GB, free: 15.84 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001534/0.5221, allocations: 47.58 kB / 0.6039 GB, free: 15.79 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001577/0.5223, allocations: 31.98 kB / 0.6039 GB, free: 15.76 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001385/0.5237, allocations: 1.552 MB / 0.6054 GB, free: 14.21 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.045e-05/0.5238, allocations: 11.58 kB / 0.6055 GB, free: 14.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.347e-05/0.5238, allocations: 4 kB / 0.6055 GB, free: 14.2 MB / 410.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 8.349e-05/0.5239, allocations: 117.3 kB / 0.6056 GB, free: 14.09 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.331e-05/0.5239, allocations: 15.77 kB / 0.6056 GB, free: 14.07 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.004e-05/0.524, allocations: 23.88 kB / 0.6056 GB, free: 14.06 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-06/0.524, allocations: 4 kB / 0.6056 GB, free: 14.05 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-06/0.524, allocations: 0 / 0.6056 GB, free: 14.05 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.621e-06/0.524, allocations: 3.984 kB / 0.6056 GB, free: 14.05 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006609/0.5247, allocations: 0.5363 MB / 0.6061 GB, free: 13.54 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.5247, allocations: 3.984 kB / 0.6061 GB, free: 13.54 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001592/0.5249, allocations: 31.98 kB / 0.6062 GB, free: 13.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.863e-05/0.525, allocations: 31.97 kB / 0.6062 GB, free: 13.48 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.567e-05/0.525, allocations: 11.45 kB / 0.6062 GB, free: 13.47 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009594/0.526, allocations: 1.369 MB / 0.6075 GB, free: 12.05 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.526, allocations: 0 / 0.6075 GB, free: 12.05 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004084/0.5264, allocations: 349.3 kB / 0.6079 GB, free: 11.74 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.297e-05/0.5265, allocations: 85.05 kB / 0.608 GB, free: 11.64 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.704e-05/0.5265, allocations: 3.625 kB / 0.608 GB, free: 11.64 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.125e-05/0.5266, allocations: 4 kB / 0.608 GB, free: 11.64 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.689e-05/0.5267, allocations: 22.84 kB / 0.608 GB, free: 11.62 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.22e-05/0.5267, allocations: 8 kB / 0.608 GB, free: 11.61 MB / 410.7 MB Notification: Performance of sorting global known variables: time 8.013e-05/0.5268, allocations: 109.5 kB / 0.6081 GB, free: 11.52 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5268, allocations: 0 / 0.6081 GB, free: 11.52 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003242/0.5271, allocations: 51.17 kB / 0.6082 GB, free: 11.47 MB / 410.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.0007522/0.5279, allocations: 0.9424 MB / 0.6091 GB, free: 10.56 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004495/0.5283, allocations: 246.4 kB / 0.6093 GB, free: 10.35 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.5283, allocations: 0 / 0.6093 GB, free: 10.35 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002248/0.5286, allocations: 188 kB / 0.6095 GB, free: 10.17 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002335/0.5288, allocations: 15.25 kB / 0.6095 GB, free: 10.16 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007664/0.5296, allocations: 384.9 kB / 0.6099 GB, free: 9.781 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003164/0.5299, allocations: 0.7285 MB / 0.6106 GB, free: 9.023 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 4.897e-05/0.53, allocations: 5.219 kB / 0.6106 GB, free: 9.02 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.308e-05/0.53, allocations: 40.92 kB / 0.6106 GB, free: 9 MB / 410.7 MB Notification: Performance of SimCode: time 6.21e-07/0.5301, allocations: 0 / 0.6106 GB, free: 9 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01489/0.545, allocations: 3.005 MB / 0.6136 GB, free: 6.168 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002353/0.5453, allocations: 179.9 kB / 0.6137 GB, free: 5.945 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.738/2.283, allocations: 0 / 0.6137 GB, free: 5.945 MB / 410.7 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