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.001425/0.001425, allocations: 199 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.442/1.442, allocations: 227.2 MB / 245 MB, free: 7.672 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009241/0.0009241, allocations: 95.27 kB / 297.2 MB, free: 6.219 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3929/0.3929, allocations: 45.23 MB / 394.6 MB, free: 31.72 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003/0.0003, allocations: 8 kB / 468.5 MB, free: 7.641 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4659/0.4663, allocations: 63.24 MB / 0.5193 GB, free: 43.86 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1395/0.6059, allocations: 88.54 MB / 0.6057 GB, free: 1.102 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002618/0.6062, allocations: 76.73 kB / 0.6058 GB, free: 1.031 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007424/0.6136, allocations: 2.683 MB / 0.6084 GB, free: 14.37 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.6137, allocations: 0 / 0.6084 GB, free: 14.37 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.162e-05/0.6137, allocations: 4 kB / 0.6084 GB, free: 14.36 MB / 426.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.0005295/0.6143, allocations: 432.6 kB / 0.6088 GB, free: 13.89 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.443e-05/0.6143, allocations: 8.031 kB / 0.6088 GB, free: 13.89 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.39e-05/0.6144, allocations: 46.55 kB / 0.6089 GB, free: 13.83 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001484/0.6145, allocations: 35.75 kB / 0.6089 GB, free: 13.8 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002053/0.6147, allocations: 198.8 kB / 0.6091 GB, free: 13.56 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.64e-05/0.6148, allocations: 8 kB / 0.6091 GB, free: 13.55 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.303e-05/0.6148, allocations: 12 kB / 0.6091 GB, free: 13.54 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002673/0.6151, allocations: 126.2 kB / 0.6093 GB, free: 13.41 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.406e-05/0.6151, allocations: 0 / 0.6093 GB, free: 13.41 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.811e-05/0.6151, allocations: 7.984 kB / 0.6093 GB, free: 13.41 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.6151, allocations: 8 kB / 0.6093 GB, free: 13.4 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000189/0.6153, allocations: 83.95 kB / 0.6093 GB, free: 13.32 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006778/0.616, allocations: 476.1 kB / 0.6098 GB, free: 12.8 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002155/0.6163, allocations: 114.5 kB / 0.6099 GB, free: 12.68 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.75e-05/0.6163, allocations: 3.938 kB / 0.6099 GB, free: 12.68 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.581e-05/0.6163, allocations: 38.56 kB / 0.61 GB, free: 12.63 MB / 426.7 MB Notification: Performance of pre-optimization done (n=13): time 1.312e-06/0.6163, allocations: 0 / 0.61 GB, free: 12.63 MB / 426.7 MB Notification: Performance of matching and sorting (n=19): time 0.001589/0.6179, allocations: 0.8203 MB / 0.6108 GB, free: 11.72 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.573e-05/0.618, allocations: 59.39 kB / 0.6108 GB, free: 11.65 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001271/0.6181, allocations: 121.3 kB / 0.6109 GB, free: 11.52 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.306e-05/0.6181, allocations: 29.7 kB / 0.611 GB, free: 11.48 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.032e-05/0.6182, allocations: 112.3 kB / 0.6111 GB, free: 11.37 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.099e-05/0.6183, allocations: 74.92 kB / 0.6111 GB, free: 11.3 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.606e-06/0.6183, allocations: 4 kB / 0.6111 GB, free: 11.29 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001543/0.6185, allocations: 322.8 kB / 0.6114 GB, free: 10.97 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001109/0.6186, allocations: 48.36 kB / 0.6115 GB, free: 10.92 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000128/0.6187, allocations: 77.66 kB / 0.6116 GB, free: 10.83 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001209/0.6189, allocations: 59.88 kB / 0.6116 GB, free: 10.77 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.532e-06/0.6189, allocations: 0 / 0.6116 GB, free: 10.77 MB / 426.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004342/0.6193, allocations: 216.9 kB / 0.6118 GB, free: 10.55 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.557e-05/0.6194, allocations: 8 kB / 0.6118 GB, free: 10.55 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.705e-06/0.6194, allocations: 0 / 0.6118 GB, free: 10.55 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001821/0.6196, allocations: 36.84 kB / 0.6119 GB, free: 10.51 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002111/0.6198, allocations: 43.98 kB / 0.6119 GB, free: 10.46 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0016/0.6214, allocations: 1.569 MB / 0.6134 GB, free: 8.762 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.616e-05/0.6215, allocations: 12.06 kB / 0.6135 GB, free: 8.75 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.099e-05/0.6215, allocations: 4 kB / 0.6135 GB, free: 8.746 MB / 426.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.000128/0.6217, allocations: 126.9 kB / 0.6136 GB, free: 8.613 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.763e-05/0.6217, allocations: 19.8 kB / 0.6136 GB, free: 8.594 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.809e-05/0.6218, allocations: 25.17 kB / 0.6136 GB, free: 8.574 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-06/0.6218, allocations: 0 / 0.6136 GB, free: 8.574 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.6218, allocations: 4 kB / 0.6136 GB, free: 8.57 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.6218, allocations: 0 / 0.6136 GB, free: 8.57 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008025/0.6226, allocations: 0.557 MB / 0.6142 GB, free: 7.953 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.571e-06/0.6226, allocations: 4 kB / 0.6142 GB, free: 7.949 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001843/0.6228, allocations: 44.33 kB / 0.6142 GB, free: 7.906 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000108/0.6229, allocations: 28.83 kB / 0.6142 GB, free: 7.875 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.134e-05/0.623, allocations: 8 kB / 0.6143 GB, free: 7.867 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001244/0.6242, allocations: 1.378 MB / 0.6156 GB, free: 6.352 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.6242, allocations: 0 / 0.6156 GB, free: 6.352 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005285/0.6248, allocations: 369.2 kB / 0.6159 GB, free: 5.965 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.646e-05/0.6248, allocations: 85.05 kB / 0.616 GB, free: 5.863 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.114e-05/0.6249, allocations: 7.984 kB / 0.616 GB, free: 5.855 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.627e-05/0.625, allocations: 8.281 kB / 0.616 GB, free: 5.848 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.633e-05/0.625, allocations: 11.98 kB / 0.6161 GB, free: 5.836 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.301e-05/0.625, allocations: 4 kB / 0.6161 GB, free: 5.832 MB / 426.7 MB Notification: Performance of sorting global known variables: time 7.868e-05/0.6251, allocations: 115.2 kB / 0.6162 GB, free: 5.719 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.01e-07/0.6251, allocations: 4.062 kB / 0.6162 GB, free: 5.715 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0003438/0.6255, allocations: 40 kB / 0.6162 GB, free: 5.676 MB / 426.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.000858/0.6264, allocations: 0.9675 MB / 0.6172 GB, free: 4.676 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.000606/0.627, allocations: 269.4 kB / 0.6174 GB, free: 4.402 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.627, allocations: 0 / 0.6174 GB, free: 4.402 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002808/0.6273, allocations: 202.7 kB / 0.6176 GB, free: 4.191 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002829/0.6276, allocations: 21.39 kB / 0.6176 GB, free: 4.176 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00216/0.6297, allocations: 1.537 MB / 0.6191 GB, free: 2.57 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000363/0.6301, allocations: 0.7246 MB / 0.6198 GB, free: 1.82 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 6.094e-05/0.6302, allocations: 9.438 kB / 0.6198 GB, free: 1.812 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.719e-05/0.6303, allocations: 43.42 kB / 0.6199 GB, free: 1.77 MB / 426.7 MB Notification: Performance of SimCode: time 7.02e-07/0.6303, allocations: 4 kB / 0.6199 GB, free: 1.766 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01766/0.648, allocations: 3 MB / 0.6228 GB, free: 14.97 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002259/0.6482, allocations: 214.4 kB / 0.623 GB, free: 14.73 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.737/2.386, allocations: 7.875 kB / 0.623 GB, free: 14.72 MB / 442.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