Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.conf.json 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 4.0.0+maint.om/package.mo", uses=false) 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009474/0.0009473, allocations: 170.4 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.383/1.383, allocations: 221.5 MB / 230.7 MB, free: 7.57 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008787/0.0008785, allocations: 88.3 kB / 281.6 MB, free: 5.332 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2333/0.2333, allocations: 44.15 MB / 376.5 MB, free: 3.062 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.99e-05/1.994e-05, allocations: 4.156 kB / 444.7 MB, free: 15.16 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1654/0.1655, allocations: 61.91 MB / 0.4948 GB, free: 1.18 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5089/0.6745, allocations: 86.73 MB / 0.5795 GB, free: 9.664 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002335/0.6747, allocations: 67.97 kB / 0.5795 GB, free: 9.598 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007179/0.6819, allocations: 2.573 MB / 0.582 GB, free: 7.031 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.517e-06/0.682, allocations: 0 / 0.582 GB, free: 7.031 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.935e-05/0.682, allocations: 4 kB / 0.582 GB, free: 7.027 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.000533/0.6826, allocations: 398.2 kB / 0.5824 GB, free: 6.594 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.454e-05/0.6826, allocations: 11.98 kB / 0.5824 GB, free: 6.582 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.814e-05/0.6827, allocations: 15.81 kB / 0.5824 GB, free: 6.566 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002297/0.6829, allocations: 209 kB / 0.5826 GB, free: 6.324 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.486e-05/0.683, allocations: 7.953 kB / 0.5827 GB, free: 6.316 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.075e-05/0.683, allocations: 11.94 kB / 0.5827 GB, free: 6.305 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001715/0.6832, allocations: 63.94 kB / 0.5827 GB, free: 6.242 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000182/0.6834, allocations: 97.66 kB / 0.5828 GB, free: 6.141 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.398e-05/0.6834, allocations: 0 / 0.5828 GB, free: 6.141 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.521e-05/0.6834, allocations: 0 / 0.5828 GB, free: 6.141 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.526e-06/0.6834, allocations: 4 kB / 0.5828 GB, free: 6.137 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006477/0.6841, allocations: 420.8 kB / 0.5832 GB, free: 5.688 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001653/0.6842, allocations: 102.5 kB / 0.5833 GB, free: 5.578 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.328e-05/0.6843, allocations: 60.8 kB / 0.5834 GB, free: 5.516 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.035e-05/0.6844, allocations: 7.984 kB / 0.5834 GB, free: 5.508 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.274e-05/0.6844, allocations: 30.56 kB / 0.5834 GB, free: 5.469 MB / 394.7 MB Notification: Performance of pre-optimization done (n=13): time 1.152e-06/0.6844, allocations: 0 / 0.5834 GB, free: 5.469 MB / 394.7 MB Notification: Performance of matching and sorting (n=19): time 0.001254/0.6857, allocations: 0.6967 MB / 0.5841 GB, free: 4.68 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.226e-05/0.6857, allocations: 59.36 kB / 0.5842 GB, free: 4.609 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.387e-05/0.6858, allocations: 113.1 kB / 0.5843 GB, free: 4.496 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.651e-05/0.6858, allocations: 25.7 kB / 0.5843 GB, free: 4.465 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.769e-05/0.6859, allocations: 112.4 kB / 0.5844 GB, free: 4.348 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.549e-05/0.686, allocations: 63.02 kB / 0.5845 GB, free: 4.285 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.984e-06/0.686, allocations: 0 / 0.5845 GB, free: 4.285 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001215/0.6861, allocations: 322.8 kB / 0.5848 GB, free: 3.961 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.978e-05/0.6862, allocations: 40.31 kB / 0.5848 GB, free: 3.918 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.656e-05/0.6863, allocations: 67.98 kB / 0.5849 GB, free: 3.84 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.678e-05/0.6864, allocations: 40.86 kB / 0.5849 GB, free: 3.801 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.11e-07/0.6864, allocations: 0 / 0.5849 GB, free: 3.801 MB / 394.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002902/0.6867, allocations: 179.7 kB / 0.5851 GB, free: 3.617 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.607e-05/0.6867, allocations: 6.953 kB / 0.5851 GB, free: 3.613 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.6867, allocations: 4.031 kB / 0.5851 GB, free: 3.609 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001567/0.6869, allocations: 40.91 kB / 0.5851 GB, free: 3.566 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001745/0.687, allocations: 35.97 kB / 0.5852 GB, free: 3.531 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001255/0.6883, allocations: 1.49 MB / 0.5866 GB, free: 1.93 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.837e-05/0.6884, allocations: 4.031 kB / 0.5866 GB, free: 1.926 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.347e-05/0.6884, allocations: 4 kB / 0.5866 GB, free: 1.922 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 () * 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 9.751e-05/0.6885, allocations: 116.9 kB / 0.5867 GB, free: 1.801 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002714/0.6888, allocations: 156.3 kB / 0.5869 GB, free: 1.641 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.102e-05/0.6888, allocations: 19.75 kB / 0.5869 GB, free: 1.621 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.322e-05/0.6889, allocations: 16.7 kB / 0.5869 GB, free: 1.602 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.307e-06/0.6889, allocations: 4 kB / 0.5869 GB, free: 1.598 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.758e-06/0.6889, allocations: 3.984 kB / 0.5869 GB, free: 1.594 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.6889, allocations: 0 / 0.5869 GB, free: 1.594 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006459/0.6896, allocations: 0.5017 MB / 0.5874 GB, free: 1.043 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.6896, allocations: 4.172 kB / 0.5874 GB, free: 1.039 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001704/0.6898, allocations: 35.98 kB / 0.5875 GB, free: 1.004 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.495e-05/0.6899, allocations: 28.84 kB / 0.5875 GB, free: 0.9727 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.119e-05/0.6899, allocations: 0 / 0.5875 GB, free: 0.9727 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009657/0.6909, allocations: 1.315 MB / 0.5888 GB, free: 15.54 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.6909, allocations: 0 / 0.5888 GB, free: 15.54 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004165/0.6913, allocations: 331.1 kB / 0.5891 GB, free: 15.19 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.711e-05/0.6914, allocations: 85.05 kB / 0.5892 GB, free: 15.09 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.013e-05/0.6914, allocations: 7.953 kB / 0.5892 GB, free: 15.08 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.719e-05/0.6915, allocations: 0 / 0.5892 GB, free: 15.08 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.362e-05/0.6915, allocations: 15.97 kB / 0.5892 GB, free: 15.06 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.06e-05/0.6916, allocations: 11.94 kB / 0.5892 GB, free: 15.05 MB / 410.7 MB Notification: Performance of sorting global known variables: time 6.326e-05/0.6916, allocations: 94.53 kB / 0.5893 GB, free: 14.96 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.6916, allocations: 0 / 0.5893 GB, free: 14.96 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.000321/0.692, allocations: 36 kB / 0.5893 GB, free: 14.93 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.0007271/0.6927, allocations: 0.9202 MB / 0.5902 GB, free: 13.97 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004104/0.6931, allocations: 225.6 kB / 0.5904 GB, free: 13.74 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.6931, allocations: 0 / 0.5904 GB, free: 13.74 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002075/0.6933, allocations: 177.6 kB / 0.5906 GB, free: 13.56 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002569/0.6936, allocations: 18.06 kB / 0.5906 GB, free: 13.54 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007588/0.6944, allocations: 360.7 kB / 0.591 GB, free: 13.15 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002899/0.6947, allocations: 0.7243 MB / 0.5917 GB, free: 12.4 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 5.385e-05/0.6947, allocations: 17.19 kB / 0.5917 GB, free: 12.38 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.064e-05/0.6948, allocations: 39.42 kB / 0.5917 GB, free: 12.34 MB / 410.7 MB Notification: Performance of SimCode: time 2.71e-07/0.6948, allocations: 0 / 0.5917 GB, free: 12.34 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02292/0.7178, allocations: 2.468 MB / 0.5941 GB, free: 9.895 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002048/0.718, allocations: 147.3 kB / 0.5943 GB, free: 9.703 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.674/2.392, allocations: 0 / 0.5943 GB, free: 9.703 MB / 410.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat does not exist to compare? outputFormat=mat