Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4_1_0-beta_om_ModelicaTest_Rotational_TestFriction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestFriction,fileNamePrefix="ModelicaTest_4_1_0-beta_om_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.001347/0.001347, allocations: 117.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001563/0.001563, allocations: 199.9 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.486/1.486, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2433/0.2433, allocations: 46.14 MB / 344.4 MB, free: 11.43 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002546/0.002546, allocations: 83.84 kB / 480.9 MB, free: 4.508 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3715/0.3741, allocations: 62.44 MB / 0.5306 GB, free: 13.35 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.006942/0.381, allocations: 4.118 MB / 0.5346 GB, free: 10.09 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003693/0.3848, allocations: 1.476 MB / 0.536 GB, free: 8.879 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006286/0.3855, allocations: 18.88 kB / 0.5361 GB, free: 8.871 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005435/0.386, allocations: 130.4 kB / 0.5362 GB, free: 8.762 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001219/0.3873, allocations: 277.4 kB / 0.5365 GB, free: 8.543 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009768/0.3883, allocations: 352.2 kB / 0.5368 GB, free: 8.238 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001648/0.3899, allocations: 1.096 MB / 0.5379 GB, free: 7.582 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004142/0.3904, allocations: 188.4 kB / 0.538 GB, free: 7.473 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009987/0.3914, allocations: 483.9 kB / 0.5385 GB, free: 7.191 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009645/0.3924, allocations: 0.507 MB / 0.539 GB, free: 6.852 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003079/0.3927, allocations: 81.84 kB / 0.5391 GB, free: 6.852 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005359/0.3933, allocations: 138.4 kB / 0.5392 GB, free: 6.832 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003636/0.3936, allocations: 234 kB / 0.5394 GB, free: 6.641 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006125/0.3942, allocations: 431.1 kB / 0.5398 GB, free: 6.332 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001707/0.396, allocations: 1.031 MB / 0.5408 GB, free: 5.566 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.396, allocations: 0 / 0.5408 GB, free: 5.566 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.396, allocations: 0 / 0.5408 GB, free: 5.566 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.07e-05/0.396, allocations: 1.062 kB / 0.5408 GB, free: 5.566 MB / 398.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.002801/0.3988, allocations: 1.174 MB / 0.542 GB, free: 4.645 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.627e-05/0.3989, allocations: 9.375 kB / 0.542 GB, free: 4.645 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001507/0.3991, allocations: 106.5 kB / 0.5421 GB, free: 4.551 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005523/0.3996, allocations: 124.7 kB / 0.5422 GB, free: 4.492 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009415/0.4006, allocations: 489.6 kB / 0.5427 GB, free: 4.059 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.944e-05/0.4007, allocations: 57.19 kB / 0.5427 GB, free: 4.027 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001361/0.4008, allocations: 72.59 kB / 0.5428 GB, free: 3.996 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001725/0.4025, allocations: 0.8106 MB / 0.5436 GB, free: 3.461 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.741e-05/0.4026, allocations: 7.469 kB / 0.5436 GB, free: 3.457 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.062e-05/0.4027, allocations: 29.45 kB / 0.5436 GB, free: 3.434 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.578e-05/0.4027, allocations: 15.25 kB / 0.5437 GB, free: 3.434 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001777/0.4045, allocations: 0.7379 MB / 0.5444 GB, free: 3.078 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00497/0.4095, allocations: 2.586 MB / 0.5469 GB, free: 0.707 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001635/0.4112, allocations: 0.6617 MB / 0.5475 GB, free: 12 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008717/0.412, allocations: 379.2 kB / 0.5479 GB, free: 15.63 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.188e-05/0.4121, allocations: 11.98 kB / 0.5479 GB, free: 15.62 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.621e-05/0.4122, allocations: 46.55 kB / 0.548 GB, free: 15.56 MB / 414.1 MB Notification: Performance of pre-optimization done (n=79): time 3.136e-06/0.4122, allocations: 0 / 0.548 GB, free: 15.56 MB / 414.1 MB Notification: Performance of matching and sorting (n=83): time 0.009243/0.4215, allocations: 3.567 MB / 0.5515 GB, free: 11.74 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.819e-05/0.4216, allocations: 136.5 kB / 0.5516 GB, free: 11.57 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007885/0.4224, allocations: 478 kB / 0.552 GB, free: 11.1 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001506/0.4226, allocations: 57.7 kB / 0.5521 GB, free: 11.04 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002862/0.4229, allocations: 285.1 kB / 0.5524 GB, free: 10.75 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000374/0.4232, allocations: 301.6 kB / 0.5527 GB, free: 10.45 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004027/0.4237, allocations: 174.5 kB / 0.5528 GB, free: 10.28 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002012/0.4239, allocations: 370.8 kB / 0.5532 GB, free: 9.906 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008619/0.4247, allocations: 365.8 kB / 0.5535 GB, free: 9.547 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009801/0.4257, allocations: 0.5215 MB / 0.554 GB, free: 8.969 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001529/0.4273, allocations: 0.6848 MB / 0.5547 GB, free: 8.23 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.814e-06/0.4273, allocations: 4 kB / 0.5547 GB, free: 8.227 MB / 414.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.003117/0.4304, allocations: 1.215 MB / 0.5559 GB, free: 6.992 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.511e-05/0.4305, allocations: 4 kB / 0.5559 GB, free: 6.988 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.386e-05/0.4305, allocations: 4 kB / 0.5559 GB, free: 6.984 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001512/0.432, allocations: 0.585 MB / 0.5565 GB, free: 6.387 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006068/0.4326, allocations: 147.7 kB / 0.5566 GB, free: 6.242 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004636/0.4373, allocations: 3.85 MB / 0.5604 GB, free: 2.172 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00121/0.4385, allocations: 147.8 kB / 0.5605 GB, free: 2.027 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001486/0.4387, allocations: 39.98 kB / 0.5605 GB, free: 1.988 MB / 414.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.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free,oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward,bearingFriction.free,bearingFriction.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward) * 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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,8), (1,10), (1,6), (1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0005221/0.4392, allocations: 216.3 kB / 0.5608 GB, free: 1.766 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003175/0.4396, allocations: 79.45 kB / 0.5608 GB, free: 1.688 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002412/0.4398, allocations: 88.84 kB / 0.5609 GB, free: 1.602 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.217e-05/0.4398, allocations: 11.94 kB / 0.5609 GB, free: 1.59 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.071e-05/0.4399, allocations: 4 kB / 0.5609 GB, free: 1.586 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.128e-05/0.4399, allocations: 3.984 kB / 0.5609 GB, free: 1.582 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004703/0.4446, allocations: 2.158 MB / 0.563 GB, free: 15.35 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.034e-06/0.4446, allocations: 0 / 0.563 GB, free: 15.35 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005888/0.4452, allocations: 115.9 kB / 0.5632 GB, free: 15.24 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001264/0.4465, allocations: 0.538 MB / 0.5637 GB, free: 14.69 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001051/0.4466, allocations: 35.91 kB / 0.5637 GB, free: 14.66 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004004/0.4506, allocations: 3.647 MB / 0.5673 GB, free: 10.8 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/0.4507, allocations: 8.094 kB / 0.5673 GB, free: 10.79 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003846/0.4545, allocations: 1.735 MB / 0.569 GB, free: 9.023 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004961/0.455, allocations: 232.4 kB / 0.5692 GB, free: 8.777 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001941/0.4553, allocations: 39.97 kB / 0.5692 GB, free: 8.738 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001023/0.4563, allocations: 123.9 kB / 0.5694 GB, free: 8.617 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005034/0.4568, allocations: 191.6 kB / 0.5695 GB, free: 8.43 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.211e-05/0.4569, allocations: 35.97 kB / 0.5696 GB, free: 8.395 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.000489/0.4574, allocations: 326.9 kB / 0.5699 GB, free: 8.078 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4574, allocations: 0 / 0.5699 GB, free: 8.078 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001012/0.4584, allocations: 204 kB / 0.5701 GB, free: 7.879 MB / 430.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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,6), (1,10), (1,7), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005296/0.4637, allocations: 2.559 MB / 0.5726 GB, free: 5.398 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00261/0.4664, allocations: 1.044 MB / 0.5736 GB, free: 4.34 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/0.4664, allocations: 0 / 0.5736 GB, free: 4.34 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001564/0.468, allocations: 0.6322 MB / 0.5742 GB, free: 3.695 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001261/0.4693, allocations: 152 kB / 0.5744 GB, free: 3.551 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01508/0.4844, allocations: 7.4 MB / 0.5816 GB, free: 11.91 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006889/0.4851, allocations: 0.9341 MB / 0.5825 GB, free: 10.95 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0004029/0.4855, allocations: 73.05 kB / 0.5826 GB, free: 10.88 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004312/0.4859, allocations: 239.3 kB / 0.5828 GB, free: 10.64 MB / 446.1 MB Notification: Performance of SimCode: time 6.71e-07/0.486, allocations: 4 kB / 0.5828 GB, free: 10.64 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06724/0.5532, allocations: 22.04 MB / 0.6043 GB, free: 4.816 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.18/13.74, allocations: 6.094 kB / 0.6043 GB, free: 4.812 MB / 462.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestFriction.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestFriction.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestFriction.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestFriction.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestFriction_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_TestFriction_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Rotational_TestFriction.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.TestFriction.pipe 2>&1)