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.001415/0.001415, allocations: 179.6 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.401/1.401, allocations: 221.3 MB / 236 MB, free: 2.934 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.001069/0.001069, allocations: 91.53 kB / 287 MB, free: 228 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2437/0.2437, allocations: 44.16 MB / 382 MB, free: 14.66 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.46e-05/3.462e-05, allocations: 224 / 451.9 MB, free: 9.324 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1408/0.1408, allocations: 61.92 MB / 0.5018 GB, free: 11.34 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4391/0.5799, allocations: 87.4 MB / 0.5871 GB, free: 1.824 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002646/0.5803, allocations: 67.97 kB / 0.5872 GB, free: 1.758 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006926/0.5872, allocations: 2.583 MB / 0.5897 GB, free: 15.18 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.5873, allocations: 0 / 0.5897 GB, free: 15.18 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.011e-05/0.5873, allocations: 0 / 0.5897 GB, free: 15.18 MB / 410.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.0004384/0.5877, allocations: 418.1 kB / 0.5901 GB, free: 14.72 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.218e-05/0.5878, allocations: 8.031 kB / 0.5901 GB, free: 14.71 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.577e-05/0.5878, allocations: 46.55 kB / 0.5902 GB, free: 14.66 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.663e-05/0.5879, allocations: 15.81 kB / 0.5902 GB, free: 14.64 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001831/0.5881, allocations: 194.8 kB / 0.5904 GB, free: 14.41 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.531e-05/0.5881, allocations: 11.95 kB / 0.5904 GB, free: 14.4 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.382e-05/0.5881, allocations: 12 kB / 0.5904 GB, free: 14.39 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002311/0.5884, allocations: 121.6 kB / 0.5905 GB, free: 14.27 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.422e-05/0.5884, allocations: 8 kB / 0.5905 GB, free: 14.26 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.507e-05/0.5884, allocations: 4 kB / 0.5905 GB, free: 14.25 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.544e-06/0.5884, allocations: 4 kB / 0.5905 GB, free: 14.25 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001373/0.5886, allocations: 67.98 kB / 0.5906 GB, free: 14.18 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006253/0.5892, allocations: 484.1 kB / 0.5911 GB, free: 13.66 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001803/0.5894, allocations: 106.5 kB / 0.5912 GB, free: 13.55 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.644e-05/0.5895, allocations: 52.86 kB / 0.5912 GB, free: 13.49 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.136e-05/0.5895, allocations: 0 / 0.5912 GB, free: 13.49 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.462e-05/0.5896, allocations: 42.48 kB / 0.5913 GB, free: 13.44 MB / 410.7 MB Notification: Performance of pre-optimization done (n=13): time 9.42e-07/0.5896, allocations: 0 / 0.5913 GB, free: 13.44 MB / 410.7 MB Notification: Performance of matching and sorting (n=19): time 0.001231/0.5908, allocations: 0.75 MB / 0.592 GB, free: 12.6 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.813e-05/0.5908, allocations: 55.23 kB / 0.592 GB, free: 12.54 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001223/0.591, allocations: 123.5 kB / 0.5922 GB, free: 12.41 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.039e-05/0.591, allocations: 29.7 kB / 0.5922 GB, free: 12.38 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.132e-05/0.5911, allocations: 116.3 kB / 0.5923 GB, free: 12.26 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.131e-05/0.5911, allocations: 71 kB / 0.5924 GB, free: 12.19 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.622e-06/0.5911, allocations: 0 / 0.5924 GB, free: 12.19 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001067/0.5913, allocations: 330.8 kB / 0.5927 GB, free: 11.86 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.823e-05/0.5913, allocations: 36.38 kB / 0.5927 GB, free: 11.82 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.975e-05/0.5914, allocations: 75.22 kB / 0.5928 GB, free: 11.73 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.847e-05/0.5915, allocations: 51.98 kB / 0.5928 GB, free: 11.68 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.5915, allocations: 3.984 kB / 0.5928 GB, free: 11.68 MB / 410.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003049/0.5918, allocations: 197 kB / 0.593 GB, free: 11.48 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.885e-05/0.5919, allocations: 5.25 kB / 0.593 GB, free: 11.48 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.189e-05/0.5919, allocations: 7.938 kB / 0.593 GB, free: 11.47 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001525/0.5921, allocations: 40.91 kB / 0.5931 GB, free: 11.43 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001692/0.5922, allocations: 35.97 kB / 0.5931 GB, free: 11.39 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001334/0.5936, allocations: 1.553 MB / 0.5946 GB, free: 9.695 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.718e-05/0.5937, allocations: 12.09 kB / 0.5946 GB, free: 9.684 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.239e-05/0.5937, allocations: 4 kB / 0.5947 GB, free: 9.68 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 9.456e-05/0.5938, allocations: 109 kB / 0.5948 GB, free: 9.566 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.583e-05/0.5938, allocations: 11.81 kB / 0.5948 GB, free: 9.555 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.559e-05/0.5939, allocations: 24.73 kB / 0.5948 GB, free: 9.531 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.5939, allocations: 4 kB / 0.5948 GB, free: 9.527 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.623e-06/0.5939, allocations: 3.953 kB / 0.5948 GB, free: 9.523 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.119e-06/0.5939, allocations: 4 kB / 0.5948 GB, free: 9.52 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007196/0.5946, allocations: 0.5389 MB / 0.5953 GB, free: 8.918 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.5947, allocations: 0 / 0.5953 GB, free: 8.918 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001727/0.5948, allocations: 39.92 kB / 0.5954 GB, free: 8.879 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001369/0.595, allocations: 37.05 kB / 0.5954 GB, free: 8.84 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.608e-05/0.595, allocations: 12 kB / 0.5954 GB, free: 8.828 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001024/0.596, allocations: 1.363 MB / 0.5967 GB, free: 7.332 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.5961, allocations: 3.984 kB / 0.5967 GB, free: 7.328 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004043/0.5965, allocations: 338.2 kB / 0.5971 GB, free: 6.973 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.888e-05/0.5965, allocations: 89.05 kB / 0.5972 GB, free: 6.867 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.911e-05/0.5966, allocations: 7.938 kB / 0.5972 GB, free: 6.859 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.568e-05/0.5967, allocations: 12.12 kB / 0.5972 GB, free: 6.848 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.038e-05/0.5967, allocations: 15.92 kB / 0.5972 GB, free: 6.832 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.048e-05/0.5967, allocations: 8 kB / 0.5972 GB, free: 6.824 MB / 410.7 MB Notification: Performance of sorting global known variables: time 6.535e-05/0.5968, allocations: 105.7 kB / 0.5973 GB, free: 6.723 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5968, allocations: 0 / 0.5973 GB, free: 6.723 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003073/0.5971, allocations: 40 kB / 0.5973 GB, free: 6.684 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.0007537/0.5979, allocations: 0.9448 MB / 0.5983 GB, free: 5.703 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004626/0.5984, allocations: 238.5 kB / 0.5985 GB, free: 5.457 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.5984, allocations: 8.062 kB / 0.5985 GB, free: 5.449 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002322/0.5986, allocations: 188.1 kB / 0.5987 GB, free: 5.254 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002744/0.5989, allocations: 23.94 kB / 0.5987 GB, free: 5.23 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007638/0.5997, allocations: 370.5 kB / 0.599 GB, free: 4.828 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002596/0.5999, allocations: 0.7285 MB / 0.5998 GB, free: 4.07 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 5.306e-05/0.6, allocations: 13.2 kB / 0.5998 GB, free: 4.059 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.842e-05/0.6001, allocations: 50.2 kB / 0.5998 GB, free: 4.012 MB / 410.7 MB Notification: Performance of SimCode: time 4.9e-07/0.6001, allocations: 0 / 0.5998 GB, free: 4.012 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01478/0.6149, allocations: 3.008 MB / 0.6028 GB, free: 1.137 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002046/0.6152, allocations: 193 kB / 0.6029 GB, free: 0.9023 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.63/2.245, allocations: 0 / 0.6029 GB, free: 0.9023 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