Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.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.TestFriction,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestFriction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestFriction,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestFriction",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.0009833/0.0009834, allocations: 180.7 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.377/1.377, allocations: 221.3 MB / 236 MB, free: 2.973 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.0009751/0.0009752, allocations: 94.14 kB / 287 MB, free: 260 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.2267/0.2267, allocations: 44.15 MB / 382 MB, free: 14.69 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.332e-05/3.334e-05, allocations: 4 kB / 451.9 MB, free: 9.352 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1566/0.1566, allocations: 61.9 MB / 0.5018 GB, free: 11.39 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.496/0.6527, allocations: 92.69 MB / 0.5923 GB, free: 12.58 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002381/0.653, allocations: 68.78 kB / 0.5924 GB, free: 12.52 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03501/0.6881, allocations: 12.14 MB / 0.6042 GB, free: 360 kB / 410.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.6881, allocations: 4 kB / 0.6042 GB, free: 356 kB / 410.7 MB Notification: Performance of Transformations before backend: time 3.051e-05/0.6882, allocations: 12 kB / 0.6042 GB, free: 344 kB / 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.001956/0.6901, allocations: 0.935 MB / 0.6052 GB, free: 15.35 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.359e-05/0.6902, allocations: 8.031 kB / 0.6052 GB, free: 15.34 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001435/0.6903, allocations: 102.5 kB / 0.6053 GB, free: 15.23 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001485/0.6905, allocations: 79.06 kB / 0.6053 GB, free: 15.16 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005832/0.6911, allocations: 404.7 kB / 0.6057 GB, free: 14.72 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.587e-05/0.6911, allocations: 53.25 kB / 0.6058 GB, free: 14.67 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001189/0.6913, allocations: 60 kB / 0.6058 GB, free: 14.61 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001229/0.6925, allocations: 0.7404 MB / 0.6065 GB, free: 13.84 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.161e-05/0.6925, allocations: 11.83 kB / 0.6066 GB, free: 13.83 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.54e-05/0.6926, allocations: 28 kB / 0.6066 GB, free: 13.8 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.691e-05/0.6926, allocations: 16 kB / 0.6066 GB, free: 13.79 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001047/0.6937, allocations: 0.6175 MB / 0.6072 GB, free: 13.17 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004179/0.6979, allocations: 2.583 MB / 0.6097 GB, free: 10.46 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001027/0.6989, allocations: 0.5707 MB / 0.6103 GB, free: 9.859 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000514/0.6995, allocations: 338.4 kB / 0.6106 GB, free: 9.52 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.865e-05/0.6996, allocations: 12 kB / 0.6106 GB, free: 9.508 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.025e-05/0.6996, allocations: 43.38 kB / 0.6107 GB, free: 9.457 MB / 426.7 MB Notification: Performance of pre-optimization done (n=78): time 4.268e-06/0.6996, allocations: 0 / 0.6107 GB, free: 9.457 MB / 426.7 MB Notification: Performance of matching and sorting (n=82): time 0.004083/0.7037, allocations: 2.402 MB / 0.613 GB, free: 6.859 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.688e-05/0.7038, allocations: 136.5 kB / 0.6131 GB, free: 6.695 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003593/0.7042, allocations: 327.1 kB / 0.6134 GB, free: 6.363 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 8.723e-05/0.7043, allocations: 53.69 kB / 0.6135 GB, free: 6.305 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001764/0.7045, allocations: 256.7 kB / 0.6137 GB, free: 6.047 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002399/0.7047, allocations: 284.1 kB / 0.614 GB, free: 5.766 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.186e-05/0.7048, allocations: 16 kB / 0.614 GB, free: 5.75 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000155/0.7049, allocations: 370.8 kB / 0.6144 GB, free: 5.379 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005283/0.7055, allocations: 310 kB / 0.6147 GB, free: 5.074 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006406/0.7061, allocations: 479.1 kB / 0.6151 GB, free: 4.551 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004625/0.7066, allocations: 272.3 kB / 0.6154 GB, free: 4.293 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.7066, allocations: 0 / 0.6154 GB, free: 4.293 MB / 426.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.002168/0.7088, allocations: 1.121 MB / 0.6165 GB, free: 3.156 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.013e-05/0.7088, allocations: 9.594 kB / 0.6165 GB, free: 3.148 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.324e-05/0.7088, allocations: 12 kB / 0.6165 GB, free: 3.137 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001114/0.7099, allocations: 0.5811 MB / 0.6171 GB, free: 2.543 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005415/0.7105, allocations: 155.8 kB / 0.6172 GB, free: 2.391 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002027/0.7125, allocations: 2.565 MB / 0.6197 GB, free: 15.72 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009383/0.7135, allocations: 195.8 kB / 0.6199 GB, free: 15.53 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001016/0.7136, allocations: 47.91 kB / 0.62 GB, free: 15.48 MB / 442.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 () * 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.0002637/0.7139, allocations: 160 kB / 0.6201 GB, free: 15.32 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001878/0.7141, allocations: 63.25 kB / 0.6202 GB, free: 15.26 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002147/0.7162, allocations: 1.042 MB / 0.6212 GB, free: 14.19 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-05/0.7163, allocations: 8 kB / 0.6212 GB, free: 14.18 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.257e-06/0.7163, allocations: 4 kB / 0.6212 GB, free: 14.18 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.208e-05/0.7163, allocations: 3.984 kB / 0.6212 GB, free: 14.18 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003344/0.7197, allocations: 2.02 MB / 0.6232 GB, free: 12.08 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/0.7197, allocations: 0 / 0.6232 GB, free: 12.08 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005628/0.7202, allocations: 119.9 kB / 0.6233 GB, free: 11.96 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009949/0.7212, allocations: 0.5537 MB / 0.6238 GB, free: 11.39 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.946e-05/0.7213, allocations: 35.95 kB / 0.6239 GB, free: 11.36 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001955/0.7233, allocations: 2.526 MB / 0.6263 GB, free: 8.73 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.663e-06/0.7233, allocations: 3.938 kB / 0.6263 GB, free: 8.727 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002489/0.7258, allocations: 1.637 MB / 0.6279 GB, free: 7.023 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003734/0.7262, allocations: 212.2 kB / 0.6281 GB, free: 6.793 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001228/0.7263, allocations: 28 kB / 0.6282 GB, free: 6.766 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008744/0.7272, allocations: 175.8 kB / 0.6283 GB, free: 6.594 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003434/0.7276, allocations: 179.5 kB / 0.6285 GB, free: 6.418 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.745e-05/0.7277, allocations: 43.95 kB / 0.6286 GB, free: 6.375 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0003099/0.728, allocations: 261.2 kB / 0.6288 GB, free: 6.125 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.728, allocations: 0 / 0.6288 GB, free: 6.125 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0008104/0.7288, allocations: 199.9 kB / 0.629 GB, free: 5.93 MB / 442.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) * 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.003197/0.732, allocations: 2.568 MB / 0.6315 GB, free: 3.297 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001749/0.7338, allocations: 0.9143 MB / 0.6324 GB, free: 2.359 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.7338, allocations: 0 / 0.6324 GB, free: 2.359 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001044/0.7348, allocations: 475.5 kB / 0.6328 GB, free: 1.895 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007659/0.7356, allocations: 106.1 kB / 0.6329 GB, free: 1.789 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005071/0.7407, allocations: 2.159 MB / 0.6351 GB, free: 15.57 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004937/0.7412, allocations: 0.926 MB / 0.636 GB, free: 14.61 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0002766/0.7415, allocations: 56.83 kB / 0.636 GB, free: 14.55 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002747/0.7418, allocations: 207.3 kB / 0.6362 GB, free: 14.35 MB / 458.7 MB Notification: Performance of SimCode: time 8.01e-07/0.7418, allocations: 0 / 0.6362 GB, free: 14.35 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03605/0.7779, allocations: 18.3 MB / 0.6541 GB, free: 12.22 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000235/0.7782, allocations: 172.5 kB / 0.6543 GB, free: 12 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.577/3.355, allocations: 0 / 0.6543 GB, free: 12 MB / 474.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_TestFriction_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_TestFriction.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction_res.mat does not exist to compare? outputFormat=mat