Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestFriction.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.TestFriction,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_TestFriction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestFriction,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_TestFriction",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.002243/0.002243, allocations: 186.3 kB / 16.4 MB, free: 5.75 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.057/2.057, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001176/0.001176, allocations: 98.08 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.5773/0.5773, allocations: 43.55 MB / 362.7 MB, free: 52.11 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007892/0.0007892, allocations: 16 kB / 431.5 MB, free: 6.074 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1399/0.1408, allocations: 58.84 MB / 490.3 MB, free: 11.15 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4937/0.6346, allocations: 91.54 MB / 0.5682 GB, free: 11.13 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002734/0.6349, allocations: 63.97 kB / 0.5683 GB, free: 11.07 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05914/0.6941, allocations: 11.97 MB / 0.58 GB, free: 15.13 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.6941, allocations: 0 / 0.58 GB, free: 15.13 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.502e-05/0.6942, allocations: 19.98 kB / 0.58 GB, free: 15.11 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: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.003545/0.6977, allocations: 1 MB / 0.5809 GB, free: 14.06 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.752e-05/0.6978, allocations: 12.03 kB / 0.581 GB, free: 14.05 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002306/0.6981, allocations: 98.5 kB / 0.5811 GB, free: 13.95 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002335/0.6983, allocations: 79.06 kB / 0.5811 GB, free: 13.87 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008862/0.6992, allocations: 408.6 kB / 0.5815 GB, free: 13.43 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.385e-05/0.6993, allocations: 49.31 kB / 0.5816 GB, free: 13.38 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002007/0.6995, allocations: 61.03 kB / 0.5816 GB, free: 13.32 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002516/0.702, allocations: 0.7953 MB / 0.5824 GB, free: 12.49 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.875e-05/0.7021, allocations: 7.906 kB / 0.5824 GB, free: 12.48 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000136/0.7023, allocations: 35.94 kB / 0.5824 GB, free: 12.45 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.445e-05/0.7023, allocations: 12 kB / 0.5825 GB, free: 12.43 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002924/0.7053, allocations: 0.7294 MB / 0.5832 GB, free: 11.71 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007772/0.7131, allocations: 2.583 MB / 0.5857 GB, free: 9.004 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00238/0.7155, allocations: 0.6231 MB / 0.5863 GB, free: 8.344 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001776/0.7157, allocations: 19.98 kB / 0.5863 GB, free: 8.324 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.249e-05/0.7158, allocations: 38.56 kB / 0.5864 GB, free: 8.277 MB / 410.7 MB Notification: Performance of pre-optimization done (n=78): time 4.599e-06/0.7158, allocations: 0 / 0.5864 GB, free: 8.277 MB / 410.7 MB Notification: Performance of matching and sorting (n=82): time 0.01508/0.7309, allocations: 3.691 MB / 0.59 GB, free: 4.32 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001079/0.7311, allocations: 144.5 kB / 0.5901 GB, free: 4.148 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006427/0.7317, allocations: 321.1 kB / 0.5904 GB, free: 3.832 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002404/0.732, allocations: 53.7 kB / 0.5905 GB, free: 3.773 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002709/0.7323, allocations: 303.1 kB / 0.5907 GB, free: 3.473 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004081/0.7327, allocations: 288.1 kB / 0.591 GB, free: 3.188 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001285/0.7328, allocations: 20 kB / 0.591 GB, free: 3.168 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000193/0.733, allocations: 350.8 kB / 0.5914 GB, free: 2.816 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001467/0.7345, allocations: 361.8 kB / 0.5917 GB, free: 2.461 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001585/0.7361, allocations: 0.5103 MB / 0.5922 GB, free: 1.895 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001307/0.7375, allocations: 318.4 kB / 0.5925 GB, free: 1.594 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.292e-06/0.7375, allocations: 0 / 0.5925 GB, free: 1.594 MB / 410.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.005044/0.7425, allocations: 1.203 MB / 0.5937 GB, free: 392 kB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.679e-05/0.7426, allocations: 8 kB / 0.5937 GB, free: 384 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.283e-05/0.7427, allocations: 11.98 kB / 0.5937 GB, free: 372 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002236/0.7449, allocations: 0.6049 MB / 0.5943 GB, free: 15.75 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001164/0.7461, allocations: 147.7 kB / 0.5944 GB, free: 15.6 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00368/0.7498, allocations: 2.584 MB / 0.597 GB, free: 12.91 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001964/0.7519, allocations: 195.7 kB / 0.5972 GB, free: 12.72 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002572/0.7521, allocations: 43.97 kB / 0.5972 GB, free: 12.68 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,bearingFriction.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 6,1 7,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0007336/0.7529, allocations: 220.3 kB / 0.5974 GB, free: 12.45 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003334/0.7532, allocations: 71.19 kB / 0.5975 GB, free: 12.38 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004877/0.7581, allocations: 1.127 MB / 0.5986 GB, free: 11.23 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.207e-05/0.7582, allocations: 8 kB / 0.5986 GB, free: 11.22 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.283e-05/0.7582, allocations: 4 kB / 0.5986 GB, free: 11.21 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.15e-05/0.7583, allocations: 7.938 kB / 0.5986 GB, free: 11.21 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007281/0.7656, allocations: 2.121 MB / 0.6007 GB, free: 9.008 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.447e-05/0.7656, allocations: 0 / 0.6007 GB, free: 9.008 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00124/0.7669, allocations: 127.9 kB / 0.6008 GB, free: 8.883 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002051/0.7689, allocations: 0.5692 MB / 0.6013 GB, free: 8.301 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002008/0.7692, allocations: 43.95 kB / 0.6014 GB, free: 8.258 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00364/0.7728, allocations: 2.526 MB / 0.6039 GB, free: 5.629 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.229e-06/0.7729, allocations: 0 / 0.6039 GB, free: 5.629 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006419/0.7793, allocations: 1.779 MB / 0.6056 GB, free: 3.781 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000646/0.78, allocations: 216.2 kB / 0.6058 GB, free: 3.551 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002164/0.7803, allocations: 24 kB / 0.6058 GB, free: 3.527 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001761/0.782, allocations: 179.8 kB / 0.606 GB, free: 3.352 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006668/0.7827, allocations: 179.6 kB / 0.6062 GB, free: 3.176 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001379/0.7829, allocations: 32.08 kB / 0.6062 GB, free: 3.145 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0005185/0.7834, allocations: 275 kB / 0.6065 GB, free: 2.879 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.7835, allocations: 0 / 0.6065 GB, free: 2.879 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001334/0.7848, allocations: 196 kB / 0.6066 GB, free: 2.688 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 12 (inertia4.phi,inertia4.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,inertia2.phi,inertia2.w,clutch.phi_rel,clutch.w_rel,inertia1.w,brake.phi,inertia.w,bearingFriction.phi) * Number of discrete variables: 18 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startForward,clutch.startBackward,oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 51 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 7,1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.007045/0.7919, allocations: 2.718 MB / 0.6093 GB, free: 15.91 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004088/0.796, allocations: 1.03 MB / 0.6103 GB, free: 14.85 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.366e-06/0.7961, allocations: 0 / 0.6103 GB, free: 14.85 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002341/0.7984, allocations: 0.514 MB / 0.6108 GB, free: 14.34 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001341/0.7998, allocations: 94.08 kB / 0.6109 GB, free: 14.25 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02059/0.8205, allocations: 8.002 MB / 0.6187 GB, free: 6.062 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008055/0.8213, allocations: 0.9259 MB / 0.6196 GB, free: 5.105 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006146/0.822, allocations: 211.3 kB / 0.6198 GB, free: 4.902 MB / 442.7 MB Notification: Performance of SimCode: time 1.333e-06/0.822, allocations: 3.938 kB / 0.6198 GB, free: 4.898 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.094/3.915, allocations: 18.82 MB / 0.6382 GB, free: 2.09 MB / 458.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestFriction.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestFriction.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestFriction.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestFriction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestFriction_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_TestFriction_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_TestFriction.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestFriction.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestFriction_res.mat does not exist to compare? outputFormat=mat