Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_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.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+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.1_ModelicaTest.Rotational.TestFriction") translateModel(ModelicaTest.Rotational.TestFriction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Rotational.TestFriction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001175/0.001175, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001345/0.001345, allocations: 192.3 kB / 16.13 MB, free: 6.699 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.743/1.743, allocations: 205.1 MB / 222 MB, free: 4.766 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.3722/0.3722, allocations: 37.98 MB / 307.3 MB, free: 10.11 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.1. 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.002082/0.002082, allocations: 68.12 kB / 374.5 MB, free: 15.64 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1621/0.1642, allocations: 56.47 MB / 431 MB, free: 7.078 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.006494/0.1708, allocations: 3.945 MB / 434.9 MB, free: 3.105 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004527/0.1754, allocations: 1.279 MB / 436.2 MB, free: 1.82 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001196/0.1766, allocations: 11.94 kB / 436.2 MB, free: 1.809 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006744/0.1774, allocations: 83.39 kB / 436.3 MB, free: 1.727 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00123/0.1786, allocations: 186.6 kB / 436.5 MB, free: 1.543 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00129/0.18, allocations: 299.6 kB / 436.8 MB, free: 1.25 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001684/0.1817, allocations: 0.9717 MB / 437.8 MB, free: 276 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003924/0.1821, allocations: 154.9 kB / 437.9 MB, free: 120 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008144/0.1829, allocations: 414.4 kB / 438.3 MB, free: 15.71 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005182/0.1834, allocations: 458.2 kB / 438.8 MB, free: 15.26 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001089/0.1835, allocations: 44 kB / 438.8 MB, free: 15.22 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002363/0.1838, allocations: 95.95 kB / 438.9 MB, free: 15.12 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002067/0.184, allocations: 171.4 kB / 439.1 MB, free: 14.96 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004201/0.1844, allocations: 374 kB / 439.4 MB, free: 14.59 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008637/0.1853, allocations: 0.8761 MB / 440.3 MB, free: 13.71 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.1853, allocations: 0 / 440.3 MB, free: 13.71 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.1853, allocations: 0 / 440.3 MB, free: 13.71 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.002e-05/0.1853, allocations: 0 / 440.3 MB, free: 13.71 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.002357/0.1877, allocations: 1.087 MB / 441.4 MB, free: 12.57 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.862e-05/0.1878, allocations: 12.03 kB / 441.4 MB, free: 12.56 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001977/0.188, allocations: 84 kB / 441.5 MB, free: 12.48 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006441/0.1886, allocations: 433.7 kB / 441.9 MB, free: 12.02 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.114e-05/0.1887, allocations: 45.69 kB / 442 MB, free: 11.97 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001487/0.1889, allocations: 68.03 kB / 442 MB, free: 11.91 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001645/0.1905, allocations: 0.8218 MB / 442.9 MB, free: 11.05 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.205e-05/0.1906, allocations: 11.83 kB / 442.9 MB, free: 11.04 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.272e-05/0.1907, allocations: 28 kB / 442.9 MB, free: 11.02 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.031e-05/0.1907, allocations: 16 kB / 442.9 MB, free: 11 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001662/0.1924, allocations: 0.7657 MB / 443.7 MB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004495/0.1969, allocations: 2.562 MB / 446.2 MB, free: 7.551 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001429/0.1983, allocations: 0.623 MB / 446.9 MB, free: 6.891 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007189/0.1991, allocations: 383.2 kB / 447.2 MB, free: 6.504 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.847e-05/0.1991, allocations: 12 kB / 447.2 MB, free: 6.492 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.317e-05/0.1992, allocations: 42.78 kB / 447.3 MB, free: 6.441 MB / 382.1 MB Notification: Performance of pre-optimization done (n=72): time 4.648e-06/0.1992, allocations: 0 / 447.3 MB, free: 6.441 MB / 382.1 MB Notification: Performance of matching and sorting (n=76): time 0.007841/0.207, allocations: 3.546 MB / 450.8 MB, free: 2.625 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.299e-05/0.2072, allocations: 144.4 kB / 451 MB, free: 2.453 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005256/0.2077, allocations: 421.8 kB / 451.4 MB, free: 2.031 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.655e-05/0.2078, allocations: 53.7 kB / 451.4 MB, free: 1.973 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002821/0.2081, allocations: 280.3 kB / 451.7 MB, free: 1.691 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002674/0.2084, allocations: 264.5 kB / 452 MB, free: 1.43 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002881/0.2087, allocations: 174.4 kB / 452.1 MB, free: 1.254 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001952/0.2089, allocations: 370.8 kB / 452.5 MB, free: 0.8828 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000811/0.2097, allocations: 385.8 kB / 452.9 MB, free: 0.5039 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.306/0.5157, allocations: 0.5397 MB / 453.4 MB, free: 52.82 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001813/0.5176, allocations: 0.7341 MB / 454.2 MB, free: 52.67 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.821e-06/0.5176, allocations: 4.625 kB / 454.2 MB, free: 52.67 MB / 382.1 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.002585/0.5202, allocations: 1.282 MB / 455.4 MB, free: 52.59 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.611e-05/0.5203, allocations: 6.25 kB / 455.4 MB, free: 52.59 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.627e-05/0.5203, allocations: 3.25 kB / 455.4 MB, free: 52.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001537/0.5218, allocations: 0.76 MB / 456.2 MB, free: 52.55 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005251/0.5224, allocations: 149.6 kB / 456.4 MB, free: 52.55 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001886/0.5243, allocations: 2.692 MB / 459 MB, free: 50.43 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009107/0.5252, allocations: 146.2 kB / 459.2 MB, free: 50.41 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.976e-05/0.5253, allocations: 37.67 kB / 459.2 MB, free: 50.4 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.0003645/0.5257, allocations: 216 kB / 459.4 MB, free: 50.23 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001796/0.5258, allocations: 67.75 kB / 459.5 MB, free: 50.23 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001658/0.526, allocations: 83.86 kB / 459.6 MB, free: 50.17 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.127e-06/0.526, allocations: 13.78 kB / 459.6 MB, free: 50.16 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.151e-05/0.526, allocations: 3.844 kB / 459.6 MB, free: 50.16 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.356e-06/0.5261, allocations: 6.75 kB / 459.6 MB, free: 50.16 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003649/0.5297, allocations: 2.165 MB / 461.8 MB, free: 49.12 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.354e-06/0.5297, allocations: 1.188 kB / 461.8 MB, free: 49.12 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005586/0.5303, allocations: 113.8 kB / 461.9 MB, free: 49.11 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001204/0.5315, allocations: 0.7227 MB / 462.6 MB, free: 48.9 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.171e-05/0.5316, allocations: 32.5 kB / 462.6 MB, free: 48.89 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001893/0.5335, allocations: 2.643 MB / 465.3 MB, free: 46.61 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/0.5335, allocations: 6.875 kB / 465.3 MB, free: 46.61 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003005/0.5365, allocations: 1.77 MB / 467.1 MB, free: 45.78 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003679/0.5369, allocations: 216 kB / 467.3 MB, free: 45.65 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001448/0.5371, allocations: 31.73 kB / 467.3 MB, free: 45.64 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008052/0.5379, allocations: 117.2 kB / 467.4 MB, free: 45.62 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003546/0.5382, allocations: 151.1 kB / 467.6 MB, free: 45.6 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.782e-05/0.5383, allocations: 37.34 kB / 467.6 MB, free: 45.59 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003506/0.5387, allocations: 290.5 kB / 467.9 MB, free: 45.46 MB / 382.1 MB Notification: Performance of sort global known variables: time 5.11e-07/0.5387, allocations: 0 / 467.9 MB, free: 45.46 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009702/0.5397, allocations: 199.1 kB / 468.1 MB, free: 45.44 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.0003566/0.54, allocations: 164 kB / 468.2 MB, free: 45.32 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00215/0.5422, allocations: 0.947 MB / 469.2 MB, free: 45.03 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.072e-06/0.5422, allocations: 4 kB / 469.2 MB, free: 45.03 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001143/0.5434, allocations: 0.498 MB / 469.7 MB, free: 44.88 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001003/0.5444, allocations: 107.2 kB / 469.8 MB, free: 44.84 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004764/0.5492, allocations: 2.353 MB / 472.1 MB, free: 43.44 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004134/0.5496, allocations: 0.9034 MB / 473 MB, free: 42.73 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002983/0.5499, allocations: 71.69 kB / 473.1 MB, free: 42.71 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001279/0.55, allocations: 45.53 kB / 473.2 MB, free: 42.7 MB / 382.1 MB Notification: Performance of SimCode: time 3.6e-07/0.55, allocations: 0 / 473.2 MB, free: 42.7 MB / 382.1 MB Notification: Performance of Templates: time 0.0278/0.5778, allocations: 14.59 MB / 487.7 MB, free: 41.86 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Rotational.TestFriction.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Rotational.TestFriction.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Rotational.TestFriction.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Rotational.TestFriction.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Rotational.TestFriction.sim & ./ModelicaTest_3.2.1_ModelicaTest.Rotational.TestFriction -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Rotational.TestFriction.pipe 2>&1)