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.0008567/0.0008567, allocations: 91.53 kB / 15.06 MB, free: 1.098 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.0009585/0.0009585, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.515/1.515, allocations: 205.4 MB / 222.1 MB, free: 5.508 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.3336/0.3336, allocations: 38.03 MB / 308.4 MB, free: 10.48 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.0005397/0.0005398, allocations: 16 kB / 376.4 MB, free: 15.17 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.131/0.1315, allocations: 57.53 MB / 434 MB, free: 5.551 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.AllComponents): time 0.00764/0.1392, allocations: 7.871 MB / 441.8 MB, free: 13.65 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006504/0.1457, allocations: 2.876 MB / 444.7 MB, free: 10.76 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001739/0.1475, allocations: 35.88 kB / 444.7 MB, free: 10.73 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008439/0.1484, allocations: 246 kB / 445 MB, free: 10.48 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002785/0.1512, allocations: 0.6166 MB / 445.6 MB, free: 9.863 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002005/0.1532, allocations: 0.6709 MB / 446.3 MB, free: 9.191 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00335/0.1566, allocations: 2.784 MB / 449 MB, free: 6.395 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009958/0.1576, allocations: 0.6052 MB / 449.7 MB, free: 5.766 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001755/0.1593, allocations: 1.067 MB / 450.7 MB, free: 4.695 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001338/0.1607, allocations: 1.234 MB / 452 MB, free: 3.457 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002498/0.1609, allocations: 128 kB / 452.1 MB, free: 3.332 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000525/0.1615, allocations: 231.9 kB / 452.3 MB, free: 3.105 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004437/0.1619, allocations: 490.2 kB / 452.8 MB, free: 2.625 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005008/0.1624, allocations: 416.6 kB / 453.2 MB, free: 2.211 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1932/0.3556, allocations: 2.216 MB / 455.4 MB, free: 37.01 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.776e-06/0.3557, allocations: 0 / 455.4 MB, free: 37.01 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.436e-06/0.3557, allocations: 0.6562 kB / 455.4 MB, free: 37.01 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000116/0.3558, allocations: 0 / 455.4 MB, free: 37.01 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.005059/0.3609, allocations: 2.431 MB / 457.8 MB, free: 35.96 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.281e-05/0.3609, allocations: 9.688 kB / 457.8 MB, free: 35.96 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007672/0.3617, allocations: 284.8 kB / 458.1 MB, free: 35.84 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001407/0.3631, allocations: 1.021 MB / 459.1 MB, free: 35.48 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006738/0.3638, allocations: 455.1 kB / 459.6 MB, free: 35.27 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003271/0.3641, allocations: 230.1 kB / 459.8 MB, free: 35.26 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003937/0.3681, allocations: 2.441 MB / 462.3 MB, free: 35.03 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.312e-05/0.3682, allocations: 28.62 kB / 462.3 MB, free: 35.02 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001878/0.3684, allocations: 79.91 kB / 462.4 MB, free: 35.02 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.957e-05/0.3684, allocations: 51.98 kB / 462.4 MB, free: 35.02 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004511/0.373, allocations: 2.526 MB / 464.9 MB, free: 34.99 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01059/0.3836, allocations: 6.549 MB / 471.5 MB, free: 33.63 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003772/0.3874, allocations: 2.389 MB / 473.9 MB, free: 33.14 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002336/0.3897, allocations: 1.338 MB / 475.2 MB, free: 33.07 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002189/0.39, allocations: 119.7 kB / 475.3 MB, free: 32.97 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.87e-05/0.39, allocations: 66.19 kB / 475.4 MB, free: 32.93 MB / 382.1 MB Notification: Performance of pre-optimization done (n=260): time 4.478e-06/0.39, allocations: 0 / 475.4 MB, free: 32.93 MB / 382.1 MB Notification: Performance of matching and sorting (n=316): time 0.02343/0.4135, allocations: 13.22 MB / 488.6 MB, free: 26.94 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001003/0.4136, allocations: 294.1 kB / 488.9 MB, free: 26.62 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00154/0.4151, allocations: 1.082 MB / 490 MB, free: 26.21 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003635/0.4155, allocations: 95.12 kB / 490.1 MB, free: 26.13 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004376/0.416, allocations: 0.657 MB / 490.7 MB, free: 25.61 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007863/0.4168, allocations: 1.055 MB / 491.8 MB, free: 24.8 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001546/0.4169, allocations: 60.31 kB / 491.8 MB, free: 24.75 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001234/0.4171, allocations: 420.2 kB / 492.3 MB, free: 24.39 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002035/0.4191, allocations: 1.076 MB / 493.3 MB, free: 24.03 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002247/0.4214, allocations: 1.477 MB / 494.8 MB, free: 23.29 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002109/0.4235, allocations: 1.103 MB / 495.9 MB, free: 22.84 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.578e-06/0.4235, allocations: 2.875 kB / 495.9 MB, free: 22.84 MB / 382.1 MB Notification: Performance of matching and sorting (n=384) (initialization): time 0.008257/0.4318, allocations: 3.393 MB / 499.3 MB, free: 21.59 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.879e-05/0.4319, allocations: 8.156 kB / 499.3 MB, free: 21.59 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.947e-05/0.4319, allocations: 19.22 kB / 499.3 MB, free: 21.58 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00258/0.4345, allocations: 1.21 MB / 0.4888 GB, free: 21.22 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002775/0.4373, allocations: 0.6623 MB / 0.4895 GB, free: 21.19 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008488/0.4458, allocations: 7.531 MB / 0.4968 GB, free: 15.39 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002329/0.4481, allocations: 284.4 kB / 0.4971 GB, free: 15.33 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002697/0.4484, allocations: 110.8 kB / 0.4972 GB, free: 15.3 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.tau_aPos,gear2_1.lossyGear.startForward,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.locked,$PRE.gear2_1.lossyGear.mode,gear2_1.lossyGear.mode,gear2_1.lossyGear.ideal,bearingFriction.free,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,$PRE.lossyGear.mode,lossyGear.mode,lossyGear.ideal) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {2 22,2 25,1 6,1 7,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.001012/0.4494, allocations: 454 kB / 0.4976 GB, free: 15.01 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004437/0.4499, allocations: 205 kB / 0.4978 GB, free: 14.91 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001121/0.451, allocations: 0.6007 MB / 0.4984 GB, free: 14.57 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.048e-05/0.4511, allocations: 36.55 kB / 0.4984 GB, free: 14.57 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.53e-05/0.4511, allocations: 3.219 kB / 0.4984 GB, free: 14.57 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.912e-05/0.4511, allocations: 17.31 kB / 0.4985 GB, free: 14.57 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.01294/0.4641, allocations: 7.466 MB / 0.5058 GB, free: 11.34 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.867e-05/0.4641, allocations: 11.08 kB / 0.5058 GB, free: 11.34 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002203/0.4663, allocations: 0.6059 MB / 0.5064 GB, free: 11.32 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002184/0.4685, allocations: 1.198 MB / 0.5075 GB, free: 10.95 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002423/0.4688, allocations: 94.31 kB / 0.5076 GB, free: 10.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008317/0.4771, allocations: 10.17 MB / 0.5175 GB, free: 17.09 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.364e-06/0.4772, allocations: 13.62 kB / 0.5176 GB, free: 17.09 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009366/0.4865, allocations: 5.659 MB / 0.5231 GB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001136/0.4877, allocations: 0.5102 MB / 0.5236 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003281/0.488, allocations: 81.69 kB / 0.5237 GB, free: 11.28 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001651/0.4897, allocations: 267.6 kB / 0.5239 GB, free: 11.07 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007701/0.4905, allocations: 429.9 kB / 0.5243 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001821/0.4907, allocations: 115.9 kB / 0.5244 GB, free: 10.68 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001009/0.4917, allocations: 0.7324 MB / 0.5252 GB, free: 9.945 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4917, allocations: 0 / 0.5252 GB, free: 9.945 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002551/0.4943, allocations: 0.6914 MB / 0.5258 GB, free: 9.254 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 (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 2} * Non-linear torn systems: 5 {2 21,1 5,1 6,2 23,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004446/0.4947, allocations: 252.1 kB / 0.5261 GB, free: 9.027 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.006661/0.5014, allocations: 3.308 MB / 0.5293 GB, free: 5.754 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 9.297e-06/0.5014, allocations: 4 kB / 0.5293 GB, free: 5.75 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005583/0.507, allocations: 2.73 MB / 0.532 GB, free: 3.031 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002515/0.5095, allocations: 331.4 kB / 0.5323 GB, free: 2.715 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0108/0.5204, allocations: 6.962 MB / 0.5391 GB, free: 11.66 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001077/0.5215, allocations: 1.506 MB / 0.5406 GB, free: 10.12 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001287/0.5228, allocations: 296.2 kB / 0.5408 GB, free: 9.824 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000502/0.5233, allocations: 171.3 kB / 0.541 GB, free: 9.656 MB / 414.1 MB Notification: Performance of SimCode: time 6.71e-07/0.5233, allocations: 0 / 0.541 GB, free: 9.656 MB / 414.1 MB Notification: Performance of Templates: time 0.05222/0.5755, allocations: 35.54 MB / 0.5757 GB, free: 6.223 MB / 446.1 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Rotational.AllComponents.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: