Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Rotational.TestFriction.conf.json 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/Complex 4.0.0+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/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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) Running command: translateModel(ModelicaTest.Rotational.TestFriction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Rotational.TestFriction") translateModel(ModelicaTest.Rotational.TestFriction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Rotational.TestFriction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009478/0.0009478, allocations: 91.84 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.008435/0.008435, allocations: 170 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.665/1.665, allocations: 205.4 MB / 222.4 MB, free: 5.562 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.4599/0.4599, allocations: 40.01 MB / 310.7 MB, free: 9.535 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ModelicaTest requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005679/0.0005679, allocations: 12 kB / 379.4 MB, free: 11.99 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1536/0.1541, allocations: 57.96 MB / 437.4 MB, free: 1.922 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.004986/0.1592, allocations: 3.548 MB / 441 MB, free: 14.35 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003067/0.1623, allocations: 1.263 MB / 442.2 MB, free: 13.08 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006348/0.163, allocations: 11.94 kB / 442.2 MB, free: 13.07 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004043/0.1634, allocations: 83.39 kB / 442.3 MB, free: 12.99 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005381/0.1639, allocations: 186.5 kB / 442.5 MB, free: 12.8 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008101/0.1647, allocations: 299.6 kB / 442.8 MB, free: 12.51 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001006/0.1658, allocations: 0.9678 MB / 443.8 MB, free: 11.54 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002904/0.1661, allocations: 149.9 kB / 443.9 MB, free: 11.39 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005222/0.1666, allocations: 398.5 kB / 444.3 MB, free: 11 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006061/0.1672, allocations: 446.2 kB / 444.7 MB, free: 10.56 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.065e-05/0.1673, allocations: 40 kB / 444.8 MB, free: 10.52 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002136/0.1675, allocations: 87.95 kB / 444.8 MB, free: 10.44 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001844/0.1677, allocations: 163.4 kB / 445 MB, free: 10.28 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003329/0.1681, allocations: 391.7 kB / 445.4 MB, free: 9.887 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008131/0.1689, allocations: 0.8643 MB / 446.3 MB, free: 9.02 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.1689, allocations: 0 / 446.3 MB, free: 9.02 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.1689, allocations: 0 / 446.3 MB, free: 9.02 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.688e-06/0.1689, allocations: 0 / 446.3 MB, free: 9.02 MB / 382.1 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.002087/0.171, allocations: 0.9899 MB / 447.2 MB, free: 7.977 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.987e-05/0.1711, allocations: 8.031 kB / 447.3 MB, free: 7.969 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001701/0.1713, allocations: 80 kB / 447.3 MB, free: 7.891 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006049/0.1719, allocations: 433.6 kB / 447.8 MB, free: 7.43 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.121e-05/0.1719, allocations: 57.56 kB / 447.8 MB, free: 7.375 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001217/0.1721, allocations: 64.12 kB / 447.9 MB, free: 7.312 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001501/0.1736, allocations: 0.8297 MB / 448.7 MB, free: 6.449 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.213e-05/0.1736, allocations: 19.83 kB / 448.7 MB, free: 6.43 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.888e-05/0.1737, allocations: 20 kB / 448.7 MB, free: 6.41 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.739e-05/0.1737, allocations: 16 kB / 448.8 MB, free: 6.395 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001549/0.1753, allocations: 0.7969 MB / 449.6 MB, free: 5.598 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004314/0.1796, allocations: 2.64 MB / 452.2 MB, free: 2.836 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001319/0.181, allocations: 0.6466 MB / 452.8 MB, free: 2.152 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007075/0.1817, allocations: 399.5 kB / 453.2 MB, free: 1.75 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.092e-05/0.1817, allocations: 7.984 kB / 453.2 MB, free: 1.742 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.066e-05/0.1818, allocations: 46.47 kB / 453.3 MB, free: 1.688 MB / 382.1 MB Notification: Performance of pre-optimization done (n=72): time 2.405e-06/0.1818, allocations: 4 kB / 453.3 MB, free: 1.684 MB / 382.1 MB Notification: Performance of matching and sorting (n=76): time 0.3062/0.488, allocations: 3.732 MB / 457 MB, free: 47.51 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.952e-05/0.4881, allocations: 145 kB / 457.2 MB, free: 47.35 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004286/0.4885, allocations: 423.1 kB / 457.6 MB, free: 47.24 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.22e-05/0.4886, allocations: 52.58 kB / 457.6 MB, free: 47.21 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001923/0.4888, allocations: 281.2 kB / 457.9 MB, free: 47.05 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001848/0.489, allocations: 273.9 kB / 458.2 MB, free: 46.9 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00012/0.4891, allocations: 80.5 kB / 458.2 MB, free: 46.88 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001035/0.4892, allocations: 366 kB / 458.6 MB, free: 46.57 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007202/0.49, allocations: 403.3 kB / 459 MB, free: 46.57 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008325/0.4908, allocations: 0.561 MB / 459.6 MB, free: 46.41 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00127/0.4921, allocations: 0.7672 MB / 460.3 MB, free: 46.23 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.831e-06/0.4921, allocations: 3.281 kB / 460.3 MB, free: 46.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.002634/0.4947, allocations: 1.312 MB / 461.6 MB, free: 46.08 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.165e-05/0.4948, allocations: 13.38 kB / 461.7 MB, free: 46.08 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.053e-05/0.4948, allocations: 3.406 kB / 461.7 MB, free: 46.08 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001279/0.4961, allocations: 0.7576 MB / 462.4 MB, free: 46.02 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005167/0.4966, allocations: 156.9 kB / 462.6 MB, free: 46.01 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001868/0.4985, allocations: 2.701 MB / 465.3 MB, free: 43.92 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001008/0.4995, allocations: 194.7 kB / 465.5 MB, free: 43.9 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.133e-05/0.4996, allocations: 36.59 kB / 465.5 MB, free: 43.9 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 (oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free,brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,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 (91): * Single equations (assignments): 87 * 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,7), (1,6), (1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.000454/0.5001, allocations: 218.1 kB / 465.7 MB, free: 43.77 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001759/0.5002, allocations: 60.5 kB / 465.8 MB, free: 43.73 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002429/0.5005, allocations: 98.23 kB / 465.9 MB, free: 43.72 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.137e-06/0.5005, allocations: 6.75 kB / 465.9 MB, free: 43.72 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.688e-05/0.5005, allocations: 7.109 kB / 465.9 MB, free: 43.72 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.636e-06/0.5005, allocations: 3.188 kB / 465.9 MB, free: 43.72 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00361/0.5042, allocations: 2.182 MB / 468.1 MB, free: 42.89 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.621e-06/0.5042, allocations: 3.312 kB / 468.1 MB, free: 42.89 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005032/0.5047, allocations: 118.8 kB / 468.2 MB, free: 42.88 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001099/0.5058, allocations: 0.7236 MB / 468.9 MB, free: 42.66 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.776e-05/0.5059, allocations: 34.17 kB / 468.9 MB, free: 42.65 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001721/0.5076, allocations: 2.649 MB / 471.6 MB, free: 40.36 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.5076, allocations: 3.469 kB / 471.6 MB, free: 40.36 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003008/0.5106, allocations: 1.816 MB / 473.4 MB, free: 39.47 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003029/0.5109, allocations: 216.9 kB / 473.6 MB, free: 39.31 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001367/0.5111, allocations: 26.06 kB / 473.6 MB, free: 39.3 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009103/0.512, allocations: 181.2 kB / 473.8 MB, free: 39.27 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003155/0.5123, allocations: 141.6 kB / 474 MB, free: 39.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.884e-05/0.5124, allocations: 32.56 kB / 474 MB, free: 39.25 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003083/0.5127, allocations: 293.2 kB / 474.3 MB, free: 39.11 MB / 382.1 MB Notification: Performance of sort global known variables: time 5.01e-07/0.5127, allocations: 0 / 474.3 MB, free: 39.11 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008848/0.5136, allocations: 200.9 kB / 474.5 MB, free: 39.08 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 (53): * Single equations (assignments): 49 * 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,7), (1,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002968/0.5139, allocations: 158.3 kB / 474.6 MB, free: 38.96 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002086/0.516, allocations: 0.9831 MB / 475.6 MB, free: 38.66 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.969e-06/0.516, allocations: 0 / 475.6 MB, free: 38.66 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001285/0.5173, allocations: 0.5228 MB / 476.1 MB, free: 38.5 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001162/0.5185, allocations: 106.2 kB / 476.2 MB, free: 38.45 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005086/0.5236, allocations: 2.638 MB / 478.9 MB, free: 36.93 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003734/0.524, allocations: 0.9104 MB / 479.8 MB, free: 36.21 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003135/0.5243, allocations: 69.56 kB / 479.9 MB, free: 36.2 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001396/0.5245, allocations: 47.33 kB / 479.9 MB, free: 36.18 MB / 382.1 MB Notification: Performance of SimCode: time 4.81e-07/0.5245, allocations: 0 / 479.9 MB, free: 36.18 MB / 382.1 MB Notification: Performance of Templates: time 0.03568/0.5602, allocations: 14.45 MB / 494.4 MB, free: 35.02 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Rotational.TestFriction.makefile Environment - environmentSimulation: (rm -f ModelicaTest_3.2.2_ModelicaTest.Rotational.TestFriction.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Rotational.TestFriction.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Rotational.TestFriction.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Rotational.TestFriction.sim & ./ModelicaTest_3.2.2_ModelicaTest.Rotational.TestFriction -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Rotational.TestFriction.pipe 2>&1) Environment - environmentSimulation: