Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestFriction,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_TestFriction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestFriction,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_TestFriction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000747/0.0007469, allocations: 99.14 kB / 17 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009215/0.0009215, allocations: 192.7 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.476/1.476, allocations: 227.4 MB / 246 MB, free: 10.25 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2305/0.2305, allocations: 45.92 MB / 344.1 MB, free: 12.01 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002727/0.0002728, allocations: 8 kB / 418.2 MB, free: 20.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1384/0.1387, allocations: 63.48 MB / 481.6 MB, free: 5.266 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.004776/0.1435, allocations: 3.529 MB / 485.2 MB, free: 1.707 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002613/0.1461, allocations: 1.345 MB / 486.5 MB, free: 368 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003587/0.1465, allocations: 11.94 kB / 486.5 MB, free: 356 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000422/0.1469, allocations: 99.27 kB / 486.6 MB, free: 256 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005553/0.1475, allocations: 242.4 kB / 486.9 MB, free: 12 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005321/0.1481, allocations: 231.7 kB / 487.1 MB, free: 15.79 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008987/0.149, allocations: 0.9405 MB / 488 MB, free: 14.84 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002761/0.1493, allocations: 153 kB / 488.2 MB, free: 14.68 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006069/0.1499, allocations: 414.5 kB / 488.6 MB, free: 14.27 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006198/0.1505, allocations: 462.3 kB / 489 MB, free: 13.82 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001023/0.1506, allocations: 44 kB / 489.1 MB, free: 13.78 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002417/0.1509, allocations: 87.98 kB / 489.2 MB, free: 13.69 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002184/0.1511, allocations: 179.3 kB / 489.3 MB, free: 13.52 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001488/0.1513, allocations: 153.3 kB / 489.5 MB, free: 13.36 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007107/0.152, allocations: 0.7132 MB / 490.2 MB, free: 12.64 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.152, allocations: 0 / 490.2 MB, free: 12.64 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.152, allocations: 0 / 490.2 MB, free: 12.64 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.849e-06/0.152, allocations: 0 / 490.2 MB, free: 12.64 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.002089/0.1541, allocations: 1.056 MB / 491.3 MB, free: 11.54 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.487e-05/0.1542, allocations: 8.031 kB / 491.3 MB, free: 11.53 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000136/0.1543, allocations: 106.5 kB / 491.4 MB, free: 11.41 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004875/0.1548, allocations: 134.9 kB / 491.5 MB, free: 11.28 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006268/0.1555, allocations: 448.5 kB / 491.9 MB, free: 10.8 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.409e-05/0.1555, allocations: 49.31 kB / 492 MB, free: 10.75 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001224/0.1556, allocations: 67.91 kB / 492 MB, free: 10.69 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001474/0.1571, allocations: 0.8145 MB / 492.9 MB, free: 9.844 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.599e-05/0.1572, allocations: 4 kB / 492.9 MB, free: 9.84 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.406e-05/0.1572, allocations: 28 kB / 492.9 MB, free: 9.812 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.756e-05/0.1573, allocations: 16 kB / 492.9 MB, free: 9.797 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00166/0.1589, allocations: 0.7403 MB / 493.6 MB, free: 9.059 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004201/0.1631, allocations: 2.657 MB / 496.3 MB, free: 6.281 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00143/0.1646, allocations: 0.6744 MB / 497 MB, free: 5.57 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007426/0.1654, allocations: 375.7 kB / 497.3 MB, free: 5.191 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.897e-05/0.1654, allocations: 16.17 kB / 497.4 MB, free: 5.176 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.29e-05/0.1655, allocations: 46.69 kB / 497.4 MB, free: 5.121 MB / 366.1 MB Notification: Performance of pre-optimization done (n=79): time 2.926e-06/0.1655, allocations: 0 / 497.4 MB, free: 5.121 MB / 366.1 MB Notification: Performance of matching and sorting (n=83): time 0.007833/0.1733, allocations: 3.675 MB / 0.4893 GB, free: 1.184 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.914e-05/0.1735, allocations: 136.5 kB / 0.4895 GB, free: 1.02 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006103/0.1741, allocations: 461.8 kB / 0.4899 GB, free: 0.5547 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.859e-05/0.1742, allocations: 57.62 kB / 0.49 GB, free: 0.4922 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000224/0.1744, allocations: 280.6 kB / 0.4902 GB, free: 216 kB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002914/0.1747, allocations: 296 kB / 0.4905 GB, free: 15.92 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.565e-05/0.1748, allocations: 20 kB / 0.4905 GB, free: 15.9 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002562/0.175, allocations: 374.8 kB / 0.4909 GB, free: 15.52 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007707/0.1758, allocations: 369.8 kB / 0.4912 GB, free: 15.16 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009658/0.1768, allocations: 0.5158 MB / 0.4917 GB, free: 14.59 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006726/0.1775, allocations: 315.8 kB / 0.492 GB, free: 14.29 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.1775, allocations: 0 / 0.492 GB, free: 14.29 MB / 382.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002684/0.1802, allocations: 1.214 MB / 0.4932 GB, free: 13.05 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.93e-05/0.1802, allocations: 8.344 kB / 0.4932 GB, free: 13.05 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.334e-05/0.1802, allocations: 8 kB / 0.4933 GB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001234/0.1815, allocations: 0.5108 MB / 0.4937 GB, free: 12.52 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005432/0.182, allocations: 151.8 kB / 0.4939 GB, free: 12.37 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003857/0.1859, allocations: 3.659 MB / 0.4975 GB, free: 8.492 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000943/0.1869, allocations: 195.7 kB / 0.4977 GB, free: 8.301 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.875e-05/0.1869, allocations: 39.98 kB / 0.4977 GB, free: 8.262 MB / 382.1 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 (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,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (88): * Single equations (assignments): 84 * 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 8,1 10,1 6,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0003735/0.1873, allocations: 220.2 kB / 0.4979 GB, free: 8.035 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001704/0.1875, allocations: 67.25 kB / 0.498 GB, free: 7.969 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002113/0.1877, allocations: 92.81 kB / 0.4981 GB, free: 7.879 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-05/0.1877, allocations: 12 kB / 0.4981 GB, free: 7.867 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.052e-05/0.1877, allocations: 4 kB / 0.4981 GB, free: 7.863 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.185e-05/0.1878, allocations: 7.938 kB / 0.4981 GB, free: 7.855 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00387/0.1916, allocations: 2.158 MB / 0.5002 GB, free: 5.625 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.1917, allocations: 4 kB / 0.5002 GB, free: 5.621 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005486/0.1922, allocations: 119.9 kB / 0.5003 GB, free: 5.504 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001023/0.1932, allocations: 483.1 kB / 0.5008 GB, free: 5.02 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.908e-05/0.1933, allocations: 31.95 kB / 0.5008 GB, free: 4.988 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003349/0.1967, allocations: 3.52 MB / 0.5042 GB, free: 1.258 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.1967, allocations: 8.016 kB / 0.5042 GB, free: 1.25 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2593/0.456, allocations: 1.73 MB / 0.5059 GB, free: 40.18 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004741/0.4565, allocations: 234.8 kB / 0.5062 GB, free: 40.09 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001362/0.4566, allocations: 30.08 kB / 0.5062 GB, free: 40.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009003/0.4576, allocations: 178.5 kB / 0.5064 GB, free: 40.09 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000532/0.4581, allocations: 211.1 kB / 0.5066 GB, free: 40.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.413e-05/0.4582, allocations: 38 kB / 0.5066 GB, free: 40.09 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004478/0.4586, allocations: 317.9 kB / 0.5069 GB, free: 40 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4586, allocations: 0 / 0.5069 GB, free: 40 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001002/0.4596, allocations: 204.7 kB / 0.5071 GB, free: 40 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (54): * Single equations (assignments): 50 * 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 10,1 7,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.004235/0.4639, allocations: 2.566 MB / 0.5096 GB, free: 39.02 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002284/0.4662, allocations: 1.042 MB / 0.5106 GB, free: 38.9 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/0.4662, allocations: 0 / 0.5106 GB, free: 38.9 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001307/0.4675, allocations: 0.6335 MB / 0.5112 GB, free: 38.71 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001083/0.4686, allocations: 122.4 kB / 0.5113 GB, free: 38.66 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009658/0.4783, allocations: 5.499 MB / 0.5167 GB, free: 35.81 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005694/0.4789, allocations: 0.9246 MB / 0.5176 GB, free: 35.11 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003945/0.4793, allocations: 74.75 kB / 0.5177 GB, free: 35.08 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003447/0.4797, allocations: 228.8 kB / 0.5179 GB, free: 34.92 MB / 382.1 MB Notification: Performance of SimCode: time 1.202e-06/0.4797, allocations: 0 / 0.5179 GB, free: 34.92 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03994/0.5196, allocations: 19.32 MB / 0.5368 GB, free: 24.12 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001724/0.5198, allocations: 241.5 kB / 0.537 GB, free: 23.89 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.34/2.86, allocations: 0 / 0.537 GB, free: 23.89 MB / 382.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Rotational_TestFriction_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Rotational_TestFriction.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction_res.mat does not exist to compare? outputFormat=mat