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.001377/0.001377, allocations: 176.6 kB / 17.06 MB, free: 5.098 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.454/1.454, allocations: 223.2 MB / 241 MB, free: 11.86 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009515/0.0009513, allocations: 101.6 kB / 292.1 MB, free: 10.89 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.3851/0.3851, allocations: 44.22 MB / 387.5 MB, free: 38.8 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000356/0.0003564, allocations: 12 kB / 460 MB, free: 1.426 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4198/0.4202, allocations: 61.9 MB / 0.5096 GB, free: 38.18 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1304/0.5506, allocations: 92.77 MB / 0.6002 GB, free: 2.332 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002317/0.5509, allocations: 67.95 kB / 0.6003 GB, free: 2.27 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03537/0.5863, allocations: 12.16 MB / 0.6122 GB, free: 6.07 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.5863, allocations: 0 / 0.6122 GB, free: 6.07 MB / 426.7 MB Notification: Performance of Transformations before backend: time 3.273e-05/0.5864, allocations: 12 kB / 0.6122 GB, free: 6.059 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: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.002089/0.5885, allocations: 1.005 MB / 0.6132 GB, free: 5.004 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.39e-05/0.5885, allocations: 8.031 kB / 0.6132 GB, free: 4.996 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001427/0.5887, allocations: 106.5 kB / 0.6133 GB, free: 4.883 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001495/0.5888, allocations: 75.06 kB / 0.6133 GB, free: 4.809 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005968/0.5894, allocations: 404.7 kB / 0.6137 GB, free: 4.371 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.27e-05/0.5895, allocations: 49.31 kB / 0.6138 GB, free: 4.32 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001232/0.5896, allocations: 67.91 kB / 0.6138 GB, free: 4.254 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001522/0.5912, allocations: 0.8001 MB / 0.6146 GB, free: 3.422 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.526e-05/0.5912, allocations: 7.906 kB / 0.6146 GB, free: 3.414 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.412e-05/0.5913, allocations: 31.98 kB / 0.6147 GB, free: 3.383 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.249e-05/0.5913, allocations: 16 kB / 0.6147 GB, free: 3.367 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001769/0.5931, allocations: 0.7116 MB / 0.6154 GB, free: 2.656 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004663/0.5978, allocations: 2.579 MB / 0.6179 GB, free: 15.96 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001296/0.5991, allocations: 0.6221 MB / 0.6185 GB, free: 15.3 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.198e-05/0.5992, allocations: 15.98 kB / 0.6185 GB, free: 15.29 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.739e-05/0.5992, allocations: 50.5 kB / 0.6186 GB, free: 15.23 MB / 442.7 MB Notification: Performance of pre-optimization done (n=78): time 3.006e-06/0.5993, allocations: 0 / 0.6186 GB, free: 15.23 MB / 442.7 MB Notification: Performance of matching and sorting (n=82): time 0.007711/0.607, allocations: 3.691 MB / 0.6222 GB, free: 11.27 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.895e-05/0.6071, allocations: 144.5 kB / 0.6223 GB, free: 11.1 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003915/0.6075, allocations: 317.2 kB / 0.6226 GB, free: 10.79 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 9.122e-05/0.6076, allocations: 53.69 kB / 0.6227 GB, free: 10.73 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001927/0.6078, allocations: 256.6 kB / 0.6229 GB, free: 10.47 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002363/0.608, allocations: 284.1 kB / 0.6232 GB, free: 10.19 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.407e-05/0.6081, allocations: 20 kB / 0.6232 GB, free: 10.17 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001568/0.6082, allocations: 366.8 kB / 0.6235 GB, free: 9.801 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007145/0.609, allocations: 365.8 kB / 0.6239 GB, free: 9.441 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008292/0.6098, allocations: 0.5258 MB / 0.6244 GB, free: 8.863 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006603/0.6105, allocations: 304.1 kB / 0.6247 GB, free: 8.574 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.329e-06/0.6105, allocations: 8 kB / 0.6247 GB, free: 8.566 MB / 442.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.00261/0.6131, allocations: 1.22 MB / 0.6259 GB, free: 7.332 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.691e-05/0.6132, allocations: 16.78 kB / 0.6259 GB, free: 7.316 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.845e-05/0.6132, allocations: 11.98 kB / 0.6259 GB, free: 7.305 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00122/0.6144, allocations: 0.6162 MB / 0.6265 GB, free: 6.676 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005346/0.615, allocations: 143.8 kB / 0.6267 GB, free: 6.535 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002071/0.6171, allocations: 2.573 MB / 0.6292 GB, free: 3.859 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009464/0.618, allocations: 199.9 kB / 0.6294 GB, free: 3.664 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001165/0.6181, allocations: 47.97 kB / 0.6294 GB, free: 3.617 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 () * 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.0004373/0.6186, allocations: 217.2 kB / 0.6296 GB, free: 3.395 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001801/0.6188, allocations: 59.25 kB / 0.6297 GB, free: 3.336 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00256/0.6213, allocations: 1.141 MB / 0.6308 GB, free: 2.168 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.049e-05/0.6214, allocations: 8 kB / 0.6308 GB, free: 2.16 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/0.6214, allocations: 4 kB / 0.6308 GB, free: 2.156 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.707e-06/0.6214, allocations: 3.984 kB / 0.6308 GB, free: 2.152 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003846/0.6252, allocations: 2.123 MB / 0.6329 GB, free: 15.95 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.881e-06/0.6253, allocations: 0 / 0.6329 GB, free: 15.95 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005637/0.6258, allocations: 123.9 kB / 0.633 GB, free: 15.83 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001093/0.6269, allocations: 0.5732 MB / 0.6336 GB, free: 15.25 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.154e-05/0.627, allocations: 39.95 kB / 0.6336 GB, free: 15.21 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002028/0.6291, allocations: 2.522 MB / 0.6361 GB, free: 12.58 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.968e-06/0.6291, allocations: 3.938 kB / 0.6361 GB, free: 12.57 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003067/0.6322, allocations: 1.771 MB / 0.6378 GB, free: 10.73 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003846/0.6326, allocations: 216.3 kB / 0.638 GB, free: 10.5 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001257/0.6327, allocations: 35.92 kB / 0.638 GB, free: 10.47 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008534/0.6336, allocations: 176 kB / 0.6382 GB, free: 10.3 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003354/0.6339, allocations: 179.6 kB / 0.6384 GB, free: 10.12 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001325/0.634, allocations: 43.91 kB / 0.6384 GB, free: 10.08 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0003141/0.6344, allocations: 263.1 kB / 0.6387 GB, free: 9.82 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6344, allocations: 0 / 0.6387 GB, free: 9.82 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0008919/0.6353, allocations: 196 kB / 0.6388 GB, free: 9.629 MB / 458.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.003791/0.6391, allocations: 2.716 MB / 0.6415 GB, free: 6.844 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002156/0.6412, allocations: 1.028 MB / 0.6425 GB, free: 5.797 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.818e-06/0.6413, allocations: 0 / 0.6425 GB, free: 5.797 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0012/0.6425, allocations: 0.5114 MB / 0.643 GB, free: 5.285 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008024/0.6433, allocations: 104.8 kB / 0.6431 GB, free: 5.188 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.011/0.6543, allocations: 7.967 MB / 0.6509 GB, free: 13.04 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005182/0.6549, allocations: 0.926 MB / 0.6518 GB, free: 12.09 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0003368/0.6552, allocations: 64.73 kB / 0.6518 GB, free: 12.02 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002946/0.6555, allocations: 203.4 kB / 0.652 GB, free: 11.83 MB / 474.7 MB Notification: Performance of SimCode: time 9.62e-07/0.6555, allocations: 0 / 0.652 GB, free: 11.83 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03589/0.6914, allocations: 18.28 MB / 0.6699 GB, free: 9.766 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002122/0.6917, allocations: 193.6 kB / 0.6701 GB, free: 9.527 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.477/3.169, allocations: 3.938 kB / 0.6701 GB, free: 9.523 MB / 490.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