Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Rotational.AllComponents.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.AllComponents,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Rotational.AllComponents") translateModel(ModelicaTest.Rotational.AllComponents,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Rotational.AllComponents") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002082/0.002082, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002145/0.002145, allocations: 196.2 kB / 16.53 MB, free: 6.664 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.662/1.662, allocations: 205.1 MB / 222.4 MB, free: 4.598 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.3694/0.3694, allocations: 37.99 MB / 307.7 MB, free: 9.914 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.001922/0.001922, allocations: 76.77 kB / 375.2 MB, free: 15.19 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1383/0.1402, allocations: 56.46 MB / 431.7 MB, free: 6.629 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.AllComponents): time 0.01156/0.1518, allocations: 8.968 MB / 440.7 MB, free: 13.61 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0076/0.1595, allocations: 2.949 MB / 443.6 MB, free: 10.65 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002237/0.1617, allocations: 43.88 kB / 443.7 MB, free: 10.61 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001374/0.1632, allocations: 340.6 kB / 444 MB, free: 10.27 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003639/0.1668, allocations: 0.7286 MB / 444.7 MB, free: 9.535 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003363/0.1702, allocations: 0.9048 MB / 445.6 MB, free: 8.629 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005903/0.1761, allocations: 3.107 MB / 448.7 MB, free: 5.508 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001885/0.1781, allocations: 0.7802 MB / 449.5 MB, free: 4.699 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003844/0.1819, allocations: 1.25 MB / 450.8 MB, free: 3.445 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003804/0.1857, allocations: 1.44 MB / 452.2 MB, free: 2 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001206/0.187, allocations: 264 kB / 452.5 MB, free: 1.742 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002052/0.189, allocations: 375.8 kB / 452.8 MB, free: 1.375 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001843/0.1909, allocations: 0.6386 MB / 453.5 MB, free: 0.7344 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2834/0.4743, allocations: 1.254 MB / 454.7 MB, free: 39.46 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004253/0.4786, allocations: 3.041 MB / 457.8 MB, free: 39.31 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.334e-06/0.4787, allocations: 0 / 457.8 MB, free: 39.31 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.725e-06/0.4787, allocations: 0 / 457.8 MB, free: 39.31 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.03e-05/0.4787, allocations: 0 / 457.8 MB, free: 39.31 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: 516 * Number of variables: 516 Notification: Performance of Generate backend data structure: time 0.005827/0.4846, allocations: 2.742 MB / 460.5 MB, free: 38.21 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.623e-05/0.4846, allocations: 15.36 kB / 460.5 MB, free: 38.21 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008493/0.4855, allocations: 271.1 kB / 460.8 MB, free: 38.09 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001683/0.4872, allocations: 1.061 MB / 461.8 MB, free: 37.68 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007891/0.488, allocations: 433 kB / 462.3 MB, free: 37.48 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003509/0.4883, allocations: 226 kB / 462.5 MB, free: 37.47 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004415/0.4928, allocations: 2.402 MB / 464.9 MB, free: 37.25 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.153e-05/0.4929, allocations: 31.23 kB / 464.9 MB, free: 37.23 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001913/0.4931, allocations: 83.31 kB / 465 MB, free: 37.23 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.054e-05/0.4931, allocations: 53.38 kB / 465.1 MB, free: 37.23 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004776/0.4979, allocations: 2.422 MB / 467.5 MB, free: 37.12 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01242/0.5103, allocations: 6.447 MB / 473.9 MB, free: 34.11 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004552/0.515, allocations: 2.314 MB / 476.2 MB, free: 33.03 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002779/0.5178, allocations: 1.297 MB / 477.5 MB, free: 32.54 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002703/0.5181, allocations: 121.8 kB / 477.7 MB, free: 32.43 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.912e-05/0.5182, allocations: 72 kB / 477.7 MB, free: 32.37 MB / 382.1 MB Notification: Performance of pre-optimization done (n=260): time 6.842e-06/0.5182, allocations: 0 / 477.7 MB, free: 32.37 MB / 382.1 MB Notification: Performance of matching and sorting (n=316): time 0.02975/0.548, allocations: 12.78 MB / 490.5 MB, free: 25.54 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000228/0.5482, allocations: 294 kB / 490.8 MB, free: 25.22 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002942/0.5512, allocations: 1.095 MB / 491.9 MB, free: 24.81 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008501/0.5521, allocations: 93.78 kB / 492 MB, free: 24.73 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008841/0.553, allocations: 0.6607 MB / 492.6 MB, free: 24.21 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002102/0.5551, allocations: 1.048 MB / 493.7 MB, free: 23.4 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001064/0.5562, allocations: 0.5004 MB / 494.2 MB, free: 23.16 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.793e-05/0.5563, allocations: 309.1 kB / 494.5 MB, free: 22.86 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002959/0.5592, allocations: 1.056 MB / 495.5 MB, free: 22.5 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003324/0.5626, allocations: 1.463 MB / 497 MB, free: 21.76 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006559/0.5692, allocations: 2.344 MB / 499.4 MB, free: 20.61 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.365e-05/0.5693, allocations: 4.688 kB / 499.4 MB, free: 20.61 MB / 382.1 MB Notification: Performance of matching and sorting (n=384) (initialization): time 0.009108/0.5784, allocations: 3.401 MB / 0.491 GB, free: 19.37 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.628e-05/0.5785, allocations: 9.672 kB / 0.491 GB, free: 19.37 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.635e-05/0.5785, allocations: 7.75 kB / 0.491 GB, free: 19.37 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003021/0.5815, allocations: 1.223 MB / 0.4922 GB, free: 19 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002977/0.5845, allocations: 0.6314 MB / 0.4928 GB, free: 18.97 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009644/0.5942, allocations: 8.013 MB / 0.5006 GB, free: 12.76 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003254/0.5975, allocations: 221 kB / 0.5008 GB, free: 12.71 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000362/0.5979, allocations: 111.4 kB / 0.5009 GB, free: 12.68 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * Number of states: 0 () * Number of discrete variables: 38 (gear2_1.lossyGear.ideal,gear2_1.lossyGear.mode,$PRE.gear2_1.lossyGear.mode,gear2_1.lossyGear.locked,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.startForward,gear2_1.lossyGear.tau_aPos,bearingFriction.free,lossyGear.ideal,lossyGear.mode,$PRE.lossyGear.mode,lossyGear.locked,lossyGear.startBackward,lossyGear.startForward,lossyGear.tau_aPos,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,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 (315): * Single equations (assignments): 310 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * 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): 5 systems {(2,22), (2,25), (1,6), (1,7), (1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.001397/0.5993, allocations: 469.9 kB / 0.5014 GB, free: 12.38 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000846/0.6001, allocations: 201.6 kB / 0.5016 GB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001273/0.6014, allocations: 0.5864 MB / 0.5022 GB, free: 11.94 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.488e-05/0.6015, allocations: 36.22 kB / 0.5022 GB, free: 11.94 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-05/0.6015, allocations: 2.719 kB / 0.5022 GB, free: 11.94 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.345e-05/0.6016, allocations: 17.39 kB / 0.5022 GB, free: 11.94 MB / 382.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01409/0.6157, allocations: 7.287 MB / 0.5093 GB, free: 8.742 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.69e-05/0.6157, allocations: 18.42 kB / 0.5093 GB, free: 8.738 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002342/0.6181, allocations: 0.5633 MB / 0.5099 GB, free: 8.621 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002198/0.6203, allocations: 1.216 MB / 0.5111 GB, free: 7.59 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002358/0.6205, allocations: 91.22 kB / 0.5112 GB, free: 7.52 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01043/0.6309, allocations: 10.99 MB / 0.5219 GB, free: 12.36 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.247e-05/0.631, allocations: 10.81 kB / 0.5219 GB, free: 12.35 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0135/0.6445, allocations: 5.529 MB / 0.5273 GB, free: 6.645 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00161/0.6462, allocations: 0.4983 MB / 0.5278 GB, free: 6.125 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007168/0.6469, allocations: 83.94 kB / 0.5279 GB, free: 6.043 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002461/0.6494, allocations: 203.8 kB / 0.5281 GB, free: 5.844 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009762/0.6504, allocations: 390.8 kB / 0.5284 GB, free: 5.465 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003223/0.6507, allocations: 115.9 kB / 0.5286 GB, free: 5.352 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00159/0.6523, allocations: 0.7505 MB / 0.5293 GB, free: 4.598 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.6523, allocations: 0 / 0.5293 GB, free: 4.598 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004489/0.6568, allocations: 0.6875 MB / 0.53 GB, free: 3.91 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * Number of states: 27 (inertia14.phi,inertia14.w,constantSpeed.phi,gear2_1.phi_rel,gear2_1.w_rel,relativeStates.phi_rel,relativeStates.w_rel,inertia2.phi,inertia2.w,damper.phi_rel,damper.w_rel,springDamper.phi_rel,springDamper.w_rel,elastoBacklash.phi_rel,elastoBacklash.w_rel,clutch.phi_rel,clutch.w_rel,inertia6.phi,inertia6.w,position.phi,position.w,speed.phi,speed.w,inertia13.phi,inertia13.w,accelerate.phi,accelerate.w) * Number of discrete variables: 24 (gear2_1.lossyGear.tau_aPos,gear2_1.lossyGear.startForward,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.locked,gear2_1.lossyGear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,lossyGear.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,lossyGear.mode,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startBackward,clutch.startForward,gear2_1.lossyGear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (250): * Single equations (assignments): 243 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 5 systems {(2,21), (1,5), (1,6), (2,23), (1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007297/0.6576, allocations: 252.5 kB / 0.5302 GB, free: 3.676 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.009764/0.6674, allocations: 3.446 MB / 0.5336 GB, free: 292 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.531e-05/0.6674, allocations: 6.625 kB / 0.5336 GB, free: 288 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006567/0.674, allocations: 2.68 MB / 0.5362 GB, free: 13.62 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003798/0.6778, allocations: 352.5 kB / 0.5365 GB, free: 13.29 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01382/0.6917, allocations: 5.789 MB / 0.5422 GB, free: 7.41 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002126/0.6938, allocations: 1.499 MB / 0.5436 GB, free: 5.879 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002062/0.6959, allocations: 296.2 kB / 0.5439 GB, free: 5.586 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001012/0.697, allocations: 183.3 kB / 0.5441 GB, free: 5.406 MB / 414.1 MB Notification: Performance of SimCode: time 1.453e-06/0.697, allocations: 0 / 0.5441 GB, free: 5.406 MB / 414.1 MB Notification: Performance of Templates: time 0.079/0.776, allocations: 39.62 MB / 0.5828 GB, free: 13.9 MB / 462.1 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Rotational.AllComponents.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Rotational.AllComponents.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Rotational.AllComponents.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Rotational.AllComponents.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Rotational.AllComponents.sim & ./ModelicaTest_3.2.1_ModelicaTest.Rotational.AllComponents -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Rotational.AllComponents.pipe 2>&1)